public abstract class CubicCurve<V,E> extends AbstractEdgeShapeTransformerWithIndex<V,E> implements HasFunction
indexFunction, loop, yOffsetBase, yOffsetIncrement| Constructor and Description |
|---|
CubicCurve()
Construct
|
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract java.awt.geom.Point2D.Double |
getControlFactor1() |
(package private) abstract java.awt.geom.Point2D.Double |
getControlFactor2() |
static java.awt.geom.Point2D |
getValueAt(double t,
java.awt.geom.CubicCurve2D curve)
Get value of cubic curve at t
|
java.awt.geom.Point2D |
getValueAt(double t,
java.awt.Shape shape)
Function
|
java.awt.Shape |
toShape(double controlY,
boolean isBackwards)
Create shape
|
getEdgeIndexFunction, getYOffsetBase, getYOffsetIncrement, setEdgeIndexFunction, setYOffsetBase, setYOffsetIncrement, toShape, transformabstract java.awt.geom.Point2D.Double getControlFactor1()
abstract java.awt.geom.Point2D.Double getControlFactor2()
public java.awt.Shape toShape(double controlY,
boolean isBackwards)
AbstractEdgeShapeTransformerWithIndextoShape in class AbstractEdgeShapeTransformerWithIndex<V,E>controlY - Y controlisBackwards - whether edge is backwardspublic java.awt.geom.Point2D getValueAt(double t,
java.awt.Shape shape)
HasFunctiongetValueAt in interface HasFunctiont - function input in [0,1] rangeshape - shape instancepublic static java.awt.geom.Point2D getValueAt(double t,
java.awt.geom.CubicCurve2D curve)
t - function input in [0,1] rangecurve - cubic curve