Class LayoutManager
- java.lang.Object
-
- com.nomagic.magicdraw.uml.symbols.layout.LayoutManager
-
@OpenApiAll public final class LayoutManager extends java.lang.Object
Manager that binds layouters to diagrams.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DiagramLayouter
getDefaultLayouter(java.lang.String diagramType)
Get default diagram layouter.static LayoutManager
getInstance()
static boolean
isSupported()
Check the layouter is supported.void
registerDefaultLayouter(java.lang.String diagramType, DiagramLayouter layouter)
Register the given DiagramLayouter to be default layouter.
-
-
-
Method Detail
-
getInstance
public static LayoutManager getInstance()
-
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 typelayouter
- layouter
-
isSupported
public static boolean isSupported()
Check the layouter is supported.- Returns:
- true if supported
-
-