Class RMLabelsTool

All Implemented Interfaces:
RMSortPanel.Owner

public class RMLabelsTool extends RMTool implements RMSortPanel.Owner
A tool for UI editing of labels shape.
  • Constructor Details

    • RMLabelsTool

      public RMLabelsTool()
  • Method Details

    • 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.
    • getGrouping

      public RMGrouping getGrouping()
      Returns the grouping for the selected labels shape.
      Specified by:
      getGrouping in interface RMSortPanel.Owner
    • getShapeClass

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

      public 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, String aKeyPath)
      Adds a new labels shape to editor.
    • addLabels

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

      public 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