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));
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() |
double |
getY() |
void |
impl_addTo(Path2D path)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
void |
setX(double value) |
void |
setY(double value) |
String |
toString()
Returns a string representation of this
LineTo object. |
DoubleProperty |
xProperty() |
DoubleProperty |
yProperty() |
absoluteProperty, isAbsolute, setAbsolute
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()
public final void setY(double value)
public final double getY()
public final DoubleProperty yProperty()
@Deprecated public void impl_addTo(Path2D path)
impl_addTo
in class PathElement
Copyright © 2020. All rights reserved.