Class DesignerShapeRegistry
- java.lang.Object
-
- com.inductiveautomation.reporting.designer.api.DesignerShapeRegistry
-
public final class DesignerShapeRegistry extends java.lang.Object
Holds the RM shapes that are on the palette. 3rd party modules may add their own shapes here.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DesignerShapeRegistry.ShapeDescriptor
-
Constructor Summary
Constructors Constructor Description DesignerShapeRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DesignerShapeRegistry
get(DesignerContext context)
This is how you get an instance of the registry.java.util.List<java.lang.String>
getCategories()
java.util.Optional<DesignerShapeRegistry.ShapeDescriptor>
getDescriptor(java.lang.Class<? extends RMShape> shapeClass)
Return a previously registered descriptor that matchesshapeClass
, orOptional.empty()
if not found.java.util.List<DesignerShapeRegistry.ShapeDescriptor>
getShapes(java.lang.String category)
void
register(java.lang.Class<? extends RMShape> shapeClass)
-
-
-
Method Detail
-
get
public static DesignerShapeRegistry get(DesignerContext context)
This is how you get an instance of the registry.
-
register
public void register(java.lang.Class<? extends RMShape> shapeClass)
-
getCategories
public java.util.List<java.lang.String> getCategories()
-
getShapes
public java.util.List<DesignerShapeRegistry.ShapeDescriptor> getShapes(java.lang.String category)
-
getDescriptor
public java.util.Optional<DesignerShapeRegistry.ShapeDescriptor> getDescriptor(java.lang.Class<? extends RMShape> shapeClass)
Return a previously registered descriptor that matchesshapeClass
, orOptional.empty()
if not found.
-
-