Package net.ontopia.topicmaps.viz
Class TMTopicNode
java.lang.Object
com.touchgraph.graphlayout.Node
net.ontopia.topicmaps.viz.TMAbstractNode
net.ontopia.topicmaps.viz.TMTopicNode
- All Implemented Interfaces:
Recoverable
INTERNAL: Node class representing topics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intprotected booleanstatic intFields inherited from class net.ontopia.topicmaps.viz.TMAbstractNode
icon, topicMapView, underMouseFields 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, 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsPoint(double aPx, double aPy) protected voiddrawMissingEdgesIndicator(Graphics g, com.touchgraph.graphlayout.TGPanel tgPanel) intgetPaintBackColor(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.intgetTopic()intgetWidth()voidvoidRepaints the name.voidvoidvoidsetAssociationCount(int count) voidvoidsetScopingTopic(TopicIF aScopingTopic) voidsetShapePadding(int value) voidMethods inherited from class net.ontopia.topicmaps.viz.TMAbstractNode
drawNeighboursInForeground, getEdges, getIcon, getPaintBorderColor, getPaintTextColor, getVisibleEdges, getVisibleEdgesList, hasPathTo, removeMouseoverIcon, setBackColor, setIcon, setUnderMouse, setUnderMouseForced, setVisible, textColourForBackgroundMethods inherited from class com.touchgraph.graphlayout.Node
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
-
Field Details
-
forceColor
protected boolean forceColor -
DEFAULT_SHAPE_PADDING
public static int DEFAULT_SHAPE_PADDING -
MAX_SHAPE_PADDING
public static int MAX_SHAPE_PADDING
-
-
Constructor Details
-
TMTopicNode
-
-
Method Details
-
updateLabel
public void updateLabel() -
setScopingTopic
-
getTopicName
-
paint
Repaints the name. Some topic names are shortened when initially displayed. When the user moves the mouse over the node the full name is displayed.- Overrides:
paintin classcom.touchgraph.graphlayout.Node
-
miniPaint
-
drawMissingEdgesIndicator
-
setLabel
- Overrides:
setLabelin classcom.touchgraph.graphlayout.Node
-
getTopic
-
setShapePadding
public void setShapePadding(int value) -
getShapePadding
public int getShapePadding() -
getWidth
public int getWidth()- Overrides:
getWidthin classcom.touchgraph.graphlayout.Node
-
getHeight
public int getHeight()- Overrides:
getHeightin classcom.touchgraph.graphlayout.Node
-
getPaintBackColor
This method enables TMTopicNode to force a particular color upon a given node, even if it is the focus node. This was necessary because blinking didn't work on the focus node.- Overrides:
getPaintBackColorin classTMAbstractNode
-
repaint
-
repaint
-
setAssociationCount
public void setAssociationCount(int count) -
containsPoint
public boolean containsPoint(double aPx, double aPy) - Overrides:
containsPointin classcom.touchgraph.graphlayout.Node
-
getStringifier
-
getDesctructor
-
getRecreator
-