|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.grid.RowDescriptor
public class RowDescriptor
This class represents a row of a partition grid
structure.
The results of the calculation of the geometry of the row will be placed into the instances of this class after the layout.
PartitionGrid
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this RowDescriptor instance with a given other RowDescriptor instance based on the indices
of the two instances. |
double |
getBottomInset()
Returns the bottom inset in which no element will lie in the resulting layout. |
double |
getComputedHeight()
Returns the computed height of the row after the layout has been calculated. |
double |
getComputedPosition()
Returns the computed position (smallest y-coordinate) of the row after the layout has been calculated. |
int |
getIndex()
Returns the index of the row within the partition grid . |
double |
getMinimumHeight()
Returns the minimum height of the row. |
double |
getOriginalHeight()
Returns the original height of the row. |
double |
getOriginalPosition()
Returns the original position (smallest y-coordinate) of the row. |
double |
getTightness()
Returns the tightness factor of this row. |
double |
getTopInset()
Returns the top inset in which no element will lie in the resulting layout. |
boolean |
isIndexFixed()
Returns whether the index of the row is fixed or it should be chosen automatically in order to minimize edge lengths. |
void |
setBottomInset(double bottomInset)
Specifies the top inset in which no element will lie in the resulting layout. |
void |
setComputedHeight(double computedHeight)
Specifies the computed height of the row after the layout has been calculated. |
void |
setComputedPosition(double computedPosition)
Specifies the computed position (smallest y-coordinate) of the row after the layout has been calculated. |
void |
setIndexFixed(boolean indexFixed)
Specifies whether the index of the row is fixed or it should be chosen automatically in order to minimize edge lengths. |
void |
setMinimumHeight(double minimumHeight)
Specifies the minimum height of the row. |
void |
setOriginalHeight(double originalHeight)
Specifies the original height of the row. |
void |
setOriginalPosition(double originalPosition)
Specifies the original position (smallest y-coordinate) of the row. |
void |
setTightness(double tightness)
Specifies the tightness factor of this row. |
void |
setTopInset(double topInset)
Specifies the top inset in which no element will lie in the resulting layout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getIndex()
partition grid
.
public int compareTo(java.lang.Object o)
RowDescriptor
instance with a given other RowDescriptor
instance based on the indices
of the two instances.
compareTo
in interface java.lang.Comparable
o
- the RowDescriptor
to compare to
-1
, 0
or 1
if this RowDescriptor
is less than, equal to,
or greater than the given other RowDescriptor
public double getMinimumHeight()
The minimum height is defined to be at least 0
.
setMinimumHeight(double)
public void setMinimumHeight(double minimumHeight)
The minimum height is defined to be at least 0
.
public double getTopInset()
The inset value needs to be greater than or equal to 0
.
setTopInset(double)
public void setTopInset(double topInset)
The inset value needs to be greater than or equal to 0
.
public double getBottomInset()
The inset value needs to be greater than or equal to 0
.
setBottomInset(double)
public void setBottomInset(double bottomInset)
The inset value needs to be greater than or equal to 0
.
public double getComputedHeight()
The computed height needs to be greater than or equal to 0
.
setComputedHeight(double)
public void setComputedHeight(double computedHeight)
The computed height needs to be greater than or equal to 0
.
computedHeight
- the computed height
java.lang.IllegalArgumentException
- if the computed height is negativepublic double getOriginalPosition()
setOriginalPosition(double)
public void setOriginalPosition(double originalPosition)
originalPosition
- the original position (smallest y-coordinate)public double getOriginalHeight()
The original height needs to be greater than or equal to 0
.
setOriginalHeight(double)
public void setOriginalHeight(double originalHeight)
The original height needs to be greater than or equal to 0
.
originalHeight
- the original height
java.lang.IllegalArgumentException
- if the original height is negativepublic double getComputedPosition()
setComputedPosition(double)
public void setComputedPosition(double computedPosition)
computedPosition
- the computed position (smallest y-coordinate)public double getTightness()
This value must lie within the interval [0,1]
.
The larger the value, the more the row will be forced to obtain its minimum height:
0.0d
will disable the compression of the row.1.0d
will try to force the row to obtain its specified
minimum height
.
[0,1]
setTightness(double)
public void setTightness(double tightness)
This value must lie within the interval [0,1]
.
The larger the value, the more the row will be forced to obtain its minimum height:
0.0d
will disable the compression of the row.1.0d
will try to force the row to obtain its specified
minimum height
.
tightness
- a tightness value from the interval [0,1]
java.lang.IllegalArgumentException
- if the tightness value is outside the interval [0,1]
public boolean isIndexFixed()
For all rows where this property is enabled, the relative ordering given by the indices is preserved. The remaining rows may be sorted again so that the overall edge lengths are minimized.
true
if the row index is fixed, false
if it may be chosen automaticallysetIndexFixed(boolean)
public void setIndexFixed(boolean indexFixed)
For all rows where this property is enabled, the relative ordering given by the indices is preserved. The remaining rows may be sorted again so that the overall edge lengths are minimized.
indexFixed
- true
if the row index should be fixed, false
if it may be chosen
automatically
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |