Class 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.
    • Constructor Detail

      • DesignerShapeRegistry

        public DesignerShapeRegistry()
    • Method Detail

      • register

        public void register​(java.lang.Class<? extends RMShape> shapeClass)
      • getCategories

        public java.util.List<java.lang.String> getCategories()
      • getDescriptor

        public java.util.Optional<DesignerShapeRegistry.ShapeDescriptor> getDescriptor​(java.lang.Class<? extends RMShape> shapeClass)
        Return a previously registered descriptor that matches shapeClass, or Optional.empty() if not found.