All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.graphics.VButton
java.lang.Object
|
+----jp.kyasu.graphics.VWrapper
|
+----jp.kyasu.graphics.VLabel
|
+----jp.kyasu.graphics.VAbstractButton
|
+----jp.kyasu.graphics.VButton
- public class VButton
- extends VAbstractButton
The VButton
class implements the visual button that
acts as a button model. The button creates different visual presentations
according to the style and the state.
- Version:
- 12 Jun 1998
- Author:
- Kazuki YASUMATSU
- See Also:
- AbstractButton, Button, ToggleButton
-
TOGGLE
- The button style constat for the toggle style.
-
TRIGGER
- The button style constat for the trigger style.
-
VButton()
- Constructs a trigger button with the
false
state.
-
VButton(boolean)
- Constructs a trigger button with the specified state.
-
VButton(boolean, int)
- Constructs a button with the specified state and the specified style.
-
VButton(int)
- Constructs a button with the
false
state,
and the specified style.
-
VButton(String)
- Constructs a trigger button with the
false
state,
and the specified string.
-
VButton(String, boolean)
- Constructs a trigger button with the specified string and the
specified state.
-
VButton(String, boolean, int)
- Constructs a button with the specified string, the specified state,
and the specified style.
-
VButton(String, int)
- Constructs a button with the
false
state,
the specified string, and the specified style.
-
VButton(Text)
- Constructs a trigger button with the
false
state,
and the specified text.
-
VButton(Text, boolean)
- Constructs a trigger button with the specified text and the
specified state.
-
VButton(Text, boolean, int)
- Constructs a button with the specified text, the specified state,
and the specified style.
-
VButton(Text, int)
- Constructs a button with the
false
state,
the specified text, and the specified style.
-
VButton(Visualizable)
- Constructs a trigger button with the
false
state,
and the specified visual object.
-
VButton(Visualizable, boolean)
- Constructs a trigger button with the specified visual object
and the specified state.
-
VButton(Visualizable, boolean, int)
- Constructs a button with the specified visual object,
the specified state, and the specified style.
-
VButton(Visualizable, int)
- Constructs a button with the
false
state,
the specified visual object, and the specified style.
-
clone()
- Returns a clone of this button.
-
deriveLabel(Visualizable)
- Creates a new button by replicating this button with a new visual
object associated with it.
-
getInsets()
- Returns the insets of this button.
-
getSize()
- Returns the size of this button.
-
getStyle()
- Returns the style of the button.
-
paint(Graphics, Point, Component)
- Paints the button at the specified location with the component.
-
setInsets(Insets)
- Sets the insets of this button to be the specified insets.
-
setSize(Dimension)
- Resizes the button to the specified dimension.
-
setState(boolean)
- Sets the button to the specifed boolean state.
-
setStyle(int)
- Sets the style of the button to the specified style.
TRIGGER
public static final int TRIGGER
- The button style constat for the trigger style.
TOGGLE
public static final int TOGGLE
- The button style constat for the toggle style.
VButton
public VButton()
- Constructs a trigger button with the
false
state.
VButton
public VButton(boolean state)
- Constructs a trigger button with the specified state.
- Parameters:
- state - the state of the button.
VButton
public VButton(int style)
- Constructs a button with the
false
state,
and the specified style.
- Parameters:
- style - the style of teh button.
VButton
public VButton(boolean state,
int style)
- Constructs a button with the specified state and the specified style.
- Parameters:
- state - the state of teh button.
- style - the style of teh button.
VButton
public VButton(String str)
- Constructs a trigger button with the
false
state,
and the specified string.
- Parameters:
- str - the string.
VButton
public VButton(String str,
boolean state)
- Constructs a trigger button with the specified string and the
specified state.
- Parameters:
- str - the string.
- state - the state of the button.
VButton
public VButton(String str,
int style)
- Constructs a button with the
false
state,
the specified string, and the specified style.
- Parameters:
- str - the string.
- style - the style of the button.
VButton
public VButton(String str,
boolean state,
int style)
- Constructs a button with the specified string, the specified state,
and the specified style.
- Parameters:
- str - the string.
- state - the state of teh button.
- style - the style of teh button.
VButton
public VButton(Text text)
- Constructs a trigger button with the
false
state,
and the specified text.
- Parameters:
- text - the text.
VButton
public VButton(Text text,
boolean state)
- Constructs a trigger button with the specified text and the
specified state.
- Parameters:
- text - the text.
- state - the state of the button.
VButton
public VButton(Text text,
int style)
- Constructs a button with the
false
state,
the specified text, and the specified style.
- Parameters:
- text - the text.
- style - the style of the button.
VButton
public VButton(Text text,
boolean state,
int style)
- Constructs a button with the specified text, the specified state,
and the specified style.
- Parameters:
- text - the text.
- state - the state of teh button.
- style - the style of teh button.
VButton
public VButton(Visualizable visualizable)
- Constructs a trigger button with the
false
state,
and the specified visual object.
- Parameters:
- visualizable - the visual object.
VButton
public VButton(Visualizable visualizable,
boolean state)
- Constructs a trigger button with the specified visual object
and the specified state.
- Parameters:
- visualizable - the visual object.
- state - the state of the button.
VButton
public VButton(Visualizable visualizable,
int style)
- Constructs a button with the
false
state,
the specified visual object, and the specified style.
- Parameters:
- visualizable - the visual object.
- style - the style of the button.
VButton
public VButton(Visualizable visualizable,
boolean state,
int style)
- Constructs a button with the specified visual object,
the specified state, and the specified style.
- Parameters:
- visualizable - the visual object.
- state - the state of teh button.
- style - the style of teh button.
deriveLabel
public VLabel deriveLabel(Visualizable visualizable)
- Creates a new button by replicating this button with a new visual
object associated with it.
- Parameters:
- visualizable - the visual object for the new button.
- Returns:
- a new button.
- Overrides:
- deriveLabel in class VLabel
getStyle
public int getStyle()
- Returns the style of the button.
- Returns:
- the style of the button.
- See Also:
- TRIGGER, TOGGLE
setStyle
public void setStyle(int style)
- Sets the style of the button to the specified style.
- Parameters:
- style - the style of the button.
- See Also:
- TRIGGER, TOGGLE
setState
public void setState(boolean b)
- Sets the button to the specifed boolean state.
- Overrides:
- setState in class VAbstractButton
- See Also:
- setState
getInsets
public Insets getInsets()
- Returns the insets of this button.
- Returns:
- the insets of this button.
setInsets
public void setInsets(Insets insets)
- Sets the insets of this button to be the specified insets.
- Parameters:
- insets - the insets.
getSize
public Dimension getSize()
- Returns the size of this button.
- Overrides:
- getSize in class VLabel
- See Also:
- getSize
setSize
public void setSize(Dimension d)
- Resizes the button to the specified dimension.
- Overrides:
- setSize in class VLabel
- See Also:
- setSize
paint
public void paint(Graphics g,
Point p,
Component comp)
- Paints the button 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 button.
- Overrides:
- clone in class VAbstractButton
All Packages Class Hierarchy This Package Previous Next Index