Package mgui.interfaces.shapes.trees
Class Shape2DTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
mgui.interfaces.trees.InterfaceTreeNode
mgui.interfaces.shapes.trees.ShapeTreeNode
mgui.interfaces.shapes.trees.Shape2DTreeNode
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,javax.swing.tree.MutableTreeNode
,javax.swing.tree.TreeNode
,InterfaceObjectListener
,PopupMenuObject
,ShapeListener
public class Shape2DTreeNode extends ShapeTreeNode implements ShapeListener
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class mgui.interfaces.trees.InterfaceTreeNode
isMouseOverSelect, isSelectable, listeners, parent_tree, popup_handler, popup_menu
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
Constructor Summary
Constructors Constructor Description Shape2DTreeNode()
Shape2DTreeNode(Shape2DInt thisShape)
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
InterfacePopupMenu
getPopupMenu()
Produces and returns a popup menu for this object.Shape2DInt
getUserObject()
boolean
hasShapeNode(InterfaceShape shape)
void
removeShapeNode(InterfaceShape shape)
void
setUserObject(Shape2DInt thisShape)
Methods inherited from class mgui.interfaces.shapes.trees.ShapeTreeNode
getChildForShape, getShape, getVertexDataColumnNode, getVertexDataNode, shapeUpdated
Methods inherited from class mgui.interfaces.trees.InterfaceTreeNode
addChild, addListener, containsObject, destroy, destroy, destroyAllChildren, fireTreeListeners, getChildren, getParentTree, getPopupMenu, handleMouseEvent, handlePopupEvent, init, insertChild, isDestroyed, isSelectable, moveChild, objectChanged, objectChanged, removeChild, removeListener, setParentTree, setPopupMenu, setSelectable, setUserObject, showPopupMenu
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface mgui.interfaces.shapes.util.ShapeListener
destroy, isDestroyed, shapeUpdated
-
Constructor Details
-
Shape2DTreeNode
public Shape2DTreeNode() -
Shape2DTreeNode
-
-
Method Details
-
setUserObject
-
getUserObject
- Overrides:
getUserObject
in classjavax.swing.tree.DefaultMutableTreeNode
-
getPopupMenu
Description copied from interface:PopupMenuObject
Produces and returns a popup menu for this object.- Specified by:
getPopupMenu
in interfacePopupMenuObject
- Overrides:
getPopupMenu
in classInterfaceTreeNode
- Returns:
-
removeShapeNode
- Specified by:
removeShapeNode
in classShapeTreeNode
-
hasShapeNode
- Specified by:
hasShapeNode
in classShapeTreeNode
-
clone
public java.lang.Object clone()- Overrides:
clone
in classInterfaceTreeNode
-