Top Description Fields Constructors Methods
javafx.scene.shape

public Class HLineTo

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

Creates a horizontal line path element from the current point to x.

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

Field Summary

Modifier and TypeField and Description
private DoubleProperty
x

Defines the X coordinate.

Inherited from javafx.scene.shape.PathElement:
nodes

Constructor Summary

AccessConstructor and Description
public
HLineTo()

Creates an empty instance of HLineTo.

public
HLineTo(double
the horizontal coordinate to line to
x
)

Creates an instance of HLineTo.

Method Summary

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

public final void
setX(double value)

public String

Returns:

a string representation of this HLineTo object.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of this HLineTo object.

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

Field Detail

xback to summary
private DoubleProperty x

Defines the X coordinate.

Default Value
0.0

Constructor Detail

HLineToback to summary
public HLineTo()

Creates an empty instance of HLineTo.

HLineToback to summary
public HLineTo(double x)

Creates an instance of HLineTo.

Parameters
x:double

the horizontal 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)
getXback to summary
public final double getX()
setXback to summary
public final void setX(double value)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this HLineTo object.

Returns:String

a string representation of this HLineTo object.

Annotations
@Override
xPropertyback to summary
public final DoubleProperty xProperty()