All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.graphics.VColoredWrapper
java.lang.Object
|
+----jp.kyasu.graphics.VWrapper
|
+----jp.kyasu.graphics.VColoredWrapper
- public class VColoredWrapper
- extends VWrapper
The VColoredWrapper
class provides the color attributes
(foreground color and background color) for a visual object.
- Version:
- 01 Aug 1997
- Author:
- Kazuki YASUMATSU
-
VColoredWrapper(Visualizable)
- Constructs a colored wrapper with the wrapped visual object.
-
VColoredWrapper(Visualizable, Color)
- Constructs a colored wrapper with the wrapped visual object and
foreground color.
-
VColoredWrapper(Visualizable, Color, Color)
- Constructs a colored wrapper with the wrapped visual object,
foreground color and background color.
-
clone()
- Returns a clone of this visual object.
-
getBackground()
- Returns the background color.
-
getForeground()
- Returns the foreground color.
-
paint(Graphics, Point)
- Paints the visual object at the specified location, with the color
attributes.
-
setBackground(Color)
- Sets the background color to be the specified color.
-
setForeground(Color)
- Sets the foreground color to be the specified color.
VColoredWrapper
public VColoredWrapper(Visualizable visualizable)
- Constructs a colored wrapper with the wrapped visual object.
- Parameters:
- visualizable - the wrapped visual object.
VColoredWrapper
public VColoredWrapper(Visualizable visualizable,
Color foreground)
- Constructs a colored wrapper with the wrapped visual object and
foreground color.
- Parameters:
- visualizable - the wrapped visual object.
- foreground - the foreground color.
VColoredWrapper
public VColoredWrapper(Visualizable visualizable,
Color foreground,
Color background)
- Constructs a colored wrapper with the wrapped visual object,
foreground color and background color.
- Parameters:
- visualizable - the wrapped visual object.
- foreground - the foreground color.
- background - the background color.
getForeground
public Color getForeground()
- Returns the foreground color.
- Returns:
- the foreground color.
setForeground
public void setForeground(Color color)
- Sets the foreground color to be the specified color.
- Parameters:
- color - the specified color.
getBackground
public Color getBackground()
- Returns the background color.
- Returns:
- the background color.
setBackground
public void setBackground(Color color)
- Sets the background color to be the specified color.
- Parameters:
- color - the specified color.
paint
public void paint(Graphics g,
Point p)
- Paints the visual object at the specified location, with the color
attributes.
- Overrides:
- paint in class VWrapper
- See Also:
- paint
clone
public Object clone()
- Returns a clone of this visual object.
- Overrides:
- clone in class VWrapper
All Packages Class Hierarchy This Package Previous Next Index