Package com.inductiveautomation.rm.shape
Class RMShapeEventAdapter
java.lang.Object
com.inductiveautomation.rm.shape.RMShapeEventAdapter
A class to listen for Swing events and send them on.
-
Constructor Summary
ConstructorsConstructorDescriptionRMShapeEventAdapter
(RMShape aShape) Creates a new RMShapeEventAdapter for given shape. -
Method Summary
Modifier and TypeMethodDescriptionReturns an array of enabled events.Returns the events string.getShape()
Returns the shape.boolean
isEnabled
(UIEvent.Type aType) Returns whether given type is enabled.boolean
isEnabled
(UIEvent.Type... theTypes) Returns whether any of given types are enabled.void
setEnabled
(UIEvent.Type aType, boolean aValue) Sets whether a given type is enabled.void
setEnabledEvents
(UIEvent.Type... theTypes) Sets an array of enabled events.void
setEnabledEventsString
(String anEventsString) Sets the events string.
-
Constructor Details
-
RMShapeEventAdapter
Creates a new RMShapeEventAdapter for given shape.
-
-
Method Details
-
getShape
Returns the shape. -
isEnabled
Returns whether given type is enabled. -
isEnabled
Returns whether any of given types are enabled. -
setEnabled
Sets whether a given type is enabled. -
getEnabledEvents
Returns an array of enabled events. -
setEnabledEvents
Sets an array of enabled events. -
getEnabledEventsString
Returns the events string. -
setEnabledEventsString
Sets the events string.
-