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.
        Returns:
        a description suitable for displaying in the gui
      • initialize

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

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

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

        protected Cursor createCursor()
        Creates the mouse cursor to use.
        Specified by:
        createCursor in class AbstractTool
        Returns:
        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.
        Parameters:
        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.
        Parameters:
        start - the start point
        end - the end point
        Returns:
        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.
        Overrides:
        createKeyListener in class AbstractTool
        Returns:
        the listener, null if not applicable
      • doApply

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