Class NumberingSequencer
java.lang.Object
com.nomagic.magicdraw.uml.symbols.layout.sequence.NameSequencer
com.nomagic.magicdraw.uml.symbols.layout.sequence.NumberingSequencer
- All Implemented Interfaces:
Sequencer
,Comparator<ShapeElement>
Sorts by numbering ID.
Takes the numbering ID and sorts them alphanumerically.
The shapes that do not have ID's are placed at the end
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(ShapeElement o1, ShapeElement o2) getName()
The name of the sequencerMethods inherited from class com.nomagic.magicdraw.uml.symbols.layout.sequence.NameSequencer
compareStrings
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
NAME
-
-
Constructor Details
-
NumberingSequencer
public NumberingSequencer()
-
-
Method Details
-
getName
Description copied from interface:Sequencer
The name of the sequencer- Specified by:
getName
in interfaceSequencer
- Overrides:
getName
in classNameSequencer
- Returns:
- sequencer name
-
compare
- Specified by:
compare
in interfaceComparator<ShapeElement>
- Specified by:
compare
in interfaceSequencer
- Overrides:
compare
in classNameSequencer
-