Class Move

    • Field Detail

      • m_TextPrefix

        protected BaseTextField m_TextPrefix
        the object prefix to use.
      • m_Prefix

        protected String m_Prefix
        the object prefix to use.
      • m_SelectedObjects

        protected List<LocatedObject> m_SelectedObjects
        the currently selected object.
      • m_Dragging

        protected boolean m_Dragging
        whether the mouse is being dragged.
      • m_DragStart

        protected Point m_DragStart
        the starting point of the drag.
      • m_DragEnd

        protected Point m_DragEnd
        the end point of the drag.
      • m_PolygonVertices

        protected PolygonVertices m_PolygonVertices
        the polygon plotter to use.
    • Constructor Detail

      • Move

        public Move()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        a description suitable for displaying in the gui
      • initialize

        protected void initialize()
        Initializes the members.
        initialize in class AbstractTool
      • getName

        public String getName()
        The name of the tool.
        the name
      • getIcon

        public Icon getIcon()
        The icon of the tool.
        the icon
      • createCursor

        protected Cursor createCursor()
        Creates the mouse cursor to use.
        Specified by:
        createCursor in class AbstractTool
        the cursor
      • updateVertexOverlays

        protected void updateVertexOverlays()
        Updates overlay(s) for the vertices.
      • selectObjects

        protected void selectObjects​(Point p)
        Attempts to select the object(s) at the specified location.
        p - the image location to select the annotation(s) from
      • moveObjects

        protected boolean moveObjects​(Point start,
                                      Point end)
        Moves the selected objects from starting point to end point.
        start - the start point
        end - the end point
        whether the objects got moved
      • createKeyListener

        protected ToolKeyAdapter createKeyListener()
        Description copied from class: AbstractTool
        Creates the key listener to use.
        Default implementation just returns null.
        createKeyListener in class AbstractTool
        the listener, null if not applicable
      • doApply

        protected void doApply()
        Applies the settings.
        Specified by:
        doApply in class AbstractTool