Class QuadCurve

All Implemented Interfaces:
Styleable, EventTarget

public non-sealed class QuadCurve extends Shape
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
  • Property Details

  • Constructor Details

    • QuadCurve

      public QuadCurve()
      Creates an empty instance of QuadCurve.
    • QuadCurve

      public QuadCurve(double startX, double startY, double controlX, double controlY, double endX, double endY)
      Creates a new instance of QuadCurve.
      Parameters:
      startX - the X coordinate of the start point
      startY - the Y coordinate of the start point
      controlX - the X coordinate of the control point
      controlY - the Y coordinate of the control point
      endX - the X coordinate of the end point
      endY - the Y coordinate of the end point
  • Method Details

    • setStartX

      public final void setStartX(double value)
      Sets the value of the startX property.
      Property description:
      Defines the X coordinate of the start point of the quadratic curve segment.
      Default value:
      0.0
      Parameters:
      value - the value for the startX property
      See Also:
    • getStartX

      public final double getStartX()
      Gets the value of the startX property.
      Property description:
      Defines the X coordinate of the start point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the value of the startX property
      See Also:
    • startXProperty

      public final DoubleProperty startXProperty()
      Defines the X coordinate of the start point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the startX property
      See Also:
    • setStartY

      public final void setStartY(double value)
      Sets the value of the startY property.
      Property description:
      Defines the Y coordinate of the start point of the quadratic curve segment.
      Default value:
      0.0
      Parameters:
      value - the value for the startY property
      See Also:
    • getStartY

      public final double getStartY()
      Gets the value of the startY property.
      Property description:
      Defines the Y coordinate of the start point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the value of the startY property
      See Also:
    • startYProperty

      public final DoubleProperty startYProperty()
      Defines the Y coordinate of the start point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the startY property
      See Also:
    • setControlX

      public final void setControlX(double value)
      Sets the value of the controlX property.
      Property description:
      Defines the X coordinate of the control point of the quadratic curve segment.
      Default value:
      0.0
      Parameters:
      value - the value for the controlX property
      See Also:
    • getControlX

      public final double getControlX()
      Gets the value of the controlX property.
      Property description:
      Defines the X coordinate of the control point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the value of the controlX property
      See Also:
    • controlXProperty

      public final DoubleProperty controlXProperty()
      Defines the X coordinate of the control point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the controlX property
      See Also:
    • setControlY

      public final void setControlY(double value)
      Sets the value of the controlY property.
      Property description:
      Defines the Y coordinate of the control point of the quadratic curve segment.
      Default value:
      0.0
      Parameters:
      value - the value for the controlY property
      See Also:
    • getControlY

      public final double getControlY()
      Gets the value of the controlY property.
      Property description:
      Defines the Y coordinate of the control point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the value of the controlY property
      See Also:
    • controlYProperty

      public final DoubleProperty controlYProperty()
      Defines the Y coordinate of the control point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the controlY property
      See Also:
    • setEndX

      public final void setEndX(double value)
      Sets the value of the endX property.
      Property description:
      Defines the X coordinate of the end point of the quadratic curve segment.
      Default value:
      0.0
      Parameters:
      value - the value for the endX property
      See Also:
    • getEndX

      public final double getEndX()
      Gets the value of the endX property.
      Property description:
      Defines the X coordinate of the end point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the value of the endX property
      See Also:
    • endXProperty

      public final DoubleProperty endXProperty()
      Defines the X coordinate of the end point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the endX property
      See Also:
    • setEndY

      public final void setEndY(double value)
      Sets the value of the endY property.
      Property description:
      Defines the Y coordinate of the end point of the quadratic curve segment.
      Default value:
      0.0
      Parameters:
      value - the value for the endY property
      See Also:
    • getEndY

      public final double getEndY()
      Gets the value of the endY property.
      Property description:
      Defines the Y coordinate of the end point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the value of the endY property
      See Also:
    • endYProperty

      public final DoubleProperty endYProperty()
      Defines the Y coordinate of the end point of the quadratic curve segment.
      Default value:
      0.0
      Returns:
      the endY property
      See Also:
    • toString

      public String toString()
      Returns a string representation of this QuadCurve object.
      Overrides:
      toString in class Node
      Returns:
      a string representation of this QuadCurve object.