Package | com.yworks.yfiles.layout.hierarchic.incremental |
Class | public class SwimLaneDescriptor |
Inheritance | SwimLaneDescriptor YObject Object |
Implements | Comparable, Comparators_PartialOrder |
See also
Property | Defined By | ||
---|---|---|---|
clientObject : Object
Specifies the client object. | SwimLaneDescriptor | ||
comparator : Comparator
Specifies the comparator that is used for sorting the lanes. | SwimLaneDescriptor | ||
computedLaneIndex : int [read-only]
Returns the computed zero-based index of the lane after the layout has been calculated. | SwimLaneDescriptor | ||
computedLanePosition : Number [read-only]
Returns the computed position (smaller coordinate) of the lane after the layout has been calculated. | SwimLaneDescriptor | ||
computedLaneWidth : Number [read-only]
Returns the computed width of the lane after the layout has been calculated. | SwimLaneDescriptor | ||
indexFixed : Boolean
Getter:
Returns whether the index of this swim lane is fixed or whether the algorithm should try to find the best possible position. | SwimLaneDescriptor | ||
laneTightness : Number
Getter:
Returns the tightness factor of the lane. | SwimLaneDescriptor | ||
leftLaneInset : Number
Specifies the left lane insets where no element will lie in the resulting drawing. | SwimLaneDescriptor | ||
minimumLaneWidth : Number
Getter:
Returns the minimum lane width. | SwimLaneDescriptor | ||
rightLaneInset : Number
Specifies the right lane insets where no element will lie in the resulting drawing. | SwimLaneDescriptor |
Method | Defined By | ||
---|---|---|---|
SwimLaneDescriptor(clientObject:Comparable, init:Boolean = true)
Creates a new swim lane descriptor with an associated client object. | SwimLaneDescriptor | ||
compareTo(o:Object):int
Implements the Comparable interface using the comparator and clientObject fields. | SwimLaneDescriptor | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | SwimLaneDescriptor | ||
hashCode():int | YObject | ||
[static]
Creates a new swim lane descriptor with an associated client object. | SwimLaneDescriptor | ||
[static]
Creates a new swim lane descriptor using the given client object and comparator. | SwimLaneDescriptor |
Method | Defined By | ||
---|---|---|---|
initSwimLaneDescriptor1(clientObject:Comparable):void
Initializes this object. | SwimLaneDescriptor | ||
initSwimLaneDescriptor2(clientObject:Object, cmp:Comparator):void
Initializes this object. | SwimLaneDescriptor |
clientObject | property |
clientObject:Object
Specifies the client object.
public function get clientObject():Object
public function set clientObject(value:Object):void
IllegalArgumentException — if there is currently no comparator set and the specified object is not a com.yworks.bridge.util.Comparable instance.
|
See also
comparator | property |
comparator:Comparator
Specifies the comparator that is used for sorting the lanes.
public function get comparator():Comparator
public function set comparator(value:Comparator):void
ReferenceError — if the specified comparator is null .
|
computedLaneIndex | property |
computedLaneIndex:int
[read-only] Returns the computed zero-based index of the lane after the layout has been calculated.
public function get computedLaneIndex():int
computedLanePosition | property |
computedLanePosition:Number
[read-only] Returns the computed position (smaller coordinate) of the lane after the layout has been calculated.
public function get computedLanePosition():Number
computedLaneWidth | property |
computedLaneWidth:Number
[read-only] Returns the computed width of the lane after the layout has been calculated.
public function get computedLaneWidth():Number
indexFixed | property |
indexFixed:Boolean
Getter:
Returns whether the index of this swim lane is fixed or whether the algorithm should try to find the best possible position.
The default is true
For all swim lanes where this property is set to true
, the relative ordering given by the client objects is preserved. The remaining swim lanes may be resorted so that the overall edge lengths are minimized.
By default, this feature is enabled.
public function get indexFixed():Boolean
public function set indexFixed(value:Boolean):void
laneTightness | property |
laneTightness:Number
Getter:
Returns the tightness factor of the lane.
The default is 0.0d
.
0.0d
will disable compression of the lane. A value of 1.0d
will try to force the lane to be of its minimum width (minimumLaneWidth).
public function get laneTightness():Number
public function set laneTightness(value:Number):void
IllegalArgumentException — if tightness is out of the valid range
|
See also
leftLaneInset | property |
leftLaneInset:Number
Specifies the left lane insets where no element will lie in the resulting drawing.
The default is 0.0d
.
public function get leftLaneInset():Number
public function set leftLaneInset(value:Number):void
IllegalArgumentException — if the specified value is less than 0 .
|
minimumLaneWidth | property |
minimumLaneWidth:Number
Getter:
Returns the minimum lane width.
The default is 0.0d
.
public function get minimumLaneWidth():Number
public function set minimumLaneWidth(value:Number):void
IllegalArgumentException — if the specified value is less than 0 .
|
rightLaneInset | property |
rightLaneInset:Number
Specifies the right lane insets where no element will lie in the resulting drawing.
The default is 0.0d
.
public function get rightLaneInset():Number
public function set rightLaneInset(value:Number):void
IllegalArgumentException — if the specified value is less than 0 .
|
SwimLaneDescriptor | () | Constructor |
public function SwimLaneDescriptor(clientObject:Comparable, init:Boolean = true)
Creates a new swim lane descriptor with an associated client object.
ParametersclientObject:Comparable — an object provided by the client that will be used for determining the order of the lanes.
| |
init:Boolean (default = true ) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
ReferenceError — if the specified client object is null .
|
compareTo | () | method |
public function compareTo(o:Object):int
Implements the Comparable interface using the comparator and clientObject fields.
Parameters
o:Object |
int |
See also
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initSwimLaneDescriptor1 | () | method |
protected final function initSwimLaneDescriptor1(clientObject:Comparable):void
Initializes this object. See the documentation of the corresponding factory method newSwimLaneDescriptor1()
for details.
Parameters
clientObject:Comparable |
See also
initSwimLaneDescriptor2 | () | method |
protected final function initSwimLaneDescriptor2(clientObject:Object, cmp:Comparator):void
Initializes this object. See the documentation of the corresponding factory method newSwimLaneDescriptor2()
for details.
Parameters
clientObject:Object | |
cmp:Comparator |
See also
newSwimLaneDescriptor1 | () | method |
public static function newSwimLaneDescriptor1(clientObject:Comparable):SwimLaneDescriptor
Creates a new swim lane descriptor with an associated client object.
Parameters
clientObject:Comparable — an object provided by the client that will be used for determining the order of the lanes.
|
SwimLaneDescriptor |
ReferenceError — if the specified client object is null .
|
newSwimLaneDescriptor2 | () | method |
public static function newSwimLaneDescriptor2(clientObject:Object, cmp:Comparator):SwimLaneDescriptor
Creates a new swim lane descriptor using the given client object and comparator.
Parameters
clientObject:Object — a client object used for sorting the lanes
| |
cmp:Comparator — a Comparator used for comparing the client objects.
|
SwimLaneDescriptor |
ReferenceError — if the specified client object is null or the specified comparator is null but the specified client object is not a com.yworks.bridge.util.Comparable instance.
|
See also