Class RMLabelsTool

    • Constructor Detail

      • RMLabelsTool

        public RMLabelsTool()
    • Method Detail

      • initUI

        protected void initUI()
        Initialize UI panel for this tool.
        Overrides:
        initUI in class UIOwner
      • resetUI

        public void resetUI()
        Reset Swing UI panel from currently selected labels shape.
        Overrides:
        resetUI in class UIOwner
      • respondUI

        public void respondUI​(SwingEvent anEvent)
        Update currently selected labels shape from Swing UI panel controls.
        Specified by:
        respondUI in interface RMSortPanel.Owner
      • getLabels

        public RMLabels getLabels()
        Returns the selected labels shape.
      • getShapeClass

        public java.lang.Class getShapeClass()
        Returns the shape class handled by this tool.
        Overrides:
        getShapeClass in class RMTool
      • getWindowTitle

        public java.lang.String getWindowTitle()
        Returns the window title for this tool.
        Overrides:
        getWindowTitle in class RMTool
      • isSuperSelectable

        public boolean isSuperSelectable​(RMShape aShape)
        Overridden to make labels super-selectable.
        Overrides:
        isSuperSelectable in class RMTool
      • isUngroupable

        public boolean isUngroupable​(RMShape aShape)
        Overridden to make labels not ungroupable.
        Overrides:
        isUngroupable in class RMTool
      • addLabels

        public static void addLabels​(RMEditor anEditor,
                                     java.lang.String aKeyPath)
        Adds a new labels shape to editor.
      • addLabels

        public static void addLabels​(RMEditor anEditor,
                                     java.lang.String aKeyPath,
                                     RMPoint anchor,
                                     RMSize size)
      • getLabelFormats

        public java.util.List getLabelFormats()
        Returns the list of standard Avery label formats.
      • moveShapeHandle

        public void moveShapeHandle​(RMShape aShape,
                                    int aHandle,
                                    RMPoint toPoint)
        Moves the handle at the given index to the given point.
        Overrides:
        moveShapeHandle in class RMTool
        Parameters:
        aShape -
        aHandle -
        toPoint -