Class RMShapeEventAdapter

java.lang.Object
com.inductiveautomation.rm.shape.RMShapeEventAdapter

public class RMShapeEventAdapter extends Object
A class to listen for Swing events and send them on.
  • Constructor Details

    • RMShapeEventAdapter

      public RMShapeEventAdapter(RMShape aShape)
      Creates a new RMShapeEventAdapter for given shape.
  • Method Details

    • 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 String getEnabledEventsString()
      Returns the events string.
    • setEnabledEventsString

      public void setEnabledEventsString(String anEventsString)
      Sets the events string.