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 drawShape(Rubberband)
 o getColor()
 o getFill()
 o rubberbandEnded(Rubberband)
 o setColor(Color)
 o setFill(boolean)

Constructors

 o DrawingPanel
 public DrawingPanel()

Methods

 o rubberbandEnded
 public void rubberbandEnded(Rubberband rubberband)
Overrides:
rubberbandEnded in class RubberbandPanel
 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 drawShape
 protected void drawShape(Rubberband rb)
 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