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

Constructor Index

 o VColoredWrapper(Visualizable)
Constructs a colored wrapper with the wrapped visual object.
 o VColoredWrapper(Visualizable, Color)
Constructs a colored wrapper with the wrapped visual object and foreground color.
 o VColoredWrapper(Visualizable, Color, Color)
Constructs a colored wrapper with the wrapped visual object, foreground color and background color.

Method Index

 o clone()
Returns a clone of this visual object.
 o getBackground()
Returns the background color.
 o getForeground()
Returns the foreground color.
 o paint(Graphics, Point)
Paints the visual object at the specified location, with the color attributes.
 o setBackground(Color)
Sets the background color to be the specified color.
 o setForeground(Color)
Sets the foreground color to be the specified color.

Constructors

 o VColoredWrapper
 public VColoredWrapper(Visualizable visualizable)
Constructs a colored wrapper with the wrapped visual object.

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

Methods

 o getForeground
 public Color getForeground()
Returns the foreground color.

Returns:
the foreground color.
 o setForeground
 public void setForeground(Color color)
Sets the foreground color to be the specified color.

Parameters:
color - the specified color.
 o getBackground
 public Color getBackground()
Returns the background color.

Returns:
the background color.
 o setBackground
 public void setBackground(Color color)
Sets the background color to be the specified color.

Parameters:
color - the specified color.
 o 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
 o 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