Class RMOvalShapeTool<T extends RMOvalShape>


  • public class RMOvalShapeTool<T extends RMOvalShape>
    extends RMTool<T>
    A tool subclass for editing RMOval.
    • Constructor Detail

      • RMOvalShapeTool

        public RMOvalShapeTool()
      • RMOvalShapeTool

        public RMOvalShapeTool​(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 RMOvalShape>
      • resetUI

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

        public void respondUI​(SwingEvent anEvent)
        Updates the currently selected oval 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 crosshair cursor.
        Overrides:
        mouseMoved in class RMTool<T extends RMOvalShape>
      • getShapeClass

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

        public java.lang.String getWindowTitle()
        Returns the string used for the inspector window title.
        Overrides:
        getWindowTitle in class RMTool<T extends RMOvalShape>