net.java.swingfx.rubberband.rubberbands
Class OvalRubberBand
java.lang.Object
javax.swing.event.MouseInputAdapter
net.java.swingfx.rubberband.rubberbands.AbstractRubberBand
net.java.swingfx.rubberband.rubberbands.RectangularRubberBand
net.java.swingfx.rubberband.rubberbands.OvalRubberBand
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, EventListener, MouseInputListener, RubberBand
public class OvalRubberBand
- extends RectangularRubberBand
An Oval RubberBand
which subclasses RectangularRubberBand
The only difference between the two rubber bands is the
RubberBand.draw(Graphics)
method
- Since:
- 1.0
$Revision: 1.1 $
- Author:
- rwickesser
Method Summary |
void |
draw(Graphics g)
Draws the rubber band on the given Graphics object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OvalRubberBand
public OvalRubberBand(RubberBandCanvas canvas)
- Creates a new rubber band which is oval
- Parameters:
canvas
- the canvas to draw the rubber band on
draw
public void draw(Graphics g)
- Description copied from interface:
RubberBand
- Draws the rubber band on the given
Graphics
object
- Specified by:
draw
in interface RubberBand
- Overrides:
draw
in class RectangularRubberBand
- Parameters:
g
- the Graphics
object to draw the rubber band on