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

Variable Index

 o EXCLUSIVE
The checkbox style constat for the exclusive style.
 o INCLUSIVE
The checkbox style constat for the inclusive style.

Constructor Index

 o VCheckbox()
Constructs a exclusive checkbox with the false state.
 o VCheckbox(boolean)
Constructs a exclusive checkbox with the specified state.
 o VCheckbox(boolean, int)
Constructs a checkbox with the specified state and the specified style.
 o VCheckbox(int)
Constructs a checkbox with the false state, and the specified style.
 o VCheckbox(String)
Constructs a exclusive checkbox with the false state, and the specified string.
 o VCheckbox(String, boolean)
Constructs a exclusive checkbox with the specified string and the specified state.
 o VCheckbox(String, boolean, int)
Constructs a checkbox with the specified string, the specified state, and the specified style.
 o VCheckbox(String, int)
Constructs a checkbox with the false state, the specified string, and the specified style.
 o VCheckbox(Text)
Constructs a exclusive checkbox with the false state, and the specified text.
 o VCheckbox(Text, boolean)
Constructs a exclusive checkbox with the specified text and the specified state.
 o VCheckbox(Text, boolean, int)
Constructs a checkbox with the specified text, the specified state, and the specified style.
 o VCheckbox(Text, int)
Constructs a checkbox with the false state, the specified text, and the specified style.
 o VCheckbox(Visualizable)
Constructs a exclusive checkbox with the false state, and the specified visual object.
 o VCheckbox(Visualizable, boolean)
Constructs a exclusive checkbox with the specified visual object and the specified state.
 o VCheckbox(Visualizable, boolean, int)
Constructs a checkbox with the specified visual object, the specified state, and the specified style.
 o VCheckbox(Visualizable, int)
Constructs a checkbox with the false state, the specified visual object, and the specified style.

Method Index

 o clone()
Returns a clone of this checkbox.
 o deriveLabel(Visualizable)
Creates a new checkbox by replicating this checkbox with a new visual object associated with it.
 o getSize()
Returns the size of this checkbox.
 o getStyle()
Returns the style of the checkbox.
 o paint(Graphics, Point, Component)
Paints the checkbox at the specified location with the component.
 o setSize(Dimension)
Resizes the checkbox to the specified dimension.
 o setStyle(int)
Sets the style of the checkbox to the specified style.

Variables

 o EXCLUSIVE
 public static final int EXCLUSIVE
The checkbox style constat for the exclusive style.

 o INCLUSIVE
 public static final int INCLUSIVE
The checkbox style constat for the inclusive style.

Constructors

 o VCheckbox
 public VCheckbox()
Constructs a exclusive checkbox with the false state.

 o VCheckbox
 public VCheckbox(boolean state)
Constructs a exclusive checkbox with the specified state.

Parameters:
state - the state of the checkbox.
 o VCheckbox
 public VCheckbox(int style)
Constructs a checkbox with the false state, and the specified style.

Parameters:
style - the style of teh checkbox.
 o 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.
 o VCheckbox
 public VCheckbox(String str)
Constructs a exclusive checkbox with the false state, and the specified string.

Parameters:
str - the string.
 o 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.
 o 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.
 o 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.
 o VCheckbox
 public VCheckbox(Text text)
Constructs a exclusive checkbox with the false state, and the specified text.

Parameters:
text - the text.
 o 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.
 o 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.
 o 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.
 o VCheckbox
 public VCheckbox(Visualizable visualizable)
Constructs a exclusive checkbox with the false state, and the specified visual object.

Parameters:
visualizable - the visual object.
 o 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.
 o 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.
 o 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.

Methods

 o 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
 o getStyle
 public int getStyle()
Returns the style of the checkbox.

Returns:
the style of the checkbox.
See Also:
EXCLUSIVE, INCLUSIVE
 o 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
 o getSize
 public Dimension getSize()
Returns the size of this checkbox.

Overrides:
getSize in class VLabel
See Also:
getSize
 o setSize
 public void setSize(Dimension d)
Resizes the checkbox to the specified dimension.

Overrides:
setSize in class VLabel
See Also:
setSize
 o 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
 o clone
 public Object clone()
Returns a clone of this checkbox.

Overrides:
clone in class VAbstractButton

All Packages  Class Hierarchy  This Package  Previous  Next  Index