Package com.inductiveautomation.rm.shape
Class RMShapeEventAdapter
- java.lang.Object
 - 
- com.inductiveautomation.rm.shape.RMShapeEventAdapter
 
 
- 
public class RMShapeEventAdapter extends java.lang.ObjectA 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.StringgetEnabledEventsString()Returns the events string.RMShapegetShape()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(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. 
 - 
 
 -