public class HLineTo 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, 0.0f)); path.getElements().add(new HLineTo(80.0f));
| Modifier and Type | Field and Description |
|---|---|
private DoubleProperty |
x
Defines the X coordinate.
|
impl_nodes| Constructor and Description |
|---|
HLineTo()
Creates an empty instance of HLineTo.
|
HLineTo(double x)
Creates an instance of HLineTo.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addTo(NGPath pgPath) |
double |
getX() |
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) |
java.lang.String |
toString()
Returns a string representation of this
HLineTo object. |
DoubleProperty |
xProperty() |
absoluteProperty, addNode, isAbsolute, removeNode, setAbsolute, uprivate DoubleProperty x
public HLineTo()
public HLineTo(double x)
x - the horizontal coordinate to line topublic final void setX(double value)
public final double getX()
public final DoubleProperty xProperty()
void addTo(NGPath pgPath)
addTo in class PathElement@Deprecated public void impl_addTo(Path2D path)
impl_addTo in class PathElementpublic java.lang.String toString()
HLineTo object.toString in class java.lang.ObjectHLineTo object.