|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.visualization.renderers.BasicEdgeArrowRenderingSupport<V,E>
public class BasicEdgeArrowRenderingSupport<V,E>
| Constructor Summary | |
|---|---|
BasicEdgeArrowRenderingSupport()
|
|
| Method Summary | |
|---|---|
AffineTransform |
getArrowTransform(RenderContext<V,E> rc,
Line2D edgeShape,
Shape vertexShape)
This is used for the arrow of a directed and for one of the arrows for non-directed edges Get a transform to place the arrow shape on the passed edge at the point where it intersects the passed shape |
AffineTransform |
getArrowTransform(RenderContext<V,E> rc,
Shape edgeShape,
Shape vertexShape)
Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape. |
protected Line2D |
getFirstOutsideSegment(Line2D line,
Shape shape)
Passed Line's point1 must be inside the passed shape or an IllegalArgumentException is thrown |
protected Line2D |
getLastOutsideSegment(Line2D line,
Shape shape)
Passed Line's point2 must be inside the passed shape or an IllegalArgumentException is thrown |
protected AffineTransform |
getReverseArrowTransform(RenderContext<V,E> rc,
Line2D edgeShape,
Shape vertexShape)
This is used for the reverse-arrow of a non-directed edge get a transform to place the arrow shape on the passed edge at the point where it intersects the passed shape |
AffineTransform |
getReverseArrowTransform(RenderContext<V,E> rc,
Shape edgeShape,
Shape vertexShape)
Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape. |
AffineTransform |
getReverseArrowTransform(RenderContext<V,E> rc,
Shape edgeShape,
Shape vertexShape,
boolean passedGo)
Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape. |
protected void |
subdivide(Line2D src,
Line2D left,
Line2D right)
divide a Line2D into 2 new Line2Ds that are returned in the passed left and right instances, if non-null |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicEdgeArrowRenderingSupport()
| Method Detail |
|---|
public AffineTransform getArrowTransform(RenderContext<V,E> rc,
Shape edgeShape,
Shape vertexShape)
EdgeArrowRenderingSupport
getArrowTransform in interface EdgeArrowRenderingSupport<V,E>
public AffineTransform getReverseArrowTransform(RenderContext<V,E> rc,
Shape edgeShape,
Shape vertexShape)
EdgeArrowRenderingSupport
getReverseArrowTransform in interface EdgeArrowRenderingSupport<V,E>
public AffineTransform getReverseArrowTransform(RenderContext<V,E> rc,
Shape edgeShape,
Shape vertexShape,
boolean passedGo)
EdgeArrowRenderingSupportReturns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.
The Loop edge is a special case because its staring point is not inside the vertex. The passedGo flag handles this case.
getReverseArrowTransform in interface EdgeArrowRenderingSupport<V,E>passedGo - - used only for Loop edges
public AffineTransform getArrowTransform(RenderContext<V,E> rc,
Line2D edgeShape,
Shape vertexShape)
EdgeArrowRenderingSupport
getArrowTransform in interface EdgeArrowRenderingSupport<V,E>
protected AffineTransform getReverseArrowTransform(RenderContext<V,E> rc,
Line2D edgeShape,
Shape vertexShape)
edgeShape - vertexShape -
protected Line2D getLastOutsideSegment(Line2D line,
Shape shape)
line - line to subdivideshape - shape to compare with line
IllegalArgumentException - if the passed line's point1 is not inside the shape
protected Line2D getFirstOutsideSegment(Line2D line,
Shape shape)
line - line to subdivideshape - shape to compare with line
IllegalArgumentException - if the passed line's point1 is not inside the shape
protected void subdivide(Line2D src,
Line2D left,
Line2D right)
src - the line to divideleft - the left side, or nullright - the right side, or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||