Class LayoutManager


  • @OpenApiAll
    public final class LayoutManager
    extends java.lang.Object
    Manager that binds layouters to diagrams.
    • Field Detail

      • defaultLayouters

        private final java.util.Map<java.lang.String,​DiagramLayouter> defaultLayouters
    • Constructor Detail

      • LayoutManager

        private LayoutManager()
    • Method Detail

      • getDefaultLayouter

        public DiagramLayouter getDefaultLayouter​(java.lang.String diagramType)
        Get default diagram layouter.
        Parameters:
        diagramType - The specify diagram type.
        Returns:
        DiagramLayouter.
      • registerDefaultLayouter

        public void registerDefaultLayouter​(java.lang.String diagramType,
                                            DiagramLayouter layouter)
        Register the given DiagramLayouter to be default layouter.
        Parameters:
        diagramType - diagram type
        layouter - layouter
      • isSupported

        public static boolean isSupported()
        Check the layouter is supported.
        Returns:
        true if supported