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

Class sgraphics.wrapper.Border

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

public class Border
extends MonoGlyph
Border draws a three dimensional border around a child.

Constructor Index

 o Border(Glyph, Color, Color)
 o Border(Glyph, Color, Color, float)

Method Index

 o allocate(Allocation)
 o draw(Painter)
 o requirements()
Ask for the glyph's geometry requirements.
 o reverseColors()
Revers the highlight and shadow colors.

Constructors

 o Border
  public Border(Glyph child,
                Color highlight,
                Color shadow)
Parameters:
child - the child glyph.
highlight - the color of the top and the left side of the child.
shadow - the color of the bottom and the right side of the child.
 o Border
  public Border(Glyph child,
                Color highlight,
                Color shadow,
                float size)
Parameters:
child - the child glyph.
highlight - the color of the top and the left side of the child.
shadow - the color of the bottom and the right side of the child.
size - teh size of the border.

Methods

 o reverseColors
  public void reverseColors()
Revers the highlight and shadow colors.
 o requirements
  public Requirements requirements()
Ask for the glyph's geometry requirements.
Overrides:
requirements in class MonoGlyph
 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