Class gjt.DrawingPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.DrawingPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----gjt.rubberband.RubberbandPanel
                                   |
                                   +----gjt.DrawingPanel

public class DrawingPanel
extends RubberbandPanel
An extension of gjt.rubberband.RubberbandPanel which serves as a panel used for drawing simple shapes (lines, rectangles, and ellipses). The shapes may be filled (except for lines, of course), and the color of the shapes may be specified.

See Also:
RubberbandPanel, RubberbandEllipse, RubberbandLine, RubberbandRectangle, RubberbandTest, ToolbarTest

Constructor Index

 o DrawingPanel()

Method Index

 o drawEllipse(Rubberband, Graphics)
 o drawEllipses()
 o drawLine(Rubberband, Graphics)
 o drawLines()
 o drawRectangle(Rubberband, Graphics)
 o drawRectangles()
 o getColor()
 o getFill()
 o mouseUp(Event, int, int)
 o setColor(Color)
 o setFill(boolean)

Constructors

 o DrawingPanel
  public DrawingPanel()

Methods

 o drawLines
  public void drawLines()
 o drawRectangles
  public void drawRectangles()
 o drawEllipses
  public void drawEllipses()
 o setColor
  public void setColor(Color color)
 o getColor
  public Color getColor()
 o setFill
  public void setFill(boolean b)
 o getFill
  public boolean getFill()
 o mouseUp
  public boolean mouseUp(Event event,
                         int x,
                         int y)
Overrides:
mouseUp in class RubberbandPanel
 o drawLine
  protected void drawLine(Rubberband rb,
                          Graphics g)
 o drawRectangle
  protected void drawRectangle(Rubberband rb,
                               Graphics g)
 o drawEllipse
  protected void drawEllipse(Rubberband rb,
                             Graphics g)

All Packages  Class Hierarchy  This Package  Previous  Next  Index