For more information on path elements see the Path and
PathElement classes.
Example:
import javafx.scene.shape.*; Path path = new Path(); path.getElements().add(new MoveTo(0.0f, 50.0f)); path.getElements().add(new LineTo(100.0f, 100.0f));
| Modifier and Type | Field and Description |
|---|---|
| private DoubleProperty | x
Defines the X coordinate. |
| private DoubleProperty | y
Defines the Y coordinate. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | LineTo(double
the horizontal coordinate of the line end point x, double the vertical coordinate of the line end point y)Creates a new instance of LineTo. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private void | |
| public final double | |
| public final double | |
| public final void | |
| public final void | |
| public String | Returns: a string representation of thisLineTo object.Overrides java. Returns a string representation of this |
| public final DoubleProperty | |
| public final DoubleProperty |
| x | back to summary |
|---|---|
| private DoubleProperty x Defines the X coordinate.
| |
| y | back to summary |
|---|---|
| private DoubleProperty y Defines the Y coordinate.
| |
| LineTo | back to summary |
|---|---|
| public LineTo() Creates an empty instance of LineTo. | |
| LineTo | back to summary |
|---|---|
| public LineTo(double x, double y) Creates a new instance of LineTo.
| |
| addTo | back to summary |
|---|---|
| pack-priv void addTo(NGPath pgPath) Implements abstract javafx.
| |
| doAddTo | back to summary |
|---|---|
| private void doAddTo(Path2D path) | |
| getX | back to summary |
|---|---|
| public final double getX() | |
| getY | back to summary |
|---|---|
| public final double getY() | |
| setX | back to summary |
|---|---|
| public final void setX(double value) | |
| setY | back to summary |
|---|---|
| public final void setY(double value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this | |
| xProperty | back to summary |
|---|---|
| public final DoubleProperty xProperty() | |
| yProperty | back to summary |
|---|---|
| public final DoubleProperty yProperty() | |