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
-
Table()
- This constructor creates an uninitialized Table object.
-
createPeer(DrawPane)
- Creates the drawing peer specific for this object and the specified pane.
-
getLabel()
- Get the label of this table.
-
getTableField()
- Get the table field associated with this table.
-
getTextLabel()
- Overrides the
getTextLabel()
in DrawObject
so that a null
value is always returned.
-
setTable()
- This method sets up the information needed to draw the table (record).
-
update(Observable, Object)
- This method is called whenever an observed Attribute is changed.
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
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
getTableField
public TableField getTableField()
- Get the table field associated with this table.
- Returns:
- the table field value
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
getLabel
public String getLabel()
- Get the label of this table.
- Returns:
- the table label
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
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