|
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.ColumnDescriptor
public class ColumnDescriptor
This class represents a column of a partition grid
structure.
The results of the calculation of the geometry of the column will be placed into the instances of this class after the layout.
PartitionGrid
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this ColumnDescriptor instance with a given other ColumnDescriptor instance based on the
indices of the two instances. |
double |
getComputedPosition()
Returns the computed position (smallest x-coordinate) of the column after the layout has been calculated. |
double |
getComputedWidth()
Returns the computed width of the column after the layout has been calculated. |
int |
getIndex()
Returns the index of the column within the partition grid . |
double |
getLeftInset()
Returns the left column inset in which no element will lie in the resulting layout. |
double |
getMinimumWidth()
Returns the minimum width of the column. |
double |
getOriginalPosition()
Returns the original position (smallest x-coordinate) of the column. |
double |
getOriginalWidth()
Returns the original width of the column. |
double |
getRightInset()
Returns the right column inset in which no element will lie in the resulting layout. |
double |
getTightness()
Returns the tightness factor of this column. |
boolean |
isIndexFixed()
Returns whether the index of the column is fixed or it should be chosen automatically in order to minimize edge lengths. |
void |
setComputedPosition(double computedPosition)
Specifies the computed position (smallest x-coordinate) of the column after the layout has been calculated. |
void |
setComputedWidth(double computedWidth)
Specifies the computed width of the column after the layout has been calculated. |
void |
setIndexFixed(boolean indexFixed)
Specifies whether the index of the column is fixed or it should be chosen automatically in order to minimize edge lengths. |
void |
setLeftInset(double leftInset)
Specifies the left column inset in which no element will lie in the resulting layout. |
void |
setMinimumWidth(double minimumWidth)
Specifies the minimum width of the column. |
void |
setOriginalPosition(double originalPosition)
Specifies the original position (smallest x-coordinate) of the column. |
void |
setOriginalWidth(double originalWidth)
Specifies the original width of the column. |
void |
setRightInset(double rightInset)
Specifies the right column inset in which no element will lie in the resulting layout. |
void |
setTightness(double tightness)
Specifies the tightness factor of this column. |
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)
ColumnDescriptor
instance with a given other ColumnDescriptor
instance based on the
indices of the two instances.
compareTo
in interface java.lang.Comparable
o
- the ColumnDescriptor
to compare to
-1
, 0
or 1
if this ColumnDescriptor
is less than, equal to,
or greater than the given other ColumnDescriptor
public double getMinimumWidth()
The minimum width is defined to be at least 0
.
setMinimumWidth(double)
public void setMinimumWidth(double minimumWidth)
The minimum width is defined to be at least 0
.
public double getLeftInset()
The column inset must be greater than or equal to 0
.
setLeftInset(double)
public void setLeftInset(double leftInset)
The column inset must be greater than or equal to 0
.
public double getRightInset()
The column inset must be greater than or equal to 0
.
setRightInset(double)
public void setRightInset(double rightInset)
The column inset must be greater than or equal to 0
.
public double getComputedWidth()
The computed width needs to be greater than or equal to 0
.
setComputedWidth(double)
public void setComputedWidth(double computedWidth)
The computed width needs to be greater than or equal to 0
.
computedWidth
- the computed width
java.lang.IllegalArgumentException
- if the computed width is negativepublic double getOriginalWidth()
The original width must be greater than or equal to 0
.
setOriginalWidth(double)
public void setOriginalWidth(double originalWidth)
The original width should be greater than or equal to 0
.
originalWidth
- the original width
java.lang.IllegalArgumentException
- if the original width is negativepublic double getOriginalPosition()
setOriginalPosition(double)
public void setOriginalPosition(double originalPosition)
originalPosition
- the original position (smallest x-coordinate)public double getComputedPosition()
setComputedPosition(double)
public void setComputedPosition(double computedPosition)
computedPosition
- the computed position (smallest x-coordinate)public double getTightness()
This value must lie within the interval [0,1]
.
The larger the value, the more the column will be forced to obtain its minimum width:
0.0d
will disable the compression of the column.1.0d
will try to force the column to obtain its specified
minimum width
.
[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 column will be forced to obtain its minimum width:
0.0d
will disable the compression of the column.1.0d
will try to force the column to obtain its specified
minimum width
.
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 columns where this property is enabled, the relative ordering given by the indices is preserved. The remaining columns may be sorted again so that the overall edge lengths are minimized.
true
if the column index should be fixed, false
if it may be chosen automaticallysetIndexFixed(boolean)
public void setIndexFixed(boolean indexFixed)
For all columns where this property is enabled, the relative ordering given by the indices is preserved. The remaining columns may be sorted again so that the overall edge lengths are minimized.
indexFixed
- true
if the column 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 |