Class sgraphics.widget.TextAreaGlyph
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sgraphics.widget.TextAreaGlyph

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.TextComponent
                   |
                   +----java.awt.TextArea
                           |
                           +----sgraphics.widget.TextAreaGlyph

public class TextAreaGlyph
extends TextArea
implements Viewer, Widget, Glyph
A class that allows an awt text area to be used as a glyph.

Constructor Index

 o TextAreaGlyph()
Constructs a new TextArea.
 o TextAreaGlyph(int, int)
Constructs a new TextArea with the specified number of rows and columns.
 o TextAreaGlyph(String)
Constructs a new TextArea with the specified text displayed.
 o TextAreaGlyph(String, int, int)
Constructs a new TextArea with the specified text and number of rows and columns.

Method Index

 o allocate(Allocation)
 o append(Glyph)
 o body()
 o count()
 o disconnected()
 o draw(Painter)
 o empty()
 o getChild(int)
 o getParentGlyph()
 o getSgraphicsAdapter()
 o grab(Viewer)
 o handleEvent(GraphicsEvent)
 o needRedraw()
 o needRedraw(Area)
 o needResize()
 o pick(Picker)
 o prepend(Glyph)
 o processPick(Picker, GraphicsEvent)
 o removeCallback()
 o replace(int, Glyph)
 o requirements()
 o setBody(Glyph)
 o setCallback(ViewerCallback)
 o setParent(Glyph)
 o swap(int, int)
 o ungrab()

Constructors

 o TextAreaGlyph
  public TextAreaGlyph()
Constructs a new TextArea.
 o TextAreaGlyph
  public TextAreaGlyph(int rows,
                       int cols)
Constructs a new TextArea with the specified number of rows and columns.
Parameters:
rows - the number of rows
cols - the number of columns
 o TextAreaGlyph
  public TextAreaGlyph(String text)
Constructs a new TextArea with the specified text displayed.
Parameters:
text - the text to be displayed
 o TextAreaGlyph
  public TextAreaGlyph(String text,
                       int rows,
                       int cols)
Constructs a new TextArea with the specified text and number of rows and columns.
Parameters:
text - the text to be displayed
rows - the number of rows
cols - the number of cols

Methods

 o disconnected
  public void disconnected()
 o requirements
  public Requirements requirements()
 o allocate
  public void allocate(Allocation allocation)
 o setParent
  public void setParent(Glyph parent)
 o getParentGlyph
  public Glyph getParentGlyph()
 o setCallback
  public void setCallback(ViewerCallback callback)
 o removeCallback
  public void removeCallback()
 o pick
  public void pick(Picker pick)
 o processPick
  public boolean processPick(Picker pick,
                             GraphicsEvent event)
 o handleEvent
  public boolean handleEvent(GraphicsEvent event)
 o body
  public Glyph body()
 o setBody
  public void setBody(Glyph body)
 o append
  public void append(Glyph glyph)
 o prepend
  public void prepend(Glyph glyph)
 o replace
  public void replace(int position,
                      Glyph glyph)
 o swap
  public void swap(int position1,
                   int position2)
 o getChild
  public Glyph getChild(int pos)
 o empty
  public void empty()
 o count
  public int count()
 o grab
  public void grab(Viewer target)
 o ungrab
  public void ungrab()
 o needRedraw
  public void needRedraw()
 o needRedraw
  public void needRedraw(Area area)
 o needResize
  public void needResize()
 o draw
  public void draw(Painter painter)
 o getSgraphicsAdapter
  public SgraphicsAdapter getSgraphicsAdapter()

All Packages  Class Hierarchy  This Package  Previous  Next  Index