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.
-
Border(Glyph, Color, Color)
-
-
Border(Glyph, Color, Color, float)
-
-
allocate(Allocation)
-
-
draw(Painter)
-
-
requirements()
- Ask for the glyph's geometry requirements.
-
reverseColors()
- Revers the highlight and shadow colors.
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.
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.
reverseColors
public void reverseColors()
- Revers the highlight and shadow colors.
requirements
public Requirements requirements()
- Ask for the glyph's geometry requirements.
- Overrides:
- requirements in class MonoGlyph
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