CSE115.Graphics
Class FilledTriangle

java.lang.Object
  |
  +--NGP.Graphics.Shape
        |
        +--NGP.Graphics.RectangularShape
              |
              +--NGP.Graphics.FilledRectangularShape
                    |
                    +--CSE115.Graphics.FilledTriangle
All Implemented Interfaces:
Colorable, EventListener, Graphic, Locatable, MouseListener, MouseMotionListener, Reactor, Rotatable, Sizeable

public class FilledTriangle
extends FilledRectangularShape

An NGP-style filled triangle.

Author:
Phil Ventura

Field Summary
 
Fields inherited from class NGP.Graphics.Shape
_awtShape, _dpanel
 
Fields inherited from interface NGP.Colorable
DEFAULT_GRAY
 
Constructor Summary
FilledTriangle(DrawingPanel dp)
          Creates a new FilledTriangle with the specified DrawingPanel.
 
Methods inherited from class NGP.Graphics.FilledRectangularShape
actualPaint
 
Methods inherited from class NGP.Graphics.RectangularShape
getDimension, getLocation, setCenterLocation, setDimension, setLocation, unwrap, wrap
 
Methods inherited from class NGP.Graphics.Shape
contains, drag, getBounds, getCenterLocation, getColor, getDrawingPanel, getRotation, hide, intersects, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, react, setColor, setDrawingPanel, setRotation, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilledTriangle

public FilledTriangle(DrawingPanel dp)
Creates a new FilledTriangle with the specified DrawingPanel.

Parameters:
dp - the DrawingPanel for this FilledTriangle.