|
Spec-Zone .ru
спецификации, руководства, описания, API
|
public class QuadCurveTo extends PathElement
(x, y),
using the specified point (controlX, controlY)
as a Bézier control point.
All coordinates are specified in double precision.
For more information on path elements see the Path and
PathElement classes.
Example:
import javafx.scene.shape.*; Path path = new Path(); MoveTo moveTo = new MoveTo(); moveTo.setX(0.0f); moveTo.setY(50.0f); QuadCurveTo quadTo = new QuadCurveTo(); quadTo.setControlX(25.0f); quadTo.setControlY(0.0f); quadTo.setX(50.0f); quadTo.setY(50.0f); path.getElements().add(moveTo); path.getElements().add(cubicTo);
| Type | Property and Description |
|---|---|
DoubleProperty |
controlX
Defines the X coordinate of the quadratic control point.
|
DoubleProperty |
controlY
Defines the Y coordinate of the quadratic control point.
|
DoubleProperty |
x
Defines the X coordinate of the final end point.
|
DoubleProperty |
y
Defines the Y coordinate of the final end point.
|
absoluteProperty| Constructor and Description |
|---|
QuadCurveTo()
Creates an empty instance of QuadCurveTo.
|
QuadCurveTo(double controlX,
double controlY,
double x,
double y)
Creates a new instance of QuadCurveTo.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleProperty |
controlXProperty()
Defines the X coordinate of the quadratic control point.
|
DoubleProperty |
controlYProperty()
Defines the Y coordinate of the quadratic control point.
|
double |
getControlX()
Defines the X coordinate of the quadratic control point.
|
double |
getControlY()
Defines the Y coordinate of the quadratic control point.
|
double |
getX()
Defines the X coordinate of the final end point.
|
double |
getY()
Defines the Y coordinate of the final end point.
|
void |
setControlX(double value)
Defines the X coordinate of the quadratic control point.
|
void |
setControlY(double value)
Defines the Y coordinate of the quadratic control point.
|
void |
setX(double value)
Defines the X coordinate of the final end point.
|
void |
setY(double value)
Defines the Y coordinate of the final end point.
|
DoubleProperty |
xProperty()
Defines the X coordinate of the final end point.
|
DoubleProperty |
yProperty()
Defines the Y coordinate of the final end point.
|
absoluteProperty, isAbsolute, setAbsolutegetControlX(),
setControlX(double)getControlY(),
setControlY(double)getX(),
setX(double)getY(),
setY(double)public QuadCurveTo()
public QuadCurveTo(double controlX,
double controlY,
double x,
double y)
controlX - the X coordinate of the quadratic control pointcontrolY - the Y coordinate of the quadratic control pointx - the X coordinate of the final end pointy - the Y coordinate of the final end pointpublic final void setControlX(double value)
public final double getControlX()
public final DoubleProperty controlXProperty()
getControlX(),
setControlX(double)public final void setControlY(double value)
public final double getControlY()
public final DoubleProperty controlYProperty()
getControlY(),
setControlY(double)public final void setX(double value)
public final double getX()
public final DoubleProperty xProperty()
getX(),
setX(double)public final void setY(double value)
public final double getY()
public final DoubleProperty yProperty()
getY(),
setY(double)Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to .