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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,DiagramLayouter>
defaultLayouters
private static LayoutManager
instance
-
Constructor Summary
Constructors Modifier Constructor Description private
LayoutManager()
-
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.
-
-
-
Field Detail
-
defaultLayouters
private final java.util.Map<java.lang.String,DiagramLayouter> defaultLayouters
-
instance
private static LayoutManager instance
-
-
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
-
-