All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class att.grappa.Table

java.lang.Object
   |
   +----att.grappa.DrawObject
           |
           +----att.grappa.DrawNode
                   |
                   +----att.grappa.Table

public class Table
extends DrawNode
The class for drawing a node of shape record.

Version:
1.1, 30 Sep 1999; Copyright 1996 - 1999 by AT&T Corp.
Author:
John Mocenigo, Research @ AT&T Labs

Constructor Index

 o Table()
This constructor creates an uninitialized Table object.

Method Index

 o createPeer(DrawPane)
Creates the drawing peer specific for this object and the specified pane.
 o getLabel()
Get the label of this table.
 o getTableField()
Get the table field associated with this table.
 o getTextLabel()
Overrides the getTextLabel() in DrawObject so that a null value is always returned.
 o setTable()
This method sets up the information needed to draw the table (record).
 o update(Observable, Object)
This method is called whenever an observed Attribute is changed.

Constructors

 o Table
 public Table()
This constructor creates an uninitialized Table object. Upon creation, a default set of attributes for observing are specified (in addition to those specified when its super() constructor is called.

See Also:
Observer

Methods

 o setTable
 protected void setTable()
This method sets up the information needed to draw the table (record). It is called from setBounds (where drawOrientation is set). After obtaining the bounding box, it sets up the outline and additional periphery information.

Overrides:
setTable in class DrawNode
 o getTableField
 public TableField getTableField()
Get the table field associated with this table.

Returns:
the table field value
 o update
 public void update(Observable obs,
                    Object arg)
This method is called whenever an observed Attribute is changed. It is required by the Observer interface.

Parameters:
obs - the observable object that has been updated
arg - when not null, it indicates that obs need no longer be observed and in its place arg should be observed.
Overrides:
update in class DrawNode
 o getLabel
 public String getLabel()
Get the label of this table.

Returns:
the table label
 o getTextLabel
 public TextLabel getTextLabel()
Overrides the getTextLabel() in DrawObject so that a null value is always returned. Table uses TableField to manage its label information.

Returns:
a value of null is always returned
Overrides:
getTextLabel in class DrawObject
 o createPeer
 public void createPeer(DrawPane pane)
Creates the drawing peer specific for this object and the specified pane.

Parameters:
pane - the DrawPane upon which the object will be drawn.
Overrides:
createPeer in class DrawNode

All Packages  Class Hierarchy  This Package  Previous  Next  Index