public class JOrgTreeNode extends DefaultMutableTreeNode
| Modifier and Type | Field and Description |
|---|---|
protected TreeNode |
node |
protected int |
x |
protected int |
y |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
JOrgTreeNode(Object userObject) |
JOrgTreeNode(Object userObject,
boolean allowsChildren) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MutableTreeNode newChild) |
void |
applyOffset(int xOffset,
int yOffset) |
Point |
getPos() |
TreeNode |
getTreeNode() |
int |
getX() |
int |
getY() |
void |
setPos(Point newPos) |
void |
setTreeNode(TreeNode node) |
void |
setX(int x) |
void |
setY(int y) |
String |
toString() |
breadthFirstEnumeration, children, clone, 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, setUserObjectprotected int x
protected int y
protected TreeNode node
public JOrgTreeNode(Object userObject)
public JOrgTreeNode(Object userObject, boolean allowsChildren)
public String toString()
toString in class DefaultMutableTreeNodepublic void setTreeNode(TreeNode node)
public TreeNode getTreeNode()
public void add(MutableTreeNode newChild)
add in class DefaultMutableTreeNodepublic int getX()
public int getY()
public Point getPos()
public void setPos(Point newPos)
public void setX(int x)
public void setY(int y)
public void applyOffset(int xOffset,
int yOffset)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.