public class DoubleCubicCurve<V,E> extends AbstractEdgeShapeTransformerWithIndex<V,E> implements HasFunction
indexFunction, loop, yOffsetBase, yOffsetIncrement
Constructor and Description |
---|
DoubleCubicCurve() |
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Point2D |
getValueAt(double t,
java.awt.Shape shape)
Function
|
static void |
main(java.lang.String[] args) |
static java.awt.geom.CubicCurve2D.Double[] |
toCubicCurves(java.awt.geom.Path2D path) |
java.awt.Shape |
toShape()
Shape view
|
java.awt.Shape |
toShape(double controlY,
boolean isBackwards)
Create shape
|
getEdgeIndexFunction, getYOffsetBase, getYOffsetIncrement, setEdgeIndexFunction, setYOffsetBase, setYOffsetIncrement, transform
public java.awt.Shape toShape(double controlY, boolean isBackwards)
AbstractEdgeShapeTransformerWithIndex
toShape
in class AbstractEdgeShapeTransformerWithIndex<V,E>
controlY
- Y controlisBackwards
- whether edge is backwardspublic java.awt.Shape toShape()
EdgeShaper
toShape
in interface EdgeShaper
toShape
in class AbstractEdgeShapeTransformerWithIndex<V,E>
public java.awt.geom.Point2D getValueAt(double t, java.awt.Shape shape)
HasFunction
getValueAt
in interface HasFunction
t
- function input in [0,1] rangeshape
- shape instancepublic static java.awt.geom.CubicCurve2D.Double[] toCubicCurves(java.awt.geom.Path2D path)
public static void main(java.lang.String[] args)