Class RMRectShapeTool<T extends RMRectShape>


  • public class RMRectShapeTool<T extends RMRectShape>
    extends RMTool<T>
    This class handles editing of rectangle shapes.
    • Constructor Detail

      • RMRectShapeTool

        public RMRectShapeTool()
      • RMRectShapeTool

        public RMRectShapeTool​(com.google.common.eventbus.EventBus ebus)
    • Method Detail

      • newInstance

        protected T newInstance()
        Returns a new instance of the shape class that this tool is responsible for.
        Overrides:
        newInstance in class RMTool<T extends RMRectShape>
      • resetUI

        public void resetUI()
        Updates the Swing UI controls from the currently selected rectangle.
        Overrides:
        resetUI in class UIOwner<SwingEvent,​javax.swing.JComponent>
      • respondUI

        public void respondUI​(SwingEvent anEvent)
        Updates the currently selected rectangle from the Swing UI controls.
        Overrides:
        respondUI in class UIOwner<SwingEvent,​javax.swing.JComponent>
      • mouseMoved

        public void mouseMoved​(java.awt.event.MouseEvent anEvent)
        Event handling - overridden to install cross-hair cursor.
        Overrides:
        mouseMoved in class RMTool<T extends RMRectShape>
      • getShapeClass

        public java.lang.Class getShapeClass()
        Returns the class that this tool is responsible for.
        Overrides:
        getShapeClass in class RMTool<T extends RMRectShape>
      • getWindowTitle

        public java.lang.String getWindowTitle()
        Returns the name to be presented to user.
        Overrides:
        getWindowTitle in class RMTool<T extends RMRectShape>