All Packages Class Hierarchy This Package Previous Next Index
Class att.grappa.TablePeer
java.lang.Object
|
+----att.grappa.DrawObjectPeer
|
+----att.grappa.DrawNodePeer
|
+----att.grappa.TablePeer
- public class TablePeer
- extends DrawNodePeer
This class provides the basis for actually drawing table elements on a pane.
- Version:
- 1.1, 30 Sep 1999; Copyright 1996 - 1999 by AT&T Corp.
- Author:
- John Mocenigo, Research @ AT&T Labs
-
TablePeer(Table, DrawPane)
- Create an instance of a
TablePeer
related to the supplied Table
and DrawPane
.
-
draw(Graphics, GraphicContext)
- Draws the table using the specified graphics information.
-
setTextLabelPeer(TextLabelPeer)
- Set the text label peer that is to be drawn in conjunction with this peer.
-
setupPeer(boolean)
- Setup this peer.
TablePeer
public TablePeer(Table table,
DrawPane pane)
- Create an instance of a
TablePeer
related to the supplied Table
and DrawPane
.
- Parameters:
- table - the source object for this peer object
- pane - the pane to use when drawing this peer
setTextLabelPeer
public TextLabelPeer setTextLabelPeer(TextLabelPeer peer)
- Set the text label peer that is to be drawn in conjunction with this peer.
- Overrides:
- setTextLabelPeer in class DrawObjectPeer
draw
public void draw(Graphics gr,
GraphicContext context)
- Draws the table using the specified graphics information.
- Parameters:
- gr - the AWT graphics context to use for drawing, if the value
is null, then the off-screen canvas
Graphics
is used.
- context - the graphic context to use when drawing.
If the context is null, the object's context is used.
- Overrides:
- draw in class DrawNodePeer
setupPeer
public void setupPeer(boolean setupTextToo)
- Setup this peer.
The setup does the actual co-ordinate mappings from what is available
in the
DrawNode
object to the DrawPane
co-ordinates.
- Parameters:
- setupTextToo - indicates if text peer should be setup as well
- Overrides:
- setupPeer in class DrawNodePeer
All Packages Class Hierarchy This Package Previous Next Index