All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class att.grappa.Wedge

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

public class Wedge
extends DrawNode
The DrawObject to use for rendering nodes whose shape is a wedge.

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

Variable Index

 o ARC_ANGLE
The angle over which the wedge extends.
 o ARC_HASH
Hash code for arc angle attribute (arc)
 o START_ANGLE
The beginning angle of the wedge.
 o START_HASH
Hash code for start angle attribute (start)

Constructor Index

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

Method Index

 o createPeer(DrawPane)
Creates the drawing peer specific for this object and the specified pane.
 o getArcAngle()
Get the arc angle (in degrees).
 o getStartAngle()
Get the start angle (in degrees).
 o update(Observable, Object)
This method is called whenever an observed Attribute is changed.

Variables

 o START_ANGLE
 public static final int START_ANGLE
The beginning angle of the wedge.

 o ARC_ANGLE
 public static final int ARC_ANGLE
The angle over which the wedge extends.

 o START_HASH
 public static final int START_HASH
Hash code for start angle attribute (start)

 o ARC_HASH
 public static final int ARC_HASH
Hash code for arc angle attribute (arc)

Constructors

 o Wedge
 public Wedge()
This constructor creates an uninitialized Wedge 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 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 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
 o getStartAngle
 public int getStartAngle()
Get the start angle (in degrees).

Returns:
the start angle.
 o getArcAngle
 public int getArcAngle()
Get the arc angle (in degrees).

Returns:
the arc angle.

All Packages  Class Hierarchy  This Package  Previous  Next  Index