import javafx.scene.shape.*;
Polygon polygon = new Polygon();
polygon.getPoints().addAll(new Double[]{
0.0, 0.0,
20.0, 10.0,
10.0, 20.0 });
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableList | points
Defines the coordinates of the polygon vertices. |
| private final Path2D |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private BaseBounds | |
| private Path2D | |
| private NGNode | |
| private void | |
| public final ObservableList | Returns: An observable list of vertices of thisPolygonGets the coordinates of the |
| public String | Returns: a string representation of thisPolygon object.Overrides javafx. Returns a string representation of this |
| points | back to summary |
|---|---|
| private final ObservableList<Double> points Defines the coordinates of the polygon vertices.
| |
| shape | back to summary |
|---|---|
| private final Path2D shape | |
| Polygon | back to summary |
|---|---|
| public Polygon() Creates an empty instance of Polygon. | |
| Polygon | back to summary |
|---|---|
| public Polygon(double... points) Creates a new instance of Polygon.
| |
| doComputeGeomBounds | back to summary |
|---|---|
| private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx) | |
| doConfigShape | back to summary |
|---|---|
| private Path2D doConfigShape() | |
| doCreatePeer | back to summary |
|---|---|
| private NGNode doCreatePeer() | |
| doUpdatePeer | back to summary |
|---|---|
| private void doUpdatePeer() | |
| getPoints | back to summary |
|---|---|
| public final ObservableList Gets the coordinates of the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |