public abstract class TMAbstractNode extends com.touchgraph.graphlayout.Node implements Recoverable
| Modifier and Type | Field and Description |
|---|---|
protected Icon |
icon |
protected TopicMapView |
topicMapView |
protected boolean |
underMouse |
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, fixed, font, fontMetrics, justMadeLocal, lbl, markedForRemoval, repulsion, SMALL_TAG_FONT, TEXT_COLOR, TEXT_FONT, textColor, typ, TYPE_CIRCLE, TYPE_ELLIPSE, TYPE_RECTANGLE, TYPE_ROUNDRECT, visible, visibleEdgeCnt, x, y| Constructor and Description |
|---|
TMAbstractNode(String id) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawNeighboursInForeground(Graphics g,
com.touchgraph.graphlayout.TGPanel tgPanel) |
Iterator |
getEdges() |
Icon |
getIcon() |
Color |
getPaintBackColor(com.touchgraph.graphlayout.TGPanel tgPanel) |
Color |
getPaintBorderColor(com.touchgraph.graphlayout.TGPanel tgPanel) |
Color |
getPaintTextColor(com.touchgraph.graphlayout.TGPanel tgPanel)
This is how TG gets the color it actually uses for the painting, which in
our case may be different from the preset text color.
|
Iterator |
getVisibleEdges() |
List |
getVisibleEdgesList() |
boolean |
hasPathTo(TMAbstractNode target,
Set visited) |
void |
removeMouseoverIcon()
Workaround that avoids mouseover icon hanging around after hiding node.
|
void |
setBackColor(Color bgColor)
Set the node background color.
|
void |
setIcon(Icon icon) |
protected void |
setUnderMouse(com.touchgraph.graphlayout.TGPanel tgPanel) |
void |
setUnderMouseForced(boolean under) |
void |
setVisible(boolean visible)
setVisible is not supported in Vizigator.
|
static Color |
textColourForBackground(Color c) |
addEdge, containsPoint, containsPoint, edgeAt, edgeCount, edgeNum, getBackColor, getFixed, getFont, getHeight, getID, getLabel, getLocation, getTextColor, getType, getWidth, intersects, isVisible, paint, paintNodeBody, paintSmallTag, removeEdge, setFixed, setFont, setID, setLabel, setLocation, setNodeBackDefaultColor, setNodeBackFixedColor, setNodeBackHilightColor, setNodeBackSelectColor, setNodeBorderDragColor, setNodeBorderInactiveColor, setNodeBorderMouseOverColor, setNodeTextColor, setNodeTextFont, setNodeType, setTextColor, setType, visibleEdgeCountclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDesctructor, getRecreatorprotected Icon icon
protected boolean underMouse
protected TopicMapView topicMapView
public TMAbstractNode(String id)
public final void setVisible(boolean visible)
setVisible in class com.touchgraph.graphlayout.Nodepublic void removeMouseoverIcon()
public boolean hasPathTo(TMAbstractNode target, Set visited)
public Iterator getEdges()
getEdges in class com.touchgraph.graphlayout.Nodepublic Iterator getVisibleEdges()
public List getVisibleEdgesList()
public void setBackColor(Color bgColor)
setBackColor in class com.touchgraph.graphlayout.Nodepublic Icon getIcon()
public void setIcon(Icon icon)
public Color getPaintBorderColor(com.touchgraph.graphlayout.TGPanel tgPanel)
getPaintBorderColor in class com.touchgraph.graphlayout.Nodepublic Color getPaintBackColor(com.touchgraph.graphlayout.TGPanel tgPanel)
getPaintBackColor in class com.touchgraph.graphlayout.Nodeprotected void drawNeighboursInForeground(Graphics g, com.touchgraph.graphlayout.TGPanel tgPanel)
public Color getPaintTextColor(com.touchgraph.graphlayout.TGPanel tgPanel)
getPaintTextColor in class com.touchgraph.graphlayout.Nodeprotected void setUnderMouse(com.touchgraph.graphlayout.TGPanel tgPanel)
public void setUnderMouseForced(boolean under)