public abstract class TMAbstractEdge extends com.touchgraph.graphlayout.Edge implements VizTMObjectIF, com.touchgraph.graphlayout.TGPaintListener
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LINE_WEIGHT |
static int |
DEFAULT_SHAPE |
protected Font |
font |
protected Icon |
icon |
protected static int[] |
intBuffer |
protected int |
lineWeight |
protected static int |
LOADING |
protected TopicIF |
scopingTopic |
protected int |
shape |
static int |
SHAPE_BOWTIE |
static int |
SHAPE_LINE |
protected boolean |
shouldDisplayRoleHoverHelp |
protected Function<TopicIF,String> |
stringifier |
protected boolean |
underMouse |
Constructor and Description |
---|
TMAbstractEdge(com.touchgraph.graphlayout.Node f,
com.touchgraph.graphlayout.Node t) |
Modifier and Type | Method and Description |
---|---|
void |
addTo(com.touchgraph.graphlayout.TGPanel tgpanel) |
protected double |
calculateMidPointBetween(double from,
double to) |
protected Dimension |
calculateOffset(double x1,
double x2,
double y1,
double y2,
int weight) |
void |
deleteFrom(com.touchgraph.graphlayout.TGPanel tgpanel) |
double |
distFromPoint(double x,
double y) |
protected GeneralPath |
getCurvedBowTie(int index) |
protected QuadCurve2D |
getCurvedLine(int index) |
protected Shape |
getDisplayShape() |
Font |
getFont() |
protected Point |
getFromRolePosition() |
Icon |
getIcon() |
protected int |
getIndexInParents() |
int |
getLineWeight() |
protected String |
getMainHoverHelpText() |
Point |
getMidPoint()
Returns the mid point between the two assocaition targets.
|
int |
getShape() |
Function<TopicIF,String> |
getStringifier() |
List |
getTargetsFrom(com.touchgraph.graphlayout.Node find) |
TopicIF |
getTopicMapType() |
protected Point |
getToRolePosition() |
boolean |
isAssociation() |
boolean |
isEdge() |
void |
paint(Graphics g,
com.touchgraph.graphlayout.TGPanel tgPanel) |
void |
paintAfterEdges(Graphics g) |
protected void |
paintBowTie(Graphics2D g) |
protected void |
paintConnection(Graphics g) |
protected void |
paintCurvedBowTie(Graphics2D g,
int index) |
protected void |
paintCurvedLine(Graphics2D g,
int index) |
void |
paintFirst(Graphics g) |
void |
paintLast(Graphics g) |
protected void |
paintLine(Graphics2D g) |
protected void |
paintToolTip(Graphics g) |
protected void |
paintToolTipText(Graphics g,
String string,
int x,
int y) |
protected void |
paintToolTipText(Graphics g,
String text,
Point aPoint) |
protected void |
paintTypeToolTip(Graphics g) |
void |
setFont(Font font) |
void |
setIcon(Icon icon) |
void |
setLineWeight(int lineWeight) |
void |
setScopingTopic(TopicIF aTopic) |
void |
setShape(int shape) |
void |
setShouldDisplayRoleHoverHelp(boolean newValue) |
protected void |
setStringifier(Function<TopicIF,String> aStringifier) |
void |
setVisible(boolean visible)
setVisible is not supported in Vizigator.
|
containsPoint, getColor, getFrom, getID, getLength, getOtherEndpt, getTo, intersects, isVisible, paintArrow, reverse, setColor, setEdgeDefaultColor, setEdgeDefaultLength, setEdgeMouseOverColor, setID, setLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
represents, setColor
getDesctructor, getRecreator
protected int lineWeight
protected int shape
protected Icon icon
protected Font font
protected boolean underMouse
protected static final int LOADING
public static final int SHAPE_BOWTIE
public static final int SHAPE_LINE
public static int DEFAULT_SHAPE
public static int DEFAULT_LINE_WEIGHT
protected static int[] intBuffer
protected boolean shouldDisplayRoleHoverHelp
protected TopicIF scopingTopic
public TMAbstractEdge(com.touchgraph.graphlayout.Node f, com.touchgraph.graphlayout.Node t)
public final void setVisible(boolean visible)
setVisible
in interface VizTMObjectIF
setVisible
in class com.touchgraph.graphlayout.Edge
protected double calculateMidPointBetween(double from, double to)
public Point getMidPoint()
protected Point getFromRolePosition()
protected Point getToRolePosition()
public void paintAfterEdges(Graphics g)
paintAfterEdges
in interface com.touchgraph.graphlayout.TGPaintListener
protected void paintConnection(Graphics g)
protected void paintLine(Graphics2D g)
protected void paintCurvedLine(Graphics2D g, int index)
protected QuadCurve2D getCurvedLine(int index)
protected void paintCurvedBowTie(Graphics2D g, int index)
protected GeneralPath getCurvedBowTie(int index)
protected int getIndexInParents()
protected void paintBowTie(Graphics2D g)
protected Dimension calculateOffset(double x1, double x2, double y1, double y2, int weight)
public void paintLast(Graphics g)
paintLast
in interface com.touchgraph.graphlayout.TGPaintListener
protected void paintToolTip(Graphics g)
public void setLineWeight(int lineWeight)
setLineWeight
in interface VizTMObjectIF
public int getShape()
public void setShape(int shape)
setShape
in interface VizTMObjectIF
public Icon getIcon()
public void setIcon(Icon icon)
setIcon
in interface VizTMObjectIF
public Font getFont()
public void setFont(Font font)
setFont
in interface VizTMObjectIF
public void addTo(com.touchgraph.graphlayout.TGPanel tgpanel)
addTo
in interface VizTMObjectIF
public int getLineWeight()
public void paintFirst(Graphics g)
paintFirst
in interface com.touchgraph.graphlayout.TGPaintListener
protected void paintToolTipText(Graphics g, String string, int x, int y)
g
- -
The graphic context for the drawing operation.string
- -
The String to be rendered.x
- -
The x coordinate where the String should be positioned.y
- -
The y coordinate where the String should be positioned. NOTE: The text is centered over the given coordinates.public void paint(Graphics g, com.touchgraph.graphlayout.TGPanel tgPanel)
paint
in class com.touchgraph.graphlayout.Edge
public void deleteFrom(com.touchgraph.graphlayout.TGPanel tgpanel)
deleteFrom
in interface VizTMObjectIF
protected void paintTypeToolTip(Graphics g)
protected String getMainHoverHelpText()
public void setShouldDisplayRoleHoverHelp(boolean newValue)
public boolean isEdge()
isEdge
in interface VizTMObjectIF
public boolean isAssociation()
isAssociation
in interface VizTMObjectIF
public List getTargetsFrom(com.touchgraph.graphlayout.Node find)
public void setScopingTopic(TopicIF aTopic)
setScopingTopic
in interface VizTMObjectIF
public TopicIF getTopicMapType()
getTopicMapType
in interface VizTMObjectIF
protected Shape getDisplayShape()
public double distFromPoint(double x, double y)
distFromPoint
in class com.touchgraph.graphlayout.Edge