(x,y)
coordinate space. Example:
import javafx.scene.shape.*; Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); }
| Modifier and Type | Field and Description |
|---|---|
| private final DoubleProperty | endX
The X coordinate of the end point of the line segment. |
| private final DoubleProperty | endY
The Y coordinate of the end point of the line segment. |
| private final Line2D | |
| private final DoubleProperty | startX
The X coordinate of the start point of the line segment. |
| private final DoubleProperty | startY
The Y coordinate of the start point of the line segment. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Line(double
the horizontal coordinate of the start point of the line segment startX, double the vertical coordinate of the start point of the line segment startY, double the horizontal coordinate of the end point of the line segment endX, double the vertical coordinate of the end point of the line segment endY)Creates a new instance of Line. |
| Modifier and Type | Method and Description |
|---|---|
| private BaseBounds | |
| private Line2D | |
| private NGNode | |
| private Paint | |
| private Paint | doCssGetStrokeInitialValue()
Hides javafx. Some sub-class of Shape, such as |
| private void | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final double | |
| public final double | |
| public final double | |
| public final double | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public String | Returns: a string representation of thisLine object.Overrides javafx. Returns a string representation of this |
| endX | back to summary |
|---|---|
| private final DoubleProperty endX The X coordinate of the end point of the line segment.
| |
| endY | back to summary |
|---|---|
| private final DoubleProperty endY The Y coordinate of the end point of the line segment.
| |
| shape | back to summary |
|---|---|
| private final Line2D shape | |
| startX | back to summary |
|---|---|
| private final DoubleProperty startX The X coordinate of the start point of the line segment.
| |
| startY | back to summary |
|---|---|
| private final DoubleProperty startY The Y coordinate of the start point of the line segment.
| |
| Line | back to summary |
|---|---|
| public Line() Creates an empty instance of Line. | |
| Line | back to summary |
|---|---|
| public Line(double startX, double startY, double endX, double endY) Creates a new instance of Line.
| |
| doComputeGeomBounds | back to summary |
|---|---|
| private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx) | |
| doConfigShape | back to summary |
|---|---|
| private Line2D doConfigShape() | |
| doCreatePeer | back to summary |
|---|---|
| private NGNode doCreatePeer() | |
| doCssGetFillInitialValue | back to summary |
|---|---|
| private Paint doCssGetFillInitialValue() | |
| doCssGetStrokeInitialValue | back to summary |
|---|---|
| private Paint doCssGetStrokeInitialValue() Hides javafx. Some sub-class of Shape, such as Note This method MUST only be called via its accessor method. | |
| doUpdatePeer | back to summary |
|---|---|
| private void doUpdatePeer() | |
| endXProperty | back to summary |
|---|---|
| public final DoubleProperty endXProperty() | |
| endYProperty | back to summary |
|---|---|
| public final DoubleProperty endYProperty() | |
| getEndX | back to summary |
|---|---|
| public final double getEndX() | |
| getEndY | back to summary |
|---|---|
| public final double getEndY() | |
| getStartX | back to summary |
|---|---|
| public final double getStartX() | |
| getStartY | back to summary |
|---|---|
| public final double getStartY() | |
| setEndX | back to summary |
|---|---|
| public final void setEndX(double value) | |
| setEndY | back to summary |
|---|---|
| public final void setEndY(double value) | |
| setStartX | back to summary |
|---|---|
| public final void setStartX(double value) | |
| setStartY | back to summary |
|---|---|
| public final void setStartY(double value) | |
| startXProperty | back to summary |
|---|---|
| public final DoubleProperty startXProperty() | |
| startYProperty | back to summary |
|---|---|
| public final DoubleProperty startYProperty() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |