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