|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.touchgraph.graphlayout.Node
org.ceryle.graph.GraphNode
org.ceryle.graph.tm.TMNode
org.ceryle.graph.tm.SNode
public class SNode
An extension of TMNode acting as a Scope Node (or S-Node) in a topic map graph.
| Field Summary | |
|---|---|
static Color |
COLOR_SCOPE_EDGE
The color of scope edges. |
static Color |
COLOR_SCOPE_NODE
The color of scope nodes. |
static Color |
COLOR_SCOPE_NODE_FIXED
The color of fixed scope nodes. |
static Color |
COLOR_SCOPE_NODE_TEXT
The color of text on scope nodes. |
protected Topic[] |
m_scope
|
| Fields inherited from class com.touchgraph.graphlayout.Node |
|---|
BACK_DEFAULT_COLOR, BACK_FIXED_COLOR, BACK_HILIGHT_COLOR, BACK_SELECT_COLOR, backColor, BORDER_DRAG_COLOR, BORDER_INACTIVE_COLOR, BORDER_MOUSE_OVER_COLOR, DEFAULT_TYPE, drawx, drawy, dx, dy, edges, fixed, font, justMadeLocal, lbl, markedForRemoval, massfade, repulsion, simpleDraw, SMALL_TAG_FONT, TEXT_COLOR, TEXT_FONT, textColor, typ, TYPE_CIRCLE, TYPE_ELLIPSE, TYPE_RECTANGLE, TYPE_ROUNDRECT, visible, visibleEdgeCnt, x, y |
| Constructor Summary | |
|---|---|
SNode(String id)
Constructor with the required ID id value. |
|
SNode(String id,
String label)
Constructor with the required ID id and label. |
|
SNode(Topic[] scope,
String id)
Constructor with an array of Topic[] scope and a String ID id. |
|
SNode(Topic[] scope,
String id,
String label)
Constructor with a array of Topic[] scope and Strings for ID id and label. |
|
| Method Summary | |
|---|---|
Color |
getPaintTextColor(TGPanel tgPanel)
Returns the text color of the node, dependent on context. |
Topic[] |
getScope()
Returns the Topic[] array backing this SNode, null if not set. |
void |
setScope(Topic[] scope)
Sets the Topic[] references (comprising the Scope) within this SNode to the array Topic[] object. |
| Methods inherited from class org.ceryle.graph.tm.TMNode |
|---|
getTopicMapObject, setFixed, setTopicMapObject |
| Methods inherited from class org.ceryle.graph.GraphNode |
|---|
compareTo, getDefaultNodeFont, getHeight, getHilight, getID, getLabel, getMouseListener, getNodeFont, getPaintBackColor, getPaintBorderColor, getVerticalTweak, getVerticalTweak, getWidth, isHidden, isProvisional, jubble, paint, paintNodeBody, paintProvisional, paintSimple, paintSmallTag, setAlternateFont, setHidden, setHilight, setMargin, setMaximumLabelLength, setMouseListener, setNodeTagFont, setNodeTextFont, setProvisional, setSize, setVerticalTweak, toString |
| Methods inherited from class com.touchgraph.graphlayout.Node |
|---|
addEdge, containsPoint, containsPoint, deleteEdges, edgeAt, edgeCount, edgeNum, getBackColor, getEdges, getFixed, getFont, getLocation, getTextColor, getType, hasEdge, intersects, isFixed, isVisible, removeEdge, setBackColor, setFixed, setFont, setID, setLabel, setLocation, setLocation, setNodeBackDefaultColor, setNodeBackFixedColor, setNodeBackHilightColor, setNodeBackSelectColor, setNodeBorderDragColor, setNodeBorderInactiveColor, setNodeBorderMouseOverColor, setNodeTextColor, setNodeType, setTextColor, setType, setVisible, visibleEdgeCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
public static Color COLOR_SCOPE_NODE
public static Color COLOR_SCOPE_NODE_FIXED
public static Color COLOR_SCOPE_EDGE
public static Color COLOR_SCOPE_NODE_TEXT
protected Topic[] m_scope
| Constructor Detail |
|---|
public SNode(String id)
throws GraphException
GraphException
public SNode(String id,
String label)
throws GraphException
GraphException
public SNode(Topic[] scope,
String id)
throws GraphException
GraphException
public SNode(Topic[] scope,
String id,
String label)
throws GraphException
GraphException| Method Detail |
|---|
public void setScope(Topic[] scope)
public Topic[] getScope()
public Color getPaintTextColor(TGPanel tgPanel)
getPaintTextColor in class Node
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||