Interface WebappAreaViewFactory
-
@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface WebappAreaViewFactory
Creates instances of WebappAreaView.- Since:
- 25.0
-
-
Method Summary
Static Methods Modifier and Type Method Description static WebappAreaView
createCircle(Circle circle, int layer)
Create a circle.static java.util.List<NewWebappAreaView>
createFromSvg(java.lang.String svg)
Return the areas encoded in the SVG.static WebappAreaView
createPolygon(Polygon polygon, int layer)
Create a polygon.static WebappAreaView
createRectangle(Rectangle rectangle, int layer)
Create a rectangle.
-
-
-
Method Detail
-
createRectangle
static WebappAreaView createRectangle(Rectangle rectangle, int layer)
Create a rectangle.- Parameters:
rectangle
- The shape.layer
- The layer on which it is painted.- Returns:
- The area view.
-
createCircle
static WebappAreaView createCircle(Circle circle, int layer)
Create a circle.- Parameters:
circle
- The shape.layer
- The layer on which it is painted.- Returns:
- The area view.
-
createPolygon
static WebappAreaView createPolygon(Polygon polygon, int layer)
Create a polygon.- Parameters:
polygon
- The shape.layer
- The layer on which it is painted.- Returns:
- The area view.
-
createFromSvg
static java.util.List<NewWebappAreaView> createFromSvg(java.lang.String svg)
Return the areas encoded in the SVG.- Parameters:
svg
- The SVG string.- Returns:
- The list of areas.
- Throws:
java.lang.IllegalArgumentException
- if the areas could not be decoded.
-
-