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.
-
Background(Glyph, Color)
-
-
Background(Glyph, Color, boolean, boolean)
-
-
allocate(Allocation)
-
-
draw(Painter)
-
-
getColor()
-
-
setColor(Color)
-
Background
public Background(Glyph child,
Color color)
- Parameters:
- child - the child glyph.
- color - the background color.
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.
setColor
public void setColor(Color color)
getColor
public Color getColor()
allocate
public void allocate(Allocation allocation)
- Overrides:
- allocate in class MonoGlyph
draw
public void draw(Painter painter)
- Overrides:
- draw in class MonoGlyph
All Packages Class Hierarchy This Package Previous Next Index