|
|||||||||
| 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.TNode
org.ceryle.graph.tm.IVNode
public class IVNode
Extends TNode as an alternative display mode for Topics. The name is a legacy of now-gone GraphView subclass and will be changed when this is re-integrated into the GraphView. This includes a target and rectangular boundary mode.
TNode| Field Summary | |
|---|---|
static Color |
COLOR_TRANSLUCENT
The color white with a low alpha: translucency. |
static Color |
COLOR_TRANSLUCENT_SELECT
The color white with a low alpha: translucency. |
static Color |
COLOR_TRANSPARENT
The color white with a zero alpha: transparency. |
static int |
TYPE_RECTOPIC
This Node's type is a Rectangle Topic. |
static int |
TYPE_TARGET
This Node's type is a Target. |
| 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 | |
|---|---|
IVNode(String id)
Constructor with the required ID id value. |
|
IVNode(String id,
String label)
Constructor with the required ID id and label. |
|
IVNode(Topic topic)
Constructor with an Topic topic, using the Topic's ID value for both the IVNode's ID and label. |
|
IVNode(Topic topic,
String label)
Constructor with an Topic topic, and a String used as its label. |
|
IVNode(Topic topic,
String id,
String label)
Constructor with an Topic topic and Strings for ID id and label. |
|
| Method Summary | |
|---|---|
Color |
getNodeBodyColor(TGPanel tgPanel)
Returns the body color of the node, dependent on context. |
Color |
getPaintBackColor(TGPanel tgPanel)
Overrides TNode's method. |
Color |
getTargetBorderColor(TGPanel tgPanel)
Returns the border color of the target, dependent on context. |
protected Point |
getTargetLocation()
Returns the location of the target's center as a Point. |
int |
getWidth()
Overrides GraphNode's method by returning the calculated width of this IVNode. |
void |
paintNodeBody(Graphics g,
TGPanel tgPanel)
Overrides TNode's method by painting the body of the IVNode. |
protected void |
setSize(Graphics g)
Sets the internal width and height variables based on current properties. |
| Methods inherited from class org.ceryle.graph.tm.TNode |
|---|
getBackColor, getFlag, getHeight, getLocator, getPaintBorderColor, getPaintTextColor, hasFlag, hasLocator, hasPopupMenu, isClickInMenu, isComponent, paint, paintColorFlag, paintLinkBody, paintOccurrenceCount, setAsComponent, setFixed, setFixed, setFlag, setLocator, setPopupMenu, setTopicMapObject, showPopupMenu |
| Methods inherited from class org.ceryle.graph.tm.TMNode |
|---|
getTopicMapObject |
| Methods inherited from class org.ceryle.graph.GraphNode |
|---|
compareTo, getDefaultNodeFont, getHilight, getID, getLabel, getMouseListener, getNodeFont, getVerticalTweak, getVerticalTweak, isHidden, isProvisional, jubble, paintProvisional, paintSimple, paintSmallTag, setAlternateFont, setHidden, setHilight, setMargin, setMaximumLabelLength, setMouseListener, setNodeTagFont, setNodeTextFont, setProvisional, setVerticalTweak, toString |
| Methods inherited from class com.touchgraph.graphlayout.Node |
|---|
addEdge, containsPoint, containsPoint, deleteEdges, edgeAt, edgeCount, edgeNum, getEdges, getFixed, getFont, getLocation, getTextColor, getType, hasEdge, intersects, isFixed, isVisible, removeEdge, setBackColor, 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 final int TYPE_TARGET
public static final int TYPE_RECTOPIC
public static final Color COLOR_TRANSPARENT
public static final Color COLOR_TRANSLUCENT
public static final Color COLOR_TRANSLUCENT_SELECT
| Constructor Detail |
|---|
public IVNode(String id)
throws GraphException
GraphException
public IVNode(String id,
String label)
throws GraphException
GraphException
public IVNode(Topic topic)
throws GraphException
GraphException
public IVNode(Topic topic,
String label)
throws GraphException
GraphException
public IVNode(Topic topic,
String id,
String label)
throws GraphException
GraphExceptionTopic| Method Detail |
|---|
protected Point getTargetLocation()
protected void setSize(Graphics g)
setSize in class GraphNodepublic int getWidth()
getWidth in class TNode
public void paintNodeBody(Graphics g,
TGPanel tgPanel)
paintNodeBody in class TNodepublic Color getTargetBorderColor(TGPanel tgPanel)
public Color getNodeBodyColor(TGPanel tgPanel)
public Color getPaintBackColor(TGPanel tgPanel)
getPaintBackColor in class TNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||