|
|||||||||
| 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.RNode
public class RNode
An extension of TMNode acting as a Role Node (or R-Node)
in a topic map graph. If a value is set by setEdge(GraphEdge),
the RNode will be attached to the midpoint of the edge, and alter its
length accordingly.
| Field Summary | |
|---|---|
static Color |
COLOR_ROLE_NODE
The color of role nodes. |
static Color |
COLOR_ROLE_NODE_FIXED
The color of fixed role nodes. |
static Color |
COLOR_ROLE_NODE_MOUSE_OVER
The color of mouse over'd role nodes. |
static Color |
COLOR_ROLE_NODE_TEXT
The color of the text of role nodes. |
static Color |
COLOR_ROLE_NODE_TEXT_MOUSE_OVER
The color of the text of mouse over'd role nodes. |
GraphEdge |
edge
|
| 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 | |
|---|---|
RNode(String id)
Constructor with the required ID id value. |
|
RNode(String id,
String label)
Constructor with the required ID id and label. |
|
RNode(Topic role,
GraphEdge edge,
String id,
String label)
Constructor with an Topic object role and Strings for ID id and label, as well as the anchor GraphEdge edge. |
|
RNode(Topic role,
String id)
Constructor with an Topic role and a String ID id. |
|
RNode(Topic role,
String id,
String label)
Constructor with an Topic object role and Strings for ID id and label. |
|
| Method Summary | |
|---|---|
Color |
getPaintBackColor(TGPanel tgPanel)
Overrides GraphNode's method by highlighting mouseOvers. |
void |
paintNodeBody(Graphics g,
TGPanel tgPanel)
Overrides Node's method, painting the background of the node, along with its label. |
void |
setEdge(GraphEdge edge)
Set this RNode's GraphEdge to edge. |
| 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, getPaintBorderColor, getVerticalTweak, getVerticalTweak, getWidth, isHidden, isProvisional, jubble, paint, 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, getPaintTextColor, 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_ROLE_NODE
public static Color COLOR_ROLE_NODE_MOUSE_OVER
public static Color COLOR_ROLE_NODE_FIXED
public static Color COLOR_ROLE_NODE_TEXT
public static Color COLOR_ROLE_NODE_TEXT_MOUSE_OVER
public GraphEdge edge
| Constructor Detail |
|---|
public RNode(String id)
throws GraphException
GraphException
public RNode(String id,
String label)
throws GraphException
GraphException
public RNode(Topic role,
String id)
throws GraphException
GraphException
public RNode(Topic role,
String id,
String label)
throws GraphException
GraphException
public RNode(Topic role,
GraphEdge edge,
String id,
String label)
throws GraphException
GraphException| Method Detail |
|---|
public void setEdge(GraphEdge edge)
public Color getPaintBackColor(TGPanel tgPanel)
getPaintBackColor in class GraphNode
public void paintNodeBody(Graphics g,
TGPanel tgPanel)
paintNodeBody in class GraphNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||