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.booleanisEnabled(UIEvent.Type aType) Returns whether given type is enabled.booleanisEnabled(UIEvent.Type... theTypes) Returns whether any of given types are enabled.voidsetEnabled(UIEvent.Type aType, boolean aValue) Sets whether a given type is enabled.voidsetEnabledEvents(UIEvent.Type... theTypes) Sets an array of enabled events.voidsetEnabledEventsString(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.
-