public class ShapeNode extends AbstractNavTreeNode
AbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction, AbstractNavTreeNode.ResourceChangeListener
bold, children, childrenLoaded, copyAction, cutAction, deleteAction, depth, icon, italic, log, model, name, NAME_PATTERN, parent, pasteAction, protectedAction, protectedMenuItem, renameAction, selectionModel, text, thumbnail, tooltip
Modifier and Type | Method and Description |
---|---|
RMShape |
getShape() |
protected void |
initPopupMenu(javax.swing.JPopupMenu menu,
javax.swing.tree.TreePath[] paths,
java.util.List<AbstractNavTreeNode> selection,
int modifiers)
Default implementation calls setupEditActions(), and then addEditActions()
|
void |
install(AbstractNavTreeNode parent) |
protected java.util.List<AbstractNavTreeNode> |
loadChildren()
Called before this node responds from any of the children-related TreeNode functions, if a list of children
wasn't already set.
|
void |
onSelected()
Called when this node is selected in the tree
|
void |
select(boolean append)
Causes this tree node to become selected.
|
protected java.lang.String |
toString(RMShape shape) |
protected void |
uninstall()
Called when the node is removed from the tree.
|
addBadges, addEditActions, canCopy, canDelete, canDrag, canDrop, canPaste, checkChildren, children, confirmDelete, debug, debug, dispatchSelectionEvent, doCopy, doCut, doDelete, doPaste, expand, findChild, findCommonEditActionHandler, findDropHandler, findEditActionHandler, forceChildrenReload, getAllowsChildren, getChildAt, getChildCount, getClipboard, getCommonEditActionHandler, getDepth, getExpandedIcon, getIcon, getIndex, getModel, getName, getParent, getSelectionModel, getSortOrder, getText, getThumbnail, getTooltip, getWorkspaceName, isBold, isEditable, isEditActionHandler, isItalic, isLeaf, isProtected, isProtectedEnabled, isSelected, iterator, newLogger, notifyChildNameChanged, onChildrenSelected, onDoubleClick, onEdit, pathToRoot, recreate, refresh, reload, select, setBold, setChildren, setIcon, setItalic, setName, setProtected, setText, setThumbnail, setTooltip, setupEditActions, showPopup, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip
public ShapeNode(RMShape shape)
public void select(boolean append)
AbstractNavTreeNode
select
in class AbstractNavTreeNode
append
- Should this node be appended to the current selection, or be selected by itself?public void onSelected()
AbstractNavTreeNode
onSelected
in class AbstractNavTreeNode
protected void initPopupMenu(javax.swing.JPopupMenu menu, javax.swing.tree.TreePath[] paths, java.util.List<AbstractNavTreeNode> selection, int modifiers)
AbstractNavTreeNode
initPopupMenu
in class AbstractNavTreeNode
public RMShape getShape()
public void install(AbstractNavTreeNode parent)
install
in class AbstractNavTreeNode
protected void uninstall()
AbstractNavTreeNode
uninstall
in class AbstractNavTreeNode
protected java.lang.String toString(RMShape shape)
protected java.util.List<AbstractNavTreeNode> loadChildren()
AbstractNavTreeNode
loadChildren
in class AbstractNavTreeNode