public class RMLabelsTool extends RMTool implements RMSortPanel.Owner
RMTool.RMShapeHandleHandleE, HandleN, HandleNE, HandleNW, HandleS, HandleSE, HandleSW, HandleW, HandleWidth, SPLIT_RESETDragDrop, 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, willLoseSuperSelectionInEditoraddKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisibleaddNodeBinding, 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, setSendEventDisabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSelectedShapeprotected void initUI()
public void resetUI()
public void respondUI(SwingEvent anEvent)
respondUI in interface RMSortPanel.Ownerpublic RMLabels getLabels()
public RMGrouping getGrouping()
getGrouping in interface RMSortPanel.Ownerpublic java.lang.Class getShapeClass()
getShapeClass in class RMToolpublic java.lang.String getWindowTitle()
getWindowTitle in class RMToolpublic boolean isSuperSelectable(RMShape aShape)
isSuperSelectable in class RMToolpublic boolean isUngroupable(RMShape aShape)
isUngroupable in class RMToolpublic 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 RMToolaShape - aHandle - toPoint -