public final class BoundingShape extends Object
Modifier and Type | Method and Description |
---|---|
static BoundingShape |
box(double width,
double height)
Constructs new rectangular bounding shape with given width and height.
|
static BoundingShape |
chain(javafx.geometry.Point2D... points)
Constructs new closed chain shaped bounding shape.
|
static BoundingShape |
circle(double radius)
Constructs new circular bounding shape with given radius.
|
boolean |
isCircle() |
boolean |
isRectangle() |
static BoundingShape |
polygon(double... points) |
static BoundingShape |
polygon(List<javafx.geometry.Point2D> points) |
static BoundingShape |
polygon(javafx.geometry.Point2D... points) |
static BoundingShape |
polygonFromDoubles(List<Double> points) |
String |
toString() |
public boolean isCircle()
public boolean isRectangle()
public static BoundingShape circle(double radius)
radius
- circle radiuspublic static BoundingShape box(double width, double height)
width
- box widthheight
- box heightpublic static BoundingShape chain(javafx.geometry.Point2D... points)
points
- points to use in a chainIllegalArgumentException
- if number of points is less than 2public static BoundingShape polygon(List<javafx.geometry.Point2D> points)
public static BoundingShape polygonFromDoubles(List<Double> points)
public static BoundingShape polygon(double... points)
public static BoundingShape polygon(javafx.geometry.Point2D... points)
Copyright © 2018. All rights reserved.