public class RMLabelsTool extends RMTool implements RMSortPanel.Owner
RMTool.RMShapeHandle
HandleE, HandleN, HandleNE, HandleNW, HandleS, HandleSE, HandleSW, HandleW, HandleWidth, SPLIT_RESET
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
Constructor and Description |
---|
RMLabelsTool() |
Modifier and Type | Method and Description |
---|---|
static void |
addLabels(RMEditor anEditor,
java.lang.String aKeyPath)
Adds a new labels shape to editor.
|
static void |
addLabels(RMEditor anEditor,
java.lang.String aKeyPath,
RMPoint anchor,
RMSize size) |
RMGrouping |
getGrouping()
Returns the grouping for the selected labels shape.
|
java.util.List |
getLabelFormats()
Returns the list of standard Avery label formats.
|
RMLabels |
getLabels()
Returns the selected labels shape.
|
java.lang.Class |
getShapeClass()
Returns the shape class handled by this tool.
|
java.lang.String |
getWindowTitle()
Returns the window title for this tool.
|
protected void |
initUI()
Initialize UI panel for this tool.
|
boolean |
isSuperSelectable(RMShape aShape)
Overridden to make labels super-selectable.
|
boolean |
isUngroupable(RMShape aShape)
Overridden to make labels not ungroupable.
|
void |
moveShapeHandle(RMShape aShape,
int aHandle,
RMPoint toPoint)
Moves the handle at the given index to the given point.
|
void |
resetUI()
Reset Swing UI panel from currently selected labels shape.
|
void |
respondUI(SwingEvent anEvent)
Update currently selected labels shape from Swing UI panel controls.
|
acceptsDrag, activateTool, attachEventBus, createUI, deactivateTool, didBecomeSuperSelectedShapeInEditor, dragEnter, dragExit, dragOver, drop, dropClass, dropColor, dropDragKey, dropFiles, dropString, flavorForClass, flushChanges, getAcceptsChildren, getBoundsSuperSelected, getDatasetEntity, getDragDisplayBounds, getEditor, getEditorPane, getFont, getFontDeep, getGalleryClone, getHandleAtPoint, getHandleCount, getHandleCursor, getHandleOpposing, getHandlePoint, getHandleRect, getIcon, getIcon, getPointsFromUnits, getSelectedShape, getSelectedShapes, getSelectTool, getShapeFillInspector, getShapeHandleAtPoint, getTool, getTool, getToolTipText, getUnitsFromPoints, isSelected, isSuperSelected, mouseDragged, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, newInstance, paintShapeHandles, paintTool, processKeyEvent, reactivateTool, setFont, setFontBold, setFontBoldDeep, setFontFamily, setFontFamilyDeep, setFontItalic, setFontItalicDeep, setFontName, setFontNameDeep, setFontSize, setFontSizeDeep, willLoseSuperSelectionInEditor
addKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisible
addNodeBinding, disableEvents, enableEvents, getBindingModelValue, getBindingNodeValue, getConversionMap, getConversionMapKey, getConversionMaps, getConversionMapValue, getFirstFocus, getModelValue, getNode, getNodeAction, getNodeBoolValue, getNodeFloatValue, getNodeIntValue, getNodeItemDisplayKey, getNodeItems, getNodeSelectedIndex, getNodeSelectedItem, getNodeStringValue, getNodeText, getNodeValue, getUI, getUIHpr, initUI, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, respondUI, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSelectedShape
protected void initUI()
public void resetUI()
public void respondUI(SwingEvent anEvent)
respondUI
in interface RMSortPanel.Owner
public RMLabels getLabels()
public RMGrouping getGrouping()
getGrouping
in interface RMSortPanel.Owner
public java.lang.Class getShapeClass()
getShapeClass
in class RMTool
public java.lang.String getWindowTitle()
getWindowTitle
in class RMTool
public boolean isSuperSelectable(RMShape aShape)
isSuperSelectable
in class RMTool
public boolean isUngroupable(RMShape aShape)
isUngroupable
in class RMTool
public static void addLabels(RMEditor anEditor, java.lang.String aKeyPath)
public static void addLabels(RMEditor anEditor, java.lang.String aKeyPath, RMPoint anchor, RMSize size)
public java.util.List getLabelFormats()
public void moveShapeHandle(RMShape aShape, int aHandle, RMPoint toPoint)
moveShapeHandle
in class RMTool
aShape
- aHandle
- toPoint
-