All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.beans.mb.LabeledIconStyle
java.lang.Object
|
+----com.ibm.beans.mb.LabeledIconStyle
- public class LabeledIconStyle
- extends Object
This class defines style information used to
customize instances of the LabeledIcon class.
-
DRAW_BORDER
- Indicates that an outline border should be displayed around the icon.
-
FILL_BACKGROUND
- Indicates that a filled background should be displayed around the icon.
-
IMAGEDOWN_TEXTUP
- Indicates that the icon should be displayed below the text label.
-
IMAGELEFT_TEXTRIGHT
- Indicates that the icon should be displayed to the left of the text label.
-
IMAGERIGHT_TEXTLEFT
- Indicates that the icon should be displayed to the right of the text label.
-
IMAGEUP_TEXTDOWN
- Indicates that the icon should be displayed above the text label.
-
LabeledIconStyle()
- Create a new LabeledIconStyle with default settings:
- IMAGEUP_TEXTDOWN alignment
- Default border width (2 pels)
- Outline border selection style
- Selection drawn in default color
-
LabeledIconStyle(int, int, int, Color)
- Create a new LabeledIconStyle with the specified alignment, border width,
selection style, and selection color.
-
getAlignment()
- Gets the icon alignment.
-
getBorderWidth()
- Gets the icon border width.
-
getDefaultBorderWidth()
- Gets the default border width for the LabeledIconStyle class.
-
getDefaultSelectColor()
- Gets the default selection color for the LabeledIconStyle class.
-
getSelectColor()
- Gets the icon selection color.
-
getSelectStyle()
- Gets the icon selection style.
-
setAlignment(int)
- Sets the icon alignment.
-
setSelectColor(Color)
- Sets the icon selection color.
-
setSelectStyle(int)
- Sets the icon selection style.
IMAGEUP_TEXTDOWN
public static final int IMAGEUP_TEXTDOWN
- Indicates that the icon should be displayed above the text label.
IMAGEDOWN_TEXTUP
public static final int IMAGEDOWN_TEXTUP
- Indicates that the icon should be displayed below the text label.
IMAGELEFT_TEXTRIGHT
public static final int IMAGELEFT_TEXTRIGHT
- Indicates that the icon should be displayed to the left of the text label.
IMAGERIGHT_TEXTLEFT
public static final int IMAGERIGHT_TEXTLEFT
- Indicates that the icon should be displayed to the right of the text label.
DRAW_BORDER
public static final int DRAW_BORDER
- Indicates that an outline border should be displayed around the icon.
FILL_BACKGROUND
public static final int FILL_BACKGROUND
- Indicates that a filled background should be displayed around the icon.
LabeledIconStyle
public LabeledIconStyle()
- Create a new LabeledIconStyle with default settings:
- IMAGEUP_TEXTDOWN alignment
- Default border width (2 pels)
- Outline border selection style
- Selection drawn in default color
LabeledIconStyle
public LabeledIconStyle(int alignment,
int borderWidth,
int selectionStyle,
Color selectionColor)
- Create a new LabeledIconStyle with the specified alignment, border width,
selection style, and selection color.
setAlignment
public void setAlignment(int alignment)
- Sets the icon alignment.
- Parameters:
- alignment - A constant describing the desired alignment for a LabeledIcon instance.
getAlignment
public int getAlignment()
- Gets the icon alignment.
- Returns:
- A constant describing the alignment for a LabeledIcon instance.
getBorderWidth
public int getBorderWidth()
- Gets the icon border width.
- Returns:
- An integer indicating the desired border width for the icon.
setSelectStyle
public void setSelectStyle(int selectionStyle)
- Sets the icon selection style. The style is outline border or background fill.
- Parameters:
- selectionStyle - A constant describing the selection style for the icon.
getSelectStyle
public int getSelectStyle()
- Gets the icon selection style.
- Returns:
- A constant describing the selection style for the icon.
setSelectColor
public void setSelectColor(Color selectionColor)
- Sets the icon selection color. The color of the outline border or background.
- Parameters:
- selectionColor - The selection color for the icon.
- See Also:
- Color
getSelectColor
public Color getSelectColor()
- Gets the icon selection color.
- Returns:
- The selection color for the icon.
- See Also:
- Color
getDefaultBorderWidth
public static int getDefaultBorderWidth()
- Gets the default border width for the LabeledIconStyle class.
- Returns:
- The default border width.
getDefaultSelectColor
public static Color getDefaultSelectColor()
- Gets the default selection color for the LabeledIconStyle class.
- Returns:
- The default selection color
- See Also:
- Color
All Packages Class Hierarchy This Package Previous Next Index