Search this API

y.layout
Class Swimlanes.SwimlaneRepresentant

java.lang.Object
  extended by y.layout.Swimlanes.SwimlaneRepresentant
Enclosing class:
Swimlanes

public static class Swimlanes.SwimlaneRepresentant
extends Object

Class that internally represents a swim lane.


Constructor Summary
Swimlanes.SwimlaneRepresentant(int swimlanePos, boolean allowRearrangement)
          Creates a new instance of SwimlaneRepresentant.
 
Method Summary
 int getSwimlanePos()
          Return the current position of the represented swim lane.
 boolean isAllowRearrangement()
          Return whether the represented swim lane can be rearranged.
 void setAllowRearrangement(boolean allowRearrangement)
          Specifies whether the represented swim lane can be rearranged.
 void setSwimlanePos(int swimlanePos)
          Set the current position of the represented swim lane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Swimlanes.SwimlaneRepresentant

public Swimlanes.SwimlaneRepresentant(int swimlanePos,
                                      boolean allowRearrangement)
Creates a new instance of SwimlaneRepresentant.

Parameters:
swimlanePos - denotes the current position of the represented swim lane.
allowRearrangement - true if the represented swim lane may be rearranged (see setAllowRearrangement(boolean))
Method Detail

getSwimlanePos

public int getSwimlanePos()
Return the current position of the represented swim lane.

Returns:
the current position of the represented swim lane.
See Also:
setSwimlanePos(int), setAllowRearrangement(boolean)

setSwimlanePos

public void setSwimlanePos(int swimlanePos)
Set the current position of the represented swim lane.

Parameters:
swimlanePos - the current position of the represented swim lane.
See Also:
getSwimlanePos(), setAllowRearrangement(boolean)

isAllowRearrangement

public boolean isAllowRearrangement()
Return whether the represented swim lane can be rearranged.

Returns:
true iff the represented swim lane can be rearranged.
See Also:
setAllowRearrangement(boolean)

setAllowRearrangement

public void setAllowRearrangement(boolean allowRearrangement)
Specifies whether the represented swim lane can be rearranged.

For all swim lanes with rearrangement set to false, the relative ordering given by getSwimlanePos() is preserved. The remaining swim lanes may be rearranged.

Parameters:
allowRearrangement - true iff the represented swim lane can be rearranged.
See Also:
isAllowRearrangement(), ()

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.