|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.hierarchic.incremental.RowDescriptor
public class RowDescriptor
This class represents a row of a PartitionGrid
.
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(Object o)
|
double |
getBottomInset()
Returns the bottom row insets where no element will lie in the resulting drawing. |
double |
getComputedHeight()
Returns the computed height of the row after the layout has been calculated. |
double |
getComputedPosition()
Returns the computed position (smaller 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 row height. |
double |
getOriginalHeight()
Returns the original height of the row. |
double |
getOriginalPosition()
Returns the original position (smaller y-coordinate) of the row. |
double |
getTightness()
Returns the tightness factor of the row. |
double |
getTopInset()
Returns the top row insets where no element will lie in the resulting drawing. |
boolean |
isIndexFixed()
Returns whether the index of this row is fixed or whether the algorithm should try to find the best possible position. |
void |
setBottomInset(double bottomInset)
Sets the bottom row insets where no element will lie in the resulting drawing. |
void |
setComputedHeight(double computedHeight)
Used to set the computed height of the row after the layout has been calculated. |
void |
setComputedPosition(double computedPosition)
Used to set the computed position (smaller y-coordinate) of the row after the layout has been calculated. |
void |
setIndexFixed(boolean indexFixed)
Specifies whether a row's index is fixed or whether the index should be chosen automatically in order to minimize edge lengths. |
void |
setMinimumHeight(double minimumHeight)
Sets the minimum height of the row. |
void |
setOriginalHeight(double originalHeight)
Sets the original height of the row. |
void |
setOriginalPosition(double originalPosition)
Sets the original position (smaller y-coordinate) of the row. |
void |
setTightness(double tightness)
Sets the tightness factor of the row. |
void |
setTopInset(double topInset)
Sets the top row insets where no element will lie in the resulting drawing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getIndex()
public int compareTo(Object o)
compareTo
in interface Comparable
public double getMinimumHeight()
0.0d
.
public void setMinimumHeight(double minimumHeight)
IllegalArgumentException
- if minimumHeight is negativeminimumHeight
- the new heightpublic double getTopInset()
0.0d
.
public void setTopInset(double topInset)
IllegalArgumentException
- if topInset is negativetopInset
- the new insetspublic double getBottomInset()
0.0d
.
public void setBottomInset(double bottomInset)
IllegalArgumentException
- if bottomInset is negativebottomInset
- the new insetspublic double getComputedHeight()
public void setComputedHeight(double computedHeight)
public double getOriginalPosition()
public void setOriginalPosition(double originalPosition)
public double getOriginalHeight()
public void setOriginalHeight(double originalHeight)
public double getComputedPosition()
public void setComputedPosition(double computedPosition)
public double getTightness()
0.0d
.
setTightness(double)
public void setTightness(double tightness)
0.0d
will disable compression of the row.
A value of 1.0d
will try to force the column to be of
its minimum height
.
IllegalArgumentException
- if tightness is out of the valid rangetightness
- the tightness of the row [0.0d .. 1.0d]public boolean isIndexFixed()
true
true
iff the row's index should not be determined automatically.setIndexFixed(boolean)
public void setIndexFixed(boolean indexFixed)
For all rows where this property is set to true
, the relative ordering given by the indices
is preserved. The remaining rows may be resorted so that the overall edge lengths are minimized.
By default, this feature is enabled.
indexFixed
- true
iff the row index should not be determined automatically.isIndexFixed()
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |