com.wordpress.tipsforjava.swing
[Java] Class CheckBoxIcon
java.lang.Object
com.wordpress.tipsforjava.swing.DualIcon
com.wordpress.tipsforjava.swing.ToggleButtonIcon
com.wordpress.tipsforjava.swing.CheckBoxIcon
public class CheckBoxIcon
extends ToggleButtonIcon
- Authors:
- Rob Camick
- Darryl Burke
|
Constructor Summary |
CheckBoxIcon(JCheckBox checkBox, Icon customIcon)
Creates a CheckBoxIcon for a JCheckBox with the
horizontal and vertical positioning derived from the horizontal and
vertical positions of the check box's text relative to its icon.
|
CheckBoxIcon(JCheckBox checkBox, Icon customIcon, int horizontalPosition, int verticalPosition)
Creates a CheckBoxIcon for a JCheckBox with the
specified horizontal and vertical positioning.
|
CheckBoxIcon
public CheckBoxIcon(JCheckBox checkBox, Icon customIcon)
- Creates a
CheckBoxIcon for a JCheckBox with the
horizontal and vertical positioning derived from the horizontal and
vertical positions of the check box's text relative to its icon.
- Parameters:
checkBox - the check boxcustomIcon - the icon
CheckBoxIcon
public CheckBoxIcon(JCheckBox checkBox, Icon customIcon, int horizontalPosition, int verticalPosition)
- Creates a
CheckBoxIcon for a JCheckBox with the
specified horizontal and vertical positioning.
- Parameters:
checkBox - the check boxcustomIcon - the iconhorizontalPosition - the horizontal position of the custom icon
relative to the default icon. One of the following values:
- SwingConstants.RIGHT
- SwingConstants.LEFT
- SwingConstants.CENTER
- SwingConstants.LEADING
- SwingConstants.TRAILING
LEADING and TRAILING will be interpreted in the context of the
check box's ComponentOrientation.
verticalPosition - the vertical position of the custom icon
relative to the default icon
One of the following values:
- SwingConstants.CENTER
- SwingConstants.TOP
- SwingConstants.BOTTOM
Groovy Documentation