Serialized Form
-
Package net.thevpc.common.lanterna
-
Class net.thevpc.common.lanterna.GridCell
class GridCell extends Object implements Serializable- serialVersionUID:
- -1000070633030801713L
-
Serialized Fields
-
anchor
int anchor
This field is used when the component is smaller than its display area. It determines where, within the display area, to place the component.There are three kinds of possible values: orientation relative, baseline relative and absolute. Orientation relative values are interpreted relative to the container's component orientation property, baseline relative values are interpreted relative to the baseline and absolute values are not. The absolute values are:
CENTER,NORTH,NORTHEAST,EAST,SOUTHEAST,SOUTH,SOUTHWEST,WEST, andNORTHWEST. The orientation relative values are:PAGE_START,PAGE_END,LINE_START,LINE_END,FIRST_LINE_START,FIRST_LINE_END,LAST_LINE_STARTandLAST_LINE_END. The baseline relative values are:BASELINE,BASELINE_LEADING,BASELINE_TRAILING,ABOVE_BASELINE,ABOVE_BASELINE_LEADING,ABOVE_BASELINE_TRAILING,BELOW_BASELINE,BELOW_BASELINE_LEADING, andBELOW_BASELINE_TRAILING. The default value isCENTER.- See Also:
-
fill
int fill
This field is used when the component's display area is larger than the component's requested size. It determines whether to resize the component, and if so, how.The following values are valid for
fill:-
NONE: Do not resize the component. -
HORIZONTAL: Make the component wide enough to fill its display area horizontally, but do not change its height. -
VERTICAL: Make the component tall enough to fill its display area vertically, but do not change its width. -
BOTH: Make the component fill its display area entirely.
The default value is
NONE.- See Also:
-
-
gridheight
int gridheight
Specifies the number of cells in a column for the component's display area.Use
REMAINDERto specify that the component's display area will be fromgridyto the last cell in the column. UseRELATIVEto specify that the component's display area will be fromgridyto the next to the last one in its column.gridheightshould be a non-negative value and the default value is 1.- See Also:
-
gridwidth
int gridwidth
Specifies the number of cells in a row for the component's display area.Use
REMAINDERto specify that the component's display area will be fromgridxto the last cell in the row. UseRELATIVEto specify that the component's display area will be fromgridxto the next to the last one in its row.gridwidthshould be non-negative and the default value is 1.- See Also:
-
gridx
int gridx
Specifies the cell containing the leading edge of the component's display area, where the first cell in a row hasgridx=0. The leading edge of a component's display area is its left edge for a horizontal, left-to-right container and its right edge for a horizontal, right-to-left container. The valueRELATIVEspecifies that the component be placed immediately following the component that was added to the container just before this component was added.The default value is
RELATIVE.gridxshould be a non-negative value.- See Also:
-
gridy
int gridy
Specifies the cell at the top of the component's display area, where the topmost cell hasgridy=0. The valueRELATIVEspecifies that the component be placed just below the component that was added to the container just before this component was added.The default value is
RELATIVE.gridyshould be a non-negative value.- See Also:
-
insets
Insets insets
This field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.The default value is
new Insets(0, 0, 0, 0).- See Also:
-
ipadx
int ipadx
This field specifies the internal padding of the component, how much space to add to the minimum width of the component. The width of the component is at least its minimum width plusipadxpixels.The default value is
0.- See Also:
-
ipady
int ipady
This field specifies the internal padding, that is, how much space to add to the minimum height of the component. The height of the component is at least its minimum height plusipadypixels.The default value is 0.
- See Also:
-
minHeight
int minHeight
The minimum height of the component. It is used to calculateipadx, where the default will be 0.- See Also:
-
minWidth
int minWidth
The minimum width of the component. It is used to calculateipady, where the default will be 0.- See Also:
-
tempHeight
int tempHeight
Temporary place holder for the Height of the component. -
tempWidth
int tempWidth
Temporary place holder for the Width of the component. -
tempX
int tempX
Temporary place holder for the x coordinate. -
tempY
int tempY
Temporary place holder for the y coordinate. -
weightx
double weightx
Specifies how to distribute extra horizontal space.The grid bag layout manager calculates the weight of a column to be the maximum
weightxof all the components in a column. If the resulting layout is smaller horizontally than the area it needs to fill, the extra space is distributed to each column in proportion to its weight. A column that has a weight of zero receives no extra space.If all the weights are zero, all the extra space appears between the grids of the cell and the left and right edges.
The default value of this field is
0.weightxshould be a non-negative value.- See Also:
-
weighty
double weighty
Specifies how to distribute extra vertical space.The grid bag layout manager calculates the weight of a row to be the maximum
weightyof all the components in a row. If the resulting layout is smaller vertically than the area it needs to fill, the extra space is distributed to each row in proportion to its weight. A row that has a weight of zero receives no extra space.If all the weights are zero, all the extra space appears between the grids of the cell and the top and bottom edges.
The default value of this field is
0.weightyshould be a non-negative value.- See Also:
-
-
Class net.thevpc.common.lanterna.GridLayoutInfo
class GridLayoutInfo extends Object implements Serializable- serialVersionUID:
- -4899416460737170217L
-
Serialized Fields
-
baselineType
short[] baselineType
-
hasBaseline
boolean hasBaseline
-
height
int height
-
maxAscent
int[] maxAscent
-
maxDescent
int[] maxDescent
-
minHeight
int[] minHeight
-
minWidth
int[] minWidth
-
startx
int startx
-
starty
int starty
-
weightX
double[] weightX
-
weightY
double[] weightY
-
width
int width
-
-