|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
net.sourceforge.nite.gui.textviewer.NTreeNode
public class NTreeNode
Field Summary | |
---|---|
java.awt.Font |
font
|
java.awt.Color |
highcolour
|
java.awt.Color |
textcolour
|
boolean |
timehighlit
|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
EMPTY_ENUMERATION |
Constructor Summary | |
---|---|
NTreeNode()
Create a simple tree node with no content. |
|
NTreeNode(java.lang.Object userObject,
boolean allowsChildren)
Constructor for NTreeNode. |
|
NTreeNode(java.lang.String s)
Create a simple NTreeNode with the given string as its text |
Method Summary | |
---|---|
void |
addNode(NTreeNode n)
Add the specified node as a child of this node, thus expanding the tree Update indices of the parent NTree as necessary. |
java.lang.String |
getContent()
Returns the textual content of this node. |
ObjectModelElement |
getDataElement()
Returns the dataElement. |
javax.swing.JComponent |
getDisplaycomponent()
Returns the displaycomponent. |
JComponentHandler |
getDisplayComponentHandler()
Returns the displayComponentHandler. |
double |
getEndtime()
Returns the endtime. |
java.lang.Double |
getEndTime(Element obj)
return the end time of the given JDOM element (not required by user programs) |
java.awt.Color |
getHighlightColor()
Returns the highlighting colour |
double |
getStarttime()
Returns the starttime. |
java.awt.Color |
getTextColor()
Returns the normal text colour |
boolean |
isHighlighted()
Returns the highlighted-ness of the node. |
boolean |
isTimed()
Returns true if the node is timed and false otherwise. |
void |
remove(NTreeNode child)
Remove the specified child node from this one and update indices of the parent NTree as necessary. |
void |
setComponent(javax.swing.JComponent com)
set the JComponent that displays this node |
void |
setContent(java.lang.String content)
Sets the text content of this node. |
void |
setDataElement(ObjectModelElement dataElement)
Sets the dataElement. |
void |
setDisplaycomponent(javax.swing.JComponent displaycomponent)
Sets the displaycomponent. |
void |
setDisplayComponentHandler(JComponentHandler displayComponentHandler)
Sets the displayComponentHandler. |
void |
setEndtime(double endtime)
Sets the endtime. |
void |
setHighlightColor(java.awt.Color col)
Set the highlighting colour |
void |
setHighlighted(boolean highed)
Sets the highlighted-ness of the node. |
void |
setHighlighted(boolean highed,
java.awt.Color col)
Sets the highlighted-ness of the node. |
void |
setStarttime(double starttime)
Sets the starttime. |
void |
setTextColor(java.awt.Color col)
Set the normal text colour |
java.lang.String |
toString()
return the currently displayed text for this node |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, 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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.awt.Font font
public java.awt.Color textcolour
public java.awt.Color highcolour
public boolean timehighlit
Constructor Detail |
---|
public NTreeNode()
public NTreeNode(java.lang.String s)
public NTreeNode(java.lang.Object userObject, boolean allowsChildren)
userObject
- allowsChildren
- Method Detail |
---|
public void addNode(NTreeNode n)
public void remove(NTreeNode child)
public void setComponent(javax.swing.JComponent com)
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public java.lang.Double getEndTime(Element obj)
public double getEndtime()
public double getStarttime()
public void setEndtime(double endtime)
endtime
- The endtime to setpublic void setStarttime(double starttime)
starttime
- The starttime to setpublic java.lang.String getContent()
public void setContent(java.lang.String content)
content
- The content to setpublic javax.swing.JComponent getDisplaycomponent()
public void setDisplaycomponent(javax.swing.JComponent displaycomponent)
displaycomponent
- The displaycomponent to setpublic void setHighlighted(boolean highed)
public void setHighlighted(boolean highed, java.awt.Color col)
public boolean isHighlighted()
public boolean isTimed()
public ObjectModelElement getDataElement()
public void setDataElement(ObjectModelElement dataElement)
dataElement
- The dataElement to setpublic JComponentHandler getDisplayComponentHandler()
public void setDisplayComponentHandler(JComponentHandler displayComponentHandler)
displayComponentHandler
- The displayComponentHandler to setpublic java.awt.Color getHighlightColor()
public void setHighlightColor(java.awt.Color col)
public java.awt.Color getTextColor()
public void setTextColor(java.awt.Color col)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |