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));
Type | Property and Description |
---|---|
DoubleProperty |
x
Defines the X coordinate.
|
absoluteProperty
Modifier and Type | Field and Description |
---|---|
private DoubleProperty |
x
Defines the X coordinate.
|
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) |
private void |
doAddTo(Path2D path) |
double |
getX()
Gets the value of the property x.
|
void |
setX(double value)
Sets the value of the property x.
|
java.lang.String |
toString()
Returns a string representation of this
HLineTo object. |
DoubleProperty |
xProperty()
Defines the X coordinate.
|
absoluteProperty, addNode, isAbsolute, removeNode, setAbsolute, u
public final DoubleProperty xProperty
getX()
,
setX(double)
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()
getX()
,
setX(double)
void addTo(NGPath pgPath)
addTo
in class PathElement
private void doAddTo(Path2D path)
public java.lang.String toString()
HLineTo
object.toString
in class java.lang.Object
HLineTo
object.