Class OrderedHierarchicDiagramLayouter
- java.lang.Object
-
- com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
-
- com.nomagic.magicdraw.uml.symbols.layout.HierarchicDiagramLayouter
-
- com.nomagic.magicdraw.uml.symbols.layout.composite.CompositeStructureDiagramLayouter
-
- com.nomagic.magicdraw.uml.symbols.layout.ClassDiagramLayouter
-
- com.nomagic.magicdraw.uml.symbols.layout.orderedhier.OrderedHierarchicDiagramLayouter
-
- All Implemented Interfaces:
DiagramLayouter
,java.lang.Cloneable
@OpenApi public class OrderedHierarchicDiagramLayouter extends ClassDiagramLayouter
A layouter with a default sequencing. It also automatically detects the orientation and changes alignment for shapes. Best fit for requirement diagrams.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
determinedOrientation
-
Fields inherited from class com.nomagic.magicdraw.uml.symbols.layout.composite.CompositeStructureDiagramLayouter
can
-
-
Constructor Summary
Constructors Constructor Description OrderedHierarchicDiagramLayouter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
adjustOrientationByHierarchyFlow(com.nomagic.magicdraw.uml.symbols.layout.sequence.IHLSequenceManager.HierarchyDirection hierarchyDirection, java.lang.String orientation)
protected void
afterLayout(AbstractDiagramLayouterOptionsGroup options, DiagramPresentationElement dpe, UMLGraph graph, com.nomagic.magicdraw.commands.MacroCommand mc)
private static java.lang.String
determineOrientation(UMLGraph graph, HierarchicLayouterOptionsGroup options)
private static java.lang.String
determineOrientationByShapeSizes(UMLGraph graph)
protected boolean
layout(AbstractDiagramLayouterOptionsGroup opt, DiagramPresentationElement dpe, UMLGraph graph)
Layouts a diagram-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.layout.composite.CompositeStructureDiagramLayouter
createGraph, preProcessing
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.layout.HierarchicDiagramLayouter
clone, createComponentLayouter, fixOnFrameElements, getPathRerouteCollectors, initDefaultHierarchicSettings, registerPathRerouteCollector, resizeOnEdgeElements, routeNonRoutedPaths, runIHLLayoutSeries, wrapToAccordingGroupLayouter
-
Methods inherited from class com.nomagic.magicdraw.uml.symbols.layout.AbstractDiagramLayouter
canLayout, clearOldRectangles, containsSelectedFromTheSameParent, createCommands, createGraph, createLayoutParameters, drawLayoutResults, getAnchoredPresentationElement, getDiagramLayouterAbortHandler, getLayoutParameter, getMessagesFromPath, getOptionsID, getSelected, isTypeSupported, layout, needPartitionData, placeLegendAndInfo, postprocessing, resizeFrameIfNecessary, setAnchoredPresentationElement, setLabelConsiderationMode, setLayoutParameter
-
-
-
-
Method Detail
-
layout
@OpenApi protected boolean layout(AbstractDiagramLayouterOptionsGroup opt, DiagramPresentationElement dpe, UMLGraph graph)
Description copied from class:AbstractDiagramLayouter
Layouts a diagram- Overrides:
layout
in classClassDiagramLayouter
- Parameters:
opt
- layouter optionsdpe
- diagram to layoutgraph
- a constructed graph from the diagram- Returns:
- true if it was layouted successfully , false otherwise.
-
determineOrientation
private static java.lang.String determineOrientation(UMLGraph graph, @CheckForNull HierarchicLayouterOptionsGroup options)
-
determineOrientationByShapeSizes
private static java.lang.String determineOrientationByShapeSizes(UMLGraph graph)
-
adjustOrientationByHierarchyFlow
private static java.lang.String adjustOrientationByHierarchyFlow(com.nomagic.magicdraw.uml.symbols.layout.sequence.IHLSequenceManager.HierarchyDirection hierarchyDirection, java.lang.String orientation)
-
afterLayout
protected void afterLayout(AbstractDiagramLayouterOptionsGroup options, DiagramPresentationElement dpe, UMLGraph graph, com.nomagic.magicdraw.commands.MacroCommand mc)
-
-