Class sgraphics.wrapper.Background
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sgraphics.wrapper.Background

java.lang.Object
   |
   +----sgraphics.GlyphImpl
           |
           +----sgraphics.MonoGlyph
                   |
                   +----sgraphics.wrapper.Background

public class Background
extends MonoGlyph
Background draws background color before calling draw() on its child.

Constructor Index

 o Background(Glyph, Color)
 o Background(Glyph, Color, boolean, boolean)

Method Index

 o allocate(Allocation)
 o draw(Painter)
 o getColor()
 o setColor(Color)

Constructors

 o Background
  public Background(Glyph child,
                    Color color)
Parameters:
child - the child glyph.
color - the background color.
 o Background
  public Background(Glyph g,
                    Color color,
                    boolean threeD,
                    boolean raised)
Parameters:
child - the child glyph.
color - the background color.
threeD - make the background three dimensional if true.
raised - the background sticks out if true, or sticks in if false.

Methods

 o setColor
  public void setColor(Color color)
 o getColor
  public Color getColor()
 o allocate
  public void allocate(Allocation allocation)
Overrides:
allocate in class MonoGlyph
 o draw
  public void draw(Painter painter)
Overrides:
draw in class MonoGlyph

All Packages  Class Hierarchy  This Package  Previous  Next  Index