Package mgui.interfaces.shapes.trees
Class ShapeModel3DTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
mgui.interfaces.trees.InterfaceTreeNode
mgui.interfaces.shapes.trees.ShapeModel3DTreeNode
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,javax.swing.tree.MutableTreeNode
,javax.swing.tree.TreeNode
,InterfaceObjectListener
,PopupMenuObject
,ShapeListener
public class ShapeModel3DTreeNode extends InterfaceTreeNode implements ShapeListener
Tree node specialized for a ShapeModel3D object.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class mgui.interfaces.trees.InterfaceTreeNode
isDestroyed, 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 ShapeModel3DTreeNode()
ShapeModel3DTreeNode(ShapeModel3D thisObj)
ShapeModel3DTreeNode(ShapeModel3D thisObj, javax.swing.JTree parent)
-
Method Summary
Modifier and Type Method Description ShapeTreeNode
getChildForShape(InterfaceShape shape)
ShapeModel3D
getShapeModel()
boolean
hasShapeNode(InterfaceShape shape)
void
removeShapeNode(InterfaceShape shape)
void
shapeUpdated(ShapeEvent e)
A shape that this object is listening to has been updated.Methods inherited from class mgui.interfaces.trees.InterfaceTreeNode
addChild, addListener, clone, containsObject, destroy, destroy, destroyAllChildren, fireTreeListeners, getChildren, getParentTree, getPopupMenu, 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, getUserObject, 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
-
Constructor Details
-
ShapeModel3DTreeNode
public ShapeModel3DTreeNode() -
ShapeModel3DTreeNode
-
ShapeModel3DTreeNode
-
-
Method Details
-
getShapeModel
-
shapeUpdated
Description copied from interface:ShapeListener
A shape that this object is listening to has been updated. The specific type of event is defined by ShapeEvent.EventType.- Specified by:
shapeUpdated
in interfaceShapeListener
-
hasShapeNode
-
removeShapeNode
-
getChildForShape
-