Package com.inductiveautomation.rm.shape
Class RMShapeEventAdapter
- java.lang.Object
-
- com.inductiveautomation.rm.shape.RMShapeEventAdapter
-
public class RMShapeEventAdapter extends java.lang.Object
A class to listen for Swing events and send them on.
-
-
Constructor Summary
Constructors Constructor Description RMShapeEventAdapter(RMShape aShape)
Creates a new RMShapeEventAdapter for given shape.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UIEvent.Type[]
getEnabledEvents()
Returns an array of enabled events.java.lang.String
getEnabledEventsString()
Returns the events string.RMShape
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(java.lang.String anEventsString)
Sets the events string.
-
-
-
Constructor Detail
-
RMShapeEventAdapter
public RMShapeEventAdapter(RMShape aShape)
Creates a new RMShapeEventAdapter for given shape.
-
-
Method Detail
-
getShape
public RMShape getShape()
Returns the shape.
-
isEnabled
public boolean isEnabled(UIEvent.Type aType)
Returns whether given type is enabled.
-
isEnabled
public boolean isEnabled(UIEvent.Type... theTypes)
Returns whether any of given types are enabled.
-
setEnabled
public void setEnabled(UIEvent.Type aType, boolean aValue)
Sets whether a given type is enabled.
-
getEnabledEvents
public UIEvent.Type[] getEnabledEvents()
Returns an array of enabled events.
-
setEnabledEvents
public void setEnabledEvents(UIEvent.Type... theTypes)
Sets an array of enabled events.
-
getEnabledEventsString
public java.lang.String getEnabledEventsString()
Returns the events string.
-
setEnabledEventsString
public void setEnabledEventsString(java.lang.String anEventsString)
Sets the events string.
-
-