public abstract class AbstractEdgeShapeTransformerWithIndex<V,E> extends edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer<V,E> implements EdgeShaper
Modifier and Type | Field and Description |
---|---|
protected edu.uci.ics.jung.graph.util.EdgeIndexFunction<V,E> |
indexFunction |
protected static java.awt.geom.Ellipse2D |
loop |
protected static float |
yOffsetBase |
protected static float |
yOffsetIncrement |
Constructor and Description |
---|
AbstractEdgeShapeTransformerWithIndex()
Construct
|
Modifier and Type | Method and Description |
---|---|
edu.uci.ics.jung.graph.util.EdgeIndexFunction<V,E> |
getEdgeIndexFunction() |
static float |
getYOffsetBase() |
static float |
getYOffsetIncrement() |
void |
setEdgeIndexFunction(edu.uci.ics.jung.graph.util.EdgeIndexFunction<V,E> function) |
static void |
setYOffsetBase(float yOffsetBase) |
static void |
setYOffsetIncrement(float yOffsetIncrement) |
java.awt.Shape |
toShape()
Shape view
|
(package private) abstract java.awt.Shape |
toShape(double controlY,
boolean isBackwards)
Create shape
|
java.awt.Shape |
transform(edu.uci.ics.jung.graph.util.Context<edu.uci.ics.jung.graph.Graph<V,E>,E> context) |
protected static final java.awt.geom.Ellipse2D loop
protected static float yOffsetIncrement
protected static float yOffsetBase
public AbstractEdgeShapeTransformerWithIndex()
public edu.uci.ics.jung.graph.util.EdgeIndexFunction<V,E> getEdgeIndexFunction()
public void setEdgeIndexFunction(edu.uci.ics.jung.graph.util.EdgeIndexFunction<V,E> function)
public static float getYOffsetIncrement()
public static void setYOffsetIncrement(float yOffsetIncrement)
public static float getYOffsetBase()
public static void setYOffsetBase(float yOffsetBase)
public java.awt.Shape transform(edu.uci.ics.jung.graph.util.Context<edu.uci.ics.jung.graph.Graph<V,E>,E> context)
abstract java.awt.Shape toShape(double controlY, boolean isBackwards)
controlY
- Y controlisBackwards
- whether edge is backwardspublic java.awt.Shape toShape()
EdgeShaper
toShape
in interface EdgeShaper