public class RowDescriptor extends Object implements Comparable
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
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
Compares this
RowDescriptor instance with a given other RowDescriptor instance based on the indices of
the two instances. |
double |
getBottomInset()
Gets the bottom inset in which no element will lie in the resulting layout.
|
double |
getComputedHeight()
Gets the computed height of the row after the layout has been calculated.
|
double |
getComputedPosition()
Gets the computed position (smallest y-coordinate) of the row after the layout has been calculated.
|
int |
getIndex()
Gets the index of the row within the
partition grid . |
double |
getMinimumHeight()
Gets the minimum height of the row.
|
double |
getOriginalHeight()
Gets the original height of the row.
|
double |
getOriginalPosition()
Gets the original position (smallest y-coordinate) of the row.
|
double |
getTightness()
Gets the tightness factor of this row.
|
double |
getTopInset()
Gets the top inset in which no element will lie in the resulting layout.
|
boolean |
isIndexFixed()
Gets whether the index of the row is fixed or it should be chosen automatically in order to minimize edge lengths.
|
void |
setBottomInset(double value)
Sets the bottom inset in which no element will lie in the resulting layout.
|
void |
setComputedHeight(double value)
Sets the computed height of the row after the layout has been calculated.
|
void |
setComputedPosition(double value)
Sets the computed position (smallest y-coordinate) of the row after the layout has been calculated.
|
void |
setIndexFixed(boolean value)
Sets whether the index of the row is fixed or it should be chosen automatically in order to minimize edge lengths.
|
void |
setMinimumHeight(double value)
Sets the minimum height of the row.
|
void |
setOriginalHeight(double value)
Sets the original height of the row.
|
void |
setOriginalPosition(double value)
Sets the original position (smallest y-coordinate) of the row.
|
void |
setTightness(double value)
Sets the tightness factor of this row.
|
void |
setTopInset(double value)
Sets the top inset in which no element will lie in the resulting layout.
|
public int compareTo(Object o)
RowDescriptor
instance with a given other RowDescriptor
instance based on the indices of
the two instances.compareTo
in interface 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 getBottomInset()
The inset value needs to be greater than or equal to 0
.
IllegalArgumentException
- if the given bottom inset is negativesetBottomInset(double)
public double getComputedHeight()
The computed height needs to be greater than or equal to 0
.
IllegalArgumentException
- if the computed height is negativesetComputedHeight(double)
public double getComputedPosition()
setComputedPosition(double)
public int getIndex()
partition grid
.public double getMinimumHeight()
The minimum height is defined to be at least 0
.
IllegalArgumentException
- if the minimum height is negativesetMinimumHeight(double)
public double getOriginalHeight()
The original height needs to be greater than or equal to 0
.
IllegalArgumentException
- if the original height is negativesetOriginalHeight(double)
public double getOriginalPosition()
setOriginalPosition(double)
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
.IllegalArgumentException
- if the tightness value is outside the interval [0,1]
[0,1]
setTightness(double)
public double getTopInset()
The inset value needs to be greater than or equal to 0
.
IllegalArgumentException
- if the given top inset is negativesetTopInset(double)
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
. The index of the row is fixed.true
if the row index is fixed, false
if it may be chosen automaticallysetIndexFixed(boolean)
public void setBottomInset(double value)
The inset value needs to be greater than or equal to 0
.
IllegalArgumentException
- if the given bottom inset is negativevalue
- the bottom insetgetBottomInset()
public void setComputedHeight(double value)
The computed height needs to be greater than or equal to 0
.
IllegalArgumentException
- if the computed height is negativevalue
- the current computed heightgetComputedHeight()
public void setComputedPosition(double value)
value
- the computed position (smallest y-coordinate)getComputedPosition()
public void setIndexFixed(boolean value)
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
. The index of the row is fixed.value
- true
if the row index is fixed, false
if it may be chosen automaticallyisIndexFixed()
public void setMinimumHeight(double value)
The minimum height is defined to be at least 0
.
IllegalArgumentException
- if the minimum height is negativevalue
- the current row heightgetMinimumHeight()
public void setOriginalHeight(double value)
The original height needs to be greater than or equal to 0
.
IllegalArgumentException
- if the original height is negativevalue
- the original heightgetOriginalHeight()
public void setOriginalPosition(double value)
value
- the original position (smallest y-coordinate)getOriginalPosition()
public void setTightness(double value)
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
.IllegalArgumentException
- if the tightness value is outside the interval [0,1]
value
- a tightness value from the interval [0,1]
getTightness()
public void setTopInset(double value)
The inset value needs to be greater than or equal to 0
.
IllegalArgumentException
- if the given top inset is negativevalue
- the top insetgetTopInset()