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

Class sgraphics.wrapper.LabeledOutline

java.lang.Object
   |
   +----sgraphics.GlyphImpl
           |
           +----sgraphics.MonoGlyph
                   |
                   +----sgraphics.wrapper.Outline
                           |
                           +----sgraphics.wrapper.LabeledOutline

public class LabeledOutline
extends Outline
Border draws a three dimensional border, with a label, around a body glyph.

Constructor Index

 o LabeledOutline(Glyph, Glyph, Color, Color)
Construct the outline.

Method Index

 o allocate(Allocation)
 o body()
 o label()
 o requirements()
Ask for the glyph's geometry requirements.
 o setBody(Glyph)
 o setLabel(Glyph)

Constructors

 o LabeledOutline
  public LabeledOutline(Glyph body,
                        Glyph label,
                        Color highlight,
                        Color shadow)
Construct the outline.
Parameters:
body - the body glyph.
label - the label glyph. This can be any glyph.
highlight - the color of the top and the left side of the body.
shadow - the color of the bottom and the right side of the body.

Methods

 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 Outline
 o setBody
  public void setBody(Glyph body)
Overrides:
setBody in class GlyphImpl
 o body
  public Glyph body()
Overrides:
body in class GlyphImpl
 o setLabel
  public void setLabel(Glyph label)
 o label
  public Glyph label()

All Packages  Class Hierarchy  This Package  Previous  Next  Index