Class RMShapeEventAdapter


  • public class RMShapeEventAdapter
    extends java.lang.Object
    A class to listen for Swing events and send them on.
    • 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.