public class ListContainer.Layout
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean[] |
boldItems
The items that will have a bold font.
|
boolean |
centerVertically
Set to true to center the labels vertically if there are empty lines ("") before or after the items array.
|
int |
controlGap
The gap between the left/right controls and the text.
|
int[] |
defaultItemColors
The default colors of all items.
|
Image |
defaultLeftImage
If the left and/or right control is a fixed Image, set it here and it will be replicated on all lines.
|
Image |
defaultLeftImage2
If the left and/or right control is a fixed Image, set it here and it will be replicated on all lines.
|
protected int |
defaultLeftImageH |
protected int |
defaultLeftImageW |
Image |
defaultRightImage
If the left and/or right control is a fixed Image, set it here and it will be replicated on all lines.
|
Image |
defaultRightImage2
If the left and/or right control is a fixed Image, set it here and it will be replicated on all lines.
|
protected int |
defaultRightImageH |
protected int |
defaultRightImageW |
java.lang.String[] |
fontNames
The font names to be used when creating the fonts.
|
protected Font[] |
fonts |
int |
imageGap
The gap between the image and the item's top/bottom.
|
Insets |
insets
The gap between the Item and the borders can be set using this field.
|
protected int |
itemCount |
protected int |
itemH |
protected int |
itemsPerLine |
protected int[] |
itemY |
protected ListContainerEvent |
lce |
boolean |
leftImageEnlargeIfSmaller
Specify what to do if the left or right controls are images.
|
int |
lineGap
The line spacing between two consecutive lines.
|
int[] |
positions
The x position of the label, relative to the column's width.
|
int[] |
relativeFontSizes
The default relative font sizes.
|
boolean |
rightImageEnlargeIfSmaller
Specify what to do if the left or right controls are images.
|
Constructor and Description |
---|
Layout(int itemCount,
int itemsPerLine)
Constructs a Layout component with the given columns and item count.
|
Modifier and Type | Method and Description |
---|---|
void |
setup()
After you set the properties, you must call this method to setup the internal coordinates.
|
public boolean leftImageEnlargeIfSmaller
public boolean rightImageEnlargeIfSmaller
public Image defaultLeftImage
public Image defaultRightImage
protected int defaultLeftImageW
protected int defaultLeftImageH
protected int defaultRightImageW
protected int defaultRightImageH
public Image defaultLeftImage2
public Image defaultRightImage2
public int[] defaultItemColors
public boolean[] boldItems
public int[] relativeFontSizes
public int[] positions
public java.lang.String[] fontNames
public int controlGap
public int imageGap
public Insets insets
public int lineGap
controlGap
public boolean centerVertically
protected int itemCount
protected int itemsPerLine
protected int[] itemY
protected Font[] fonts
protected int itemH
protected ListContainerEvent lce