public class VLineTo 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(50.0f, 0.0f)); path.getElements().add(new VLineTo(50.0f));
Type | Property and Description |
---|---|
DoubleProperty |
y
Defines the Y coordinate.
|
absoluteProperty
Modifier and Type | Field and Description |
---|---|
private DoubleProperty |
y
Defines the Y coordinate.
|
nodes
Constructor and Description |
---|
VLineTo()
Creates an empty instance of VLineTo.
|
VLineTo(double y)
Creates an instance of VLineTo.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addTo(NGPath pgPath) |
private void |
doAddTo(Path2D path) |
double |
getY()
Gets the value of the property y.
|
void |
setY(double value)
Sets the value of the property y.
|
java.lang.String |
toString()
Returns a string representation of this
VLineTo object. |
DoubleProperty |
yProperty()
Defines the Y coordinate.
|
absoluteProperty, addNode, isAbsolute, removeNode, setAbsolute, u
public final DoubleProperty yProperty
getY()
,
setY(double)
public VLineTo()
public VLineTo(double y)
y
- the vertical coordinate to line topublic final void setY(double value)
public final double getY()
public final DoubleProperty yProperty()
getY()
,
setY(double)
void addTo(NGPath pgPath)
addTo
in class PathElement
private void doAddTo(Path2D path)
public java.lang.String toString()
VLineTo
object.toString
in class java.lang.Object
VLineTo
object.