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
-
ARC_ANGLE
- The angle over which the wedge extends.
-
ARC_HASH
- Hash code for arc angle attribute (arc)
-
START_ANGLE
- The beginning angle of the wedge.
-
START_HASH
- Hash code for start angle attribute (start)
-
Wedge()
- This constructor creates an uninitialized Wedge object.
-
createPeer(DrawPane)
- Creates the drawing peer specific for this object and the specified pane.
-
getArcAngle()
- Get the arc angle (in degrees).
-
getStartAngle()
- Get the start angle (in degrees).
-
update(Observable, Object)
- This method is called whenever an observed Attribute is changed.
START_ANGLE
public static final int START_ANGLE
- The beginning angle of the wedge.
ARC_ANGLE
public static final int ARC_ANGLE
- The angle over which the wedge extends.
START_HASH
public static final int START_HASH
- Hash code for start angle attribute (start)
ARC_HASH
public static final int ARC_HASH
- Hash code for arc angle attribute (arc)
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
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
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
getStartAngle
public int getStartAngle()
- Get the start angle (in degrees).
- Returns:
- the start angle.
getArcAngle
public int getArcAngle()
- Get the arc angle (in degrees).
- Returns:
- the arc angle.
All Packages Class Hierarchy This Package Previous Next Index