APIdia Launch Partner
Top Description Fields Constructors Methods
javafx.scene.shape

public non-sealed Class QuadCurve

extends Shape
Class Inheritance
Imports
com.sun.javafx.geom.QuadCurve2D, com.sun.javafx.scene.DirtyBits, .NodeHelper, com.sun.javafx.scene.shape.QuadCurveHelper, com.sun.javafx.sg.prism.NGNode, .NGQuadCurve, javafx.beans.property.DoubleProperty, .DoublePropertyBase, javafx.scene.Node, javafx.scene.paint.Paint

The Quadcurve class defines a quadratic Bézier parametric curve segment in (x,y) coordinate space. Drawing a curve that intersects both the specified coordinates (startX, startY) and (endX, enfY), using the specified point (controlX, controlY) as Bézier control point.
import javafx.scene.shape.*;

QuadCurve quad = new QuadCurve();
quad.setStartX(0.0f);
quad.setStartY(50.0f);
quad.setEndX(50.0f);
quad.setEndY(50.0f);
quad.setControlX(25.0f);
quad.setControlY(0.0f);
Since
JavaFX 2.0

Field Summary

Modifier and TypeField and Description
private DoubleProperty
controlX

Defines the X coordinate of the control point of the quadratic curve segment.

private DoubleProperty
controlY

Defines the Y coordinate of the control point of the quadratic curve segment.

private DoubleProperty
endX

Defines the X coordinate of the end point of the quadratic curve segment.

private DoubleProperty
endY

Defines the Y coordinate of the end point of the quadratic curve segment.

private final QuadCurve2D
private DoubleProperty
startX

Defines the X coordinate of the start point of the quadratic curve segment.

private DoubleProperty
startY

Defines the Y coordinate of the start point of the quadratic curve segment.

Inherited from javafx.scene.shape.Shape:
old_fillold_stroke

Constructor Summary

AccessConstructor and Description
public
QuadCurve()

Creates an empty instance of QuadCurve.

public
QuadCurve(double
the X coordinate of the start point
startX
,
double
the Y coordinate of the start point
startY
,
double
the X coordinate of the control point
controlX
,
double
the Y coordinate of the control point
controlY
,
double
the X coordinate of the end point
endX
,
double
the Y coordinate of the end point
endY
)

Creates a new instance of QuadCurve.

Method Summary

Modifier and TypeMethod and Description
public final DoubleProperty
public final DoubleProperty
private QuadCurve2D
private NGNode
private void
public final DoubleProperty
public final DoubleProperty
public final double
public final double
public final double
public final double
public final double
public final double
public final void
setControlX(double value)

public final void
setControlY(double value)

public final void
setEndX(double value)

public final void
setEndY(double value)

public final void
setStartX(double value)

public final void
setStartY(double value)

public final DoubleProperty
public final DoubleProperty
public String

Returns:

a string representation of this QuadCurve object.
toString
()

Overrides javafx.scene.Node.toString.

Returns a string representation of this QuadCurve object.

Inherited from javafx.scene.shape.Shape:
computeBoundscomputeShapeBoundscomputeShapeContainsconvertLineJoinfillPropertygetClassCssMetaDatagetCssMetaDatagetFillgetModegetStrokegetStrokeDashArraygetStrokeDashOffsetgetStrokeLineCapgetStrokeLineJoingetStrokeMiterLimitgetStrokeTypegetStrokeWidthintersectisSmoothsetFillsetShapeChangeListenersetSmoothsetStrokesetStrokeDashOffsetsetStrokeLineCapsetStrokeLineJoinsetStrokeMiterLimitsetStrokeTypesetStrokeWidthsmoothPropertystrokeDashOffsetPropertystrokeLineCapPropertystrokeLineJoinPropertystrokeMiterLimitPropertystrokePropertystrokeTypePropertystrokeWidthPropertysubtractunion

Field Detail

controlXback to summary
private DoubleProperty controlX

Defines the X coordinate of the control point of the quadratic curve segment.

Default Value
0.0
controlYback to summary
private DoubleProperty controlY

Defines the Y coordinate of the control point of the quadratic curve segment.

Default Value
0.0
endXback to summary
private DoubleProperty endX

Defines the X coordinate of the end point of the quadratic curve segment.

Default Value
0.0
endYback to summary
private DoubleProperty endY

Defines the Y coordinate of the end point of the quadratic curve segment.

Default Value
0.0
shapeback to summary
private final QuadCurve2D shape
startXback to summary
private DoubleProperty startX

Defines the X coordinate of the start point of the quadratic curve segment.

Default Value
0.0
startYback to summary
private DoubleProperty startY

Defines the Y coordinate of the start point of the quadratic curve segment.

Default Value
0.0

Constructor Detail

QuadCurveback to summary
public QuadCurve()

Creates an empty instance of QuadCurve.

QuadCurveback to summary
public QuadCurve(double startX, double startY, double controlX, double controlY, double endX, double endY)

Creates a new instance of QuadCurve.

Parameters
startX:double

the X coordinate of the start point

startY:double

the Y coordinate of the start point

controlX:double

the X coordinate of the control point

controlY:double

the Y coordinate of the control point

endX:double

the X coordinate of the end point

endY:double

the Y coordinate of the end point

Method Detail

controlXPropertyback to summary
public final DoubleProperty controlXProperty()
controlYPropertyback to summary
public final DoubleProperty controlYProperty()
doConfigShapeback to summary
private QuadCurve2D doConfigShape()
doCreatePeerback to summary
private NGNode doCreatePeer()
doUpdatePeerback to summary
private void doUpdatePeer()

Hides javafx.scene.shape.Shape.doUpdatePeer.

endXPropertyback to summary
public final DoubleProperty endXProperty()
endYPropertyback to summary
public final DoubleProperty endYProperty()
getControlXback to summary
public final double getControlX()
getControlYback to summary
public final double getControlY()
getEndXback to summary
public final double getEndX()
getEndYback to summary
public final double getEndY()
getStartXback to summary
public final double getStartX()
getStartYback to summary
public final double getStartY()
setControlXback to summary
public final void setControlX(double value)
setControlYback to summary
public final void setControlY(double value)
setEndXback to summary
public final void setEndX(double value)
setEndYback to summary
public final void setEndY(double value)
setStartXback to summary
public final void setStartX(double value)
setStartYback to summary
public final void setStartY(double value)
startXPropertyback to summary
public final DoubleProperty startXProperty()
startYPropertyback to summary
public final DoubleProperty startYProperty()
toStringback to summary
public String toString()

Overrides javafx.scene.Node.toString.

Returns a string representation of this QuadCurve object.

Returns:String

a string representation of this QuadCurve object.

Annotations
@Override