public class LineTo extends PathElement
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));
| Type | Property and Description |
|---|---|
DoubleProperty |
x
Defines the X coordinate.
|
DoubleProperty |
y
Defines the Y coordinate.
|
absolute| Constructor and Description |
|---|
LineTo()
Creates an empty instance of LineTo.
|
LineTo(double x,
double y)
Creates a new isntance of LineTo.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getX()
Gets the value of the property x.
|
double |
getY()
Gets the value of the property y.
|
void |
setX(double value)
Sets the value of the property x.
|
void |
setY(double value)
Sets the value of the property y.
|
String |
toString()
Returns a string representation of this
LineTo object. |
DoubleProperty |
xProperty()
Defines the X coordinate.
|
DoubleProperty |
yProperty()
Defines the Y coordinate.
|
absoluteProperty, isAbsolute, setAbsolutepublic final DoubleProperty xProperty
getX(),
setX(double)public final DoubleProperty yProperty
getY(),
setY(double)public LineTo()
public LineTo(double x,
double y)
x - the horizontal coordinate of the line end pointy - the vertical coordinate of the line end pointpublic 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)Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.