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
-
DrawingPanel()
-
-
drawEllipse(Rubberband, Graphics)
-
-
drawEllipses()
-
-
drawLine(Rubberband, Graphics)
-
-
drawLines()
-
-
drawRectangle(Rubberband, Graphics)
-
-
drawRectangles()
-
-
drawShape(Rubberband)
-
-
getColor()
-
-
getFill()
-
-
rubberbandEnded(Rubberband)
-
-
setColor(Color)
-
-
setFill(boolean)
-
DrawingPanel
public DrawingPanel()
rubberbandEnded
public void rubberbandEnded(Rubberband rubberband)
- Overrides:
- rubberbandEnded in class RubberbandPanel
drawLines
public void drawLines()
drawRectangles
public void drawRectangles()
drawEllipses
public void drawEllipses()
setColor
public void setColor(Color color)
getColor
public Color getColor()
setFill
public void setFill(boolean b)
getFill
public boolean getFill()
drawShape
protected void drawShape(Rubberband rb)
drawLine
protected void drawLine(Rubberband rb,
Graphics g)
drawRectangle
protected void drawRectangle(Rubberband rb,
Graphics g)
drawEllipse
protected void drawEllipse(Rubberband rb,
Graphics g)
All Packages Class Hierarchy This Package Previous Next Index