Top Description Fields Constructors Methods
javafx.scene.shape

public Class VLineTo

extends PathElement
Class Inheritance
Imports
com.sun.javafx.geom.Path2D, com.sun.javafx.scene.shape.VLineToHelper, com.sun.javafx.sg.prism.NGPath, javafx.beans.property.DoubleProperty, .DoublePropertyBase

Creates a vertical line path element from the current point to y.

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));
Since
JavaFX 2.0

Field Summary

Modifier and TypeField and Description
private DoubleProperty
y

Defines the Y coordinate.

Inherited from javafx.scene.shape.PathElement:
nodes

Constructor Summary

AccessConstructor and Description
public
VLineTo()

Creates an empty instance of VLineTo.

public
VLineTo(double
the vertical coordinate to line to
y
)

Creates an instance of VLineTo.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private void
public final double
getY()

public final void
setY(double value)

public String

Returns:

a string representation of this VLineTo object.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of this VLineTo object.

public final DoubleProperty
Inherited from javafx.scene.shape.PathElement:
absolutePropertyaddNodeisAbsoluteremoveNodesetAbsoluteu

Field Detail

yback to summary
private DoubleProperty y

Defines the Y coordinate.

Default Value
0.0

Constructor Detail

VLineToback to summary
public VLineTo()

Creates an empty instance of VLineTo.

VLineToback to summary
public VLineTo(double y)

Creates an instance of VLineTo.

Parameters
y:double

the vertical coordinate to line to

Method Detail

addToback to summary
pack-priv void addTo(NGPath pgPath)

Implements abstract javafx.scene.shape.PathElement.addTo.

Annotations
@Override
doAddToback to summary
private void doAddTo(Path2D path)
getYback to summary
public final double getY()
setYback to summary
public final void setY(double value)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this VLineTo object.

Returns:String

a string representation of this VLineTo object.

Annotations
@Override
yPropertyback to summary
public final DoubleProperty yProperty()