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.


Variable Index

 o DRAW_BORDER
Indicates that an outline border should be displayed around the icon.
 o FILL_BACKGROUND
Indicates that a filled background should be displayed around the icon.
 o IMAGEDOWN_TEXTUP
Indicates that the icon should be displayed below the text label.
 o IMAGELEFT_TEXTRIGHT
Indicates that the icon should be displayed to the left of the text label.
 o IMAGERIGHT_TEXTLEFT
Indicates that the icon should be displayed to the right of the text label.
 o IMAGEUP_TEXTDOWN
Indicates that the icon should be displayed above the text label.

Constructor Index

 o LabeledIconStyle()
Create a new LabeledIconStyle with default settings:
 o LabeledIconStyle(int, int, int, Color)
Create a new LabeledIconStyle with the specified alignment, border width, selection style, and selection color.

Method Index

 o getAlignment()
Gets the icon alignment.
 o getBorderWidth()
Gets the icon border width.
 o getDefaultBorderWidth()
Gets the default border width for the LabeledIconStyle class.
 o getDefaultSelectColor()
Gets the default selection color for the LabeledIconStyle class.
 o getSelectColor()
Gets the icon selection color.
 o getSelectStyle()
Gets the icon selection style.
 o setAlignment(int)
Sets the icon alignment.
 o setSelectColor(Color)
Sets the icon selection color.
 o setSelectStyle(int)
Sets the icon selection style.

Variables

 o IMAGEUP_TEXTDOWN
 public static final int IMAGEUP_TEXTDOWN
Indicates that the icon should be displayed above the text label.

 o IMAGEDOWN_TEXTUP
 public static final int IMAGEDOWN_TEXTUP
Indicates that the icon should be displayed below the text label.

 o IMAGELEFT_TEXTRIGHT
 public static final int IMAGELEFT_TEXTRIGHT
Indicates that the icon should be displayed to the left of the text label.

 o IMAGERIGHT_TEXTLEFT
 public static final int IMAGERIGHT_TEXTLEFT
Indicates that the icon should be displayed to the right of the text label.

 o DRAW_BORDER
 public static final int DRAW_BORDER
Indicates that an outline border should be displayed around the icon.

 o FILL_BACKGROUND
 public static final int FILL_BACKGROUND
Indicates that a filled background should be displayed around the icon.

Constructors

 o LabeledIconStyle
 public LabeledIconStyle()
Create a new LabeledIconStyle with default settings:

 o 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.

Methods

 o setAlignment
 public void setAlignment(int alignment)
Sets the icon alignment.

Parameters:
alignment - A constant describing the desired alignment for a LabeledIcon instance.
 o getAlignment
 public int getAlignment()
Gets the icon alignment.

Returns:
A constant describing the alignment for a LabeledIcon instance.
 o getBorderWidth
 public int getBorderWidth()
Gets the icon border width.

Returns:
An integer indicating the desired border width for the icon.
 o 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.
 o getSelectStyle
 public int getSelectStyle()
Gets the icon selection style.

Returns:
A constant describing the selection style for the icon.
 o 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
 o getSelectColor
 public Color getSelectColor()
Gets the icon selection color.

Returns:
The selection color for the icon.
See Also:
Color
 o getDefaultBorderWidth
 public static int getDefaultBorderWidth()
Gets the default border width for the LabeledIconStyle class.

Returns:
The default border width.
 o 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