Interface WebappAreaViewFactory
@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface WebappAreaViewFactory
Creates instances of WebappAreaView.
- Since:
- 25.0
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic WebappAreaView
createCircle
(Circle circle, int layer) Create a circle.static List<NewWebappAreaView>
createFromSvg
(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 Details
-
createRectangle
Create a rectangle.- Parameters:
rectangle
- The shape.layer
- The layer on which it is painted.- Returns:
- The area view.
-
createCircle
Create a circle.- Parameters:
circle
- The shape.layer
- The layer on which it is painted.- Returns:
- The area view.
-
createPolygon
Create a polygon.- Parameters:
polygon
- The shape.layer
- The layer on which it is painted.- Returns:
- The area view.
-
createFromSvg
Return the areas encoded in the SVG.- Parameters:
svg
- The SVG string.- Returns:
- The list of areas.
- Throws:
IllegalArgumentException
- if the areas could not be decoded.
-