public static class Swimlanes.SwimlaneRepresentative extends Object
SwimlaneRepresentative
represents the position and arrangement mode for a swimlane.Constructor and Description |
---|
SwimlaneRepresentative(int swimlanePos,
boolean allowRearrangement)
Creates a new
Swimlanes.SwimlaneRepresentative instance. |
Modifier and Type | Method and Description |
---|---|
int |
getSwimlanePos()
Gets the current position of the represented swimlane.
|
boolean |
isRearrangementAllowed()
Gets whether or not the represented swimlane can be rearranged.
|
void |
setRearrangementAllowed(boolean value)
Sets whether or not the represented swimlane can be rearranged.
|
void |
setSwimlanePos(int value)
Sets the current position of the represented swimlane.
|
public SwimlaneRepresentative(int swimlanePos, boolean allowRearrangement)
Swimlanes.SwimlaneRepresentative
instance.swimlanePos
- denotes the current position of the represented swimlaneallowRearrangement
- true
if the represented swimlane may be
rearranged
, false
otherwisepublic int getSwimlanePos()
The swimlane positions are described by a zero-based index and must not be negative.
IllegalArgumentException
- if the position is smaller than 0
setSwimlanePos(int)
public boolean isRearrangementAllowed()
For all swimlanes with disabled rearrangement, the relative ordering given by SwimlanePos
is preserved. The other swimlanes may be rearranged.
true
if the represented swimlane can be rearranged, false
otherwisesetRearrangementAllowed(boolean)
public void setRearrangementAllowed(boolean value)
For all swimlanes with disabled rearrangement, the relative ordering given by SwimlanePos
is preserved. The other swimlanes may be rearranged.
value
- true
if the represented swimlane can be rearranged, false
otherwiseisRearrangementAllowed()
public void setSwimlanePos(int value)
The swimlane positions are described by a zero-based index and must not be negative.
IllegalArgumentException
- if the position is smaller than 0
value
- the current position of the swimlanegetSwimlanePos()