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
-
DrawingPanel()
-
-
drawEllipse(Rubberband, Graphics)
-
-
drawEllipses()
-
-
drawLine(Rubberband, Graphics)
-
-
drawLines()
-
-
drawRectangle(Rubberband, Graphics)
-
-
drawRectangles()
-
-
getColor()
-
-
getFill()
-
-
mouseUp(Event, int, int)
-
-
setColor(Color)
-
-
setFill(boolean)
-
DrawingPanel
public DrawingPanel()
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()
mouseUp
public boolean mouseUp(Event event,
int x,
int y)
- Overrides:
- mouseUp in class RubberbandPanel
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