|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprefuse.activity.Activity
prefuse.action.Action
prefuse.action.GroupAction
prefuse.action.layout.Layout
prefuse.action.layout.graph.MultiEdgePositioningLayout
public class MultiEdgePositioningLayout
This layout positions the edges in a graph to be half way between the nodes (as per the EdgePositioningLayout). If there are multiple node-node edges then the edge positions will be spread out along the equi-distant line between the nodes.
Field Summary | |
---|---|
protected boolean |
considerNodeBounds
|
protected double |
edgeSeparation
|
protected java.lang.String |
m_edgeGroup
|
protected Alignment |
m_xAlign1
|
protected Alignment |
m_xAlign2
|
protected Alignment |
m_yAlign1
|
protected Alignment |
m_yAlign2
|
protected boolean |
positionHiddenEdges
|
Fields inherited from class prefuse.action.layout.Layout |
---|
m_anchor, m_bounds, m_bpts, m_insets, m_margin, m_tmpa, m_tmpb |
Fields inherited from class prefuse.action.GroupAction |
---|
m_group |
Fields inherited from class prefuse.action.Action |
---|
m_vis |
Fields inherited from class prefuse.activity.Activity |
---|
DEFAULT_STEP_TIME, INFINITY |
Constructor Summary | |
---|---|
MultiEdgePositioningLayout(java.lang.String graph)
|
Method Summary | |
---|---|
boolean |
getConsiderNodeBounds()
|
double |
getEdgeSeparation()
Get the separation gap for edges linking the same two nodes. |
Alignment |
getHorizontalAlignment1()
Get the horizontal alignment of the edge mount point with the first node. |
Alignment |
getHorizontalAlignment2()
Get the horizontal alignment of the edge mount point with the second node. |
protected void |
getMidPoint(java.awt.geom.Point2D p,
ObjectPair<? extends NodeItem<?,?>> pair)
|
protected PolarLine2D |
getPolarLine(ObjectPair<? extends NodeItem<?,?>> pair)
|
Alignment |
getVerticalAlignment1()
Get the vertical alignment of the edge mount point with the first node. |
Alignment |
getVerticalAlignment2()
Get the vertical aligment of the edge mount point with the second node. |
boolean |
isPositionHiddenEdges()
|
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs. |
void |
setConsiderNodeBounds(boolean considerNodeBounds)
|
void |
setEdgeSeparation(double edgeSeparation)
Sets the separation gap between the edges linking the same two nodes. |
void |
setHorizontalAlignment1(Alignment align)
Set the horizontal alignment of the edge mount point with the first node. |
void |
setHorizontalAlignment2(Alignment align)
Set the horizontal alignment of the edge mount point with the second node. |
void |
setPositionHiddenEdges(boolean positionHiddenEdges)
|
void |
setVerticalAlignment1(Alignment align)
Set the vertical alignment of the edge mount point with the first node. |
void |
setVerticalAlignment2(Alignment align)
Set the vertical alignment of the edge mount point with the second node. |
Methods inherited from class prefuse.action.layout.Layout |
---|
getLayoutAnchor, getLayoutBounds, setLayoutAnchor, setLayoutBounds, setMargin, setX, setY |
Methods inherited from class prefuse.action.GroupAction |
---|
getGroup, setGroup |
Methods inherited from class prefuse.action.Action |
---|
getVisualization, run, setVisualization |
Methods inherited from class prefuse.activity.Activity |
---|
addActivityListener, alwaysRunAfter, cancel, fireActivityCancelled, fireActivityFinished, fireActivityScheduled, fireActivityStarted, fireActivityStepped, getDuration, getNextTime, getPace, getPacingFunction, getStartTime, getStepTime, getStopTime, isEnabled, isRunning, isScheduled, removeActivityListener, run, runAfter, runAt, setDuration, setEnabled, setPacingFunction, setStartTime, setStepTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String m_edgeGroup
protected Alignment m_xAlign1
protected Alignment m_yAlign1
protected Alignment m_xAlign2
protected Alignment m_yAlign2
protected double edgeSeparation
protected boolean considerNodeBounds
protected boolean positionHiddenEdges
Constructor Detail |
---|
public MultiEdgePositioningLayout(java.lang.String graph)
Method Detail |
---|
public double getEdgeSeparation()
public void setEdgeSeparation(double edgeSeparation)
edgeSeparation
- the edge separationpublic Alignment getHorizontalAlignment1()
public Alignment getVerticalAlignment1()
public Alignment getHorizontalAlignment2()
public Alignment getVerticalAlignment2()
public void setHorizontalAlignment1(Alignment align)
align
- the horizontal alignmentpublic void setVerticalAlignment1(Alignment align)
align
- the vertical alignmentpublic void setHorizontalAlignment2(Alignment align)
align
- the horizontal alignmentpublic void setVerticalAlignment2(Alignment align)
align
- the vertical alignmentpublic boolean getConsiderNodeBounds()
public void setConsiderNodeBounds(boolean considerNodeBounds)
public boolean isPositionHiddenEdges()
public void setPositionHiddenEdges(boolean positionHiddenEdges)
positionHiddenEdges
- public void run(double frac)
Action
run
in class GroupAction
frac
- the fraction of this Action's duration that has elapsed.Action.run(double)
protected PolarLine2D getPolarLine(ObjectPair<? extends NodeItem<?,?>> pair)
protected void getMidPoint(java.awt.geom.Point2D p, ObjectPair<? extends NodeItem<?,?>> pair)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |