|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.event.MouseInputAdapter
net.java.swingfx.rubberband.rubberbands.AbstractRubberBand
net.java.swingfx.rubberband.rubberbands.RectangularRubberBand
public class RectangularRubberBand
A RubberBand
which is rectangular
Field Summary |
---|
Fields inherited from class net.java.swingfx.rubberband.rubberbands.AbstractRubberBand |
---|
canvas, rubberband |
Constructor Summary | |
---|---|
RectangularRubberBand(RubberBandCanvas canvas)
Creates a new rubber band which is rectangular |
Method Summary | |
---|---|
void |
draw(Graphics g)
Draws the rubber band on the given Graphics object |
void |
startRubberBand(EventObject event)
Called when the rubber band is first created, typically on a mouse pressed event |
void |
stopRubberBand(EventObject event)
Called when the rubber band is done being created, typically on a mouse released event |
void |
update(int x,
int y,
int width,
int height)
Updates the parameters of the rubber band |
void |
updateRubberBand(EventObject event)
Called when the rubber band is being updated, typically on a mouse dragged event |
Methods inherited from class net.java.swingfx.rubberband.rubberbands.AbstractRubberBand |
---|
addMouseListeners, getBounds, isHideOnRelease, mouseDragged, mousePressed, mouseReleased, setCanvas, setHideOnRelease |
Methods inherited from class javax.swing.event.MouseInputAdapter |
---|
mouseClicked, mouseEntered, mouseExited, mouseMoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RectangularRubberBand(RubberBandCanvas canvas)
canvas
- the canvas to draw the rubber band onMethod Detail |
---|
public void update(int x, int y, int width, int height)
RubberBand
x
- the x coordinatey
- the y coordinatewidth
- the width of the rubber bandheight
- the height of the rubber bandpublic void draw(Graphics g)
RubberBand
Graphics
object
g
- the Graphics
object to draw the rubber band onpublic void startRubberBand(EventObject event)
RubberBand
event
- the event that started the rubber bandpublic void stopRubberBand(EventObject event)
RubberBand
event
- the event that stopped the rubber bandpublic void updateRubberBand(EventObject event)
RubberBand
event
- the event that started the rubber band
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |