public class TMTopicNode extends TMAbstractNode
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SHAPE_PADDING |
protected boolean |
forceColor |
static int |
MAX_SHAPE_PADDING |
icon, topicMapView, 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 |
---|
TMTopicNode(TopicIF topic,
TopicIF scopingTopic,
TopicMapView topicMapView) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsPoint(double aPx,
double aPy) |
protected void |
drawMissingEdgesIndicator(Graphics g,
com.touchgraph.graphlayout.TGPanel tgPanel) |
RecoveryObjectIF |
getDesctructor() |
int |
getHeight() |
Color |
getPaintBackColor(com.touchgraph.graphlayout.TGPanel tgPanel)
This method enables TMTopicNode to force a particular color upon a given
node, even if it is the focus node.
|
RecoveryObjectIF |
getRecreator() |
int |
getShapePadding() |
Function<TopicIF,String> |
getStringifier() |
TopicIF |
getTopic() |
String |
getTopicName() |
int |
getWidth() |
void |
miniPaint(Graphics g,
com.touchgraph.graphlayout.TGPanel tgPanel) |
void |
paint(Graphics g,
com.touchgraph.graphlayout.TGPanel tgPanel)
Repaints the name.
|
void |
repaint(Color aColor,
com.touchgraph.graphlayout.TGPanel tgPanel) |
void |
repaint(Color aColor,
com.touchgraph.graphlayout.TGPanel tgPanel,
boolean forceColor) |
void |
setAssociationCount(int count) |
void |
setLabel(String name) |
void |
setScopingTopic(TopicIF aScopingTopic) |
void |
setShapePadding(int value) |
void |
updateLabel() |
drawNeighboursInForeground, getEdges, getIcon, getPaintBorderColor, getPaintTextColor, getVisibleEdges, getVisibleEdgesList, hasPathTo, removeMouseoverIcon, setBackColor, setIcon, setUnderMouse, setUnderMouseForced, setVisible, textColourForBackground
addEdge, containsPoint, edgeAt, edgeCount, edgeNum, getBackColor, getFixed, getFont, getID, getLabel, getLocation, getTextColor, getType, intersects, isVisible, paintNodeBody, paintSmallTag, removeEdge, setFixed, setFont, setID, setLocation, setNodeBackDefaultColor, setNodeBackFixedColor, setNodeBackHilightColor, setNodeBackSelectColor, setNodeBorderDragColor, setNodeBorderInactiveColor, setNodeBorderMouseOverColor, setNodeTextColor, setNodeTextFont, setNodeType, setTextColor, setType, visibleEdgeCount
protected boolean forceColor
public static int DEFAULT_SHAPE_PADDING
public static int MAX_SHAPE_PADDING
public TMTopicNode(TopicIF topic, TopicIF scopingTopic, TopicMapView topicMapView)
public void updateLabel()
public void setScopingTopic(TopicIF aScopingTopic)
public String getTopicName()
public void paint(Graphics g, com.touchgraph.graphlayout.TGPanel tgPanel)
paint
in class com.touchgraph.graphlayout.Node
public void miniPaint(Graphics g, com.touchgraph.graphlayout.TGPanel tgPanel)
protected void drawMissingEdgesIndicator(Graphics g, com.touchgraph.graphlayout.TGPanel tgPanel)
public void setLabel(String name)
setLabel
in class com.touchgraph.graphlayout.Node
public TopicIF getTopic()
public void setShapePadding(int value)
public int getShapePadding()
public int getWidth()
getWidth
in class com.touchgraph.graphlayout.Node
public int getHeight()
getHeight
in class com.touchgraph.graphlayout.Node
public Color getPaintBackColor(com.touchgraph.graphlayout.TGPanel tgPanel)
getPaintBackColor
in class TMAbstractNode
public void repaint(Color aColor, com.touchgraph.graphlayout.TGPanel tgPanel)
public void repaint(Color aColor, com.touchgraph.graphlayout.TGPanel tgPanel, boolean forceColor)
public void setAssociationCount(int count)
public boolean containsPoint(double aPx, double aPy)
containsPoint
in class com.touchgraph.graphlayout.Node
public RecoveryObjectIF getDesctructor()
public RecoveryObjectIF getRecreator()