All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.graphics.VCheckbox
java.lang.Object
|
+----jp.kyasu.graphics.VWrapper
|
+----jp.kyasu.graphics.VLabel
|
+----jp.kyasu.graphics.VAbstractButton
|
+----jp.kyasu.graphics.VCheckbox
- public class VCheckbox
- extends VAbstractButton
The VCheckbox
class implements the visual checkbox that
acts as a checkbox model. The checkbox creates different visual
presentations according to the style and the state.
- Version:
- 12 Jun 1998
- Author:
- Kazuki YASUMATSU
- See Also:
- Checkbox
-
EXCLUSIVE
- The checkbox style constat for the exclusive style.
-
INCLUSIVE
- The checkbox style constat for the inclusive style.
-
VCheckbox()
- Constructs a exclusive checkbox with the
false
state.
-
VCheckbox(boolean)
- Constructs a exclusive checkbox with the specified state.
-
VCheckbox(boolean, int)
- Constructs a checkbox with the specified state and the specified style.
-
VCheckbox(int)
- Constructs a checkbox with the
false
state,
and the specified style.
-
VCheckbox(String)
- Constructs a exclusive checkbox with the
false
state,
and the specified string.
-
VCheckbox(String, boolean)
- Constructs a exclusive checkbox with the specified string and the
specified state.
-
VCheckbox(String, boolean, int)
- Constructs a checkbox with the specified string, the specified state,
and the specified style.
-
VCheckbox(String, int)
- Constructs a checkbox with the
false
state,
the specified string, and the specified style.
-
VCheckbox(Text)
- Constructs a exclusive checkbox with the
false
state,
and the specified text.
-
VCheckbox(Text, boolean)
- Constructs a exclusive checkbox with the specified text and the
specified state.
-
VCheckbox(Text, boolean, int)
- Constructs a checkbox with the specified text, the specified state,
and the specified style.
-
VCheckbox(Text, int)
- Constructs a checkbox with the
false
state,
the specified text, and the specified style.
-
VCheckbox(Visualizable)
- Constructs a exclusive checkbox with the
false
state,
and the specified visual object.
-
VCheckbox(Visualizable, boolean)
- Constructs a exclusive checkbox with the specified visual object
and the specified state.
-
VCheckbox(Visualizable, boolean, int)
- Constructs a checkbox with the specified visual object,
the specified state, and the specified style.
-
VCheckbox(Visualizable, int)
- Constructs a checkbox with the
false
state,
the specified visual object, and the specified style.
-
clone()
- Returns a clone of this checkbox.
-
deriveLabel(Visualizable)
- Creates a new checkbox by replicating this checkbox with a new visual
object associated with it.
-
getSize()
- Returns the size of this checkbox.
-
getStyle()
- Returns the style of the checkbox.
-
paint(Graphics, Point, Component)
- Paints the checkbox at the specified location with the component.
-
setSize(Dimension)
- Resizes the checkbox to the specified dimension.
-
setStyle(int)
- Sets the style of the checkbox to the specified style.
EXCLUSIVE
public static final int EXCLUSIVE
- The checkbox style constat for the exclusive style.
INCLUSIVE
public static final int INCLUSIVE
- The checkbox style constat for the inclusive style.
VCheckbox
public VCheckbox()
- Constructs a exclusive checkbox with the
false
state.
VCheckbox
public VCheckbox(boolean state)
- Constructs a exclusive checkbox with the specified state.
- Parameters:
- state - the state of the checkbox.
VCheckbox
public VCheckbox(int style)
- Constructs a checkbox with the
false
state,
and the specified style.
- Parameters:
- style - the style of teh checkbox.
VCheckbox
public VCheckbox(boolean state,
int style)
- Constructs a checkbox with the specified state and the specified style.
- Parameters:
- state - the state of teh checkbox.
- style - the style of teh checkbox.
VCheckbox
public VCheckbox(String str)
- Constructs a exclusive checkbox with the
false
state,
and the specified string.
- Parameters:
- str - the string.
VCheckbox
public VCheckbox(String str,
boolean state)
- Constructs a exclusive checkbox with the specified string and the
specified state.
- Parameters:
- str - the string.
- state - the state of the checkbox.
VCheckbox
public VCheckbox(String str,
int style)
- Constructs a checkbox with the
false
state,
the specified string, and the specified style.
- Parameters:
- str - the string.
- style - the style of the checkbox.
VCheckbox
public VCheckbox(String str,
boolean state,
int style)
- Constructs a checkbox with the specified string, the specified state,
and the specified style.
- Parameters:
- str - the string.
- state - the state of teh checkbox.
- style - the style of teh checkbox.
VCheckbox
public VCheckbox(Text text)
- Constructs a exclusive checkbox with the
false
state,
and the specified text.
- Parameters:
- text - the text.
VCheckbox
public VCheckbox(Text text,
boolean state)
- Constructs a exclusive checkbox with the specified text and the
specified state.
- Parameters:
- text - the text.
- state - the state of the checkbox.
VCheckbox
public VCheckbox(Text text,
int style)
- Constructs a checkbox with the
false
state,
the specified text, and the specified style.
- Parameters:
- text - the text.
- style - the style of the checkbox.
VCheckbox
public VCheckbox(Text text,
boolean state,
int style)
- Constructs a checkbox with the specified text, the specified state,
and the specified style.
- Parameters:
- text - the text.
- state - the state of teh checkbox.
- style - the style of teh checkbox.
VCheckbox
public VCheckbox(Visualizable visualizable)
- Constructs a exclusive checkbox with the
false
state,
and the specified visual object.
- Parameters:
- visualizable - the visual object.
VCheckbox
public VCheckbox(Visualizable visualizable,
boolean state)
- Constructs a exclusive checkbox with the specified visual object
and the specified state.
- Parameters:
- visualizable - the visual object.
- state - the state of the checkbox.
VCheckbox
public VCheckbox(Visualizable visualizable,
int style)
- Constructs a checkbox with the
false
state,
the specified visual object, and the specified style.
- Parameters:
- visualizable - the visual object.
- style - the style of the checkbox.
VCheckbox
public VCheckbox(Visualizable visualizable,
boolean state,
int style)
- Constructs a checkbox with the specified visual object,
the specified state, and the specified style.
- Parameters:
- visualizable - the visual object.
- state - the state of teh checkbox.
- style - the style of teh checkbox.
deriveLabel
public VLabel deriveLabel(Visualizable visualizable)
- Creates a new checkbox by replicating this checkbox with a new visual
object associated with it.
- Parameters:
- visualizable - the visual object for the new checkbox.
- Returns:
- a new checkbox.
- Overrides:
- deriveLabel in class VLabel
getStyle
public int getStyle()
- Returns the style of the checkbox.
- Returns:
- the style of the checkbox.
- See Also:
- EXCLUSIVE, INCLUSIVE
setStyle
public void setStyle(int style)
- Sets the style of the checkbox to the specified style.
- Parameters:
- style - the style of the checkbox.
- See Also:
- EXCLUSIVE, INCLUSIVE
getSize
public Dimension getSize()
- Returns the size of this checkbox.
- Overrides:
- getSize in class VLabel
- See Also:
- getSize
setSize
public void setSize(Dimension d)
- Resizes the checkbox to the specified dimension.
- Overrides:
- setSize in class VLabel
- See Also:
- setSize
paint
public void paint(Graphics g,
Point p,
Component comp)
- Paints the checkbox at the specified location with the component.
- Parameters:
- g - the graphics.
- p - the location.
- comp - the component used to make the disabled presentation.
- Overrides:
- paint in class VLabel
clone
public Object clone()
- Returns a clone of this checkbox.
- Overrides:
- clone in class VAbstractButton
All Packages Class Hierarchy This Package Previous Next Index