| net.java.swingfx.rubberband.rubberbands.RubberBand
All known Subclasses: net.java.swingfx.rubberband.rubberbands.AbstractRubberBand,
RubberBand | public interface RubberBand (Code) | | Defines the required functionality for creating a rubber band
author: rwickesser since: 1.0 since: $Revision: 1.1 $ |
addMouseListeners | public void addMouseListeners()(Code) | | Enforces that the mouse listeners are added to the canvas
|
draw | public void draw(Graphics g)(Code) | | Draws the rubber band on the given Graphics object
Parameters: g - the Graphics object to draw the rubber band on |
getBounds | public Rectangle getBounds()(Code) | | Returns an integer Rectangle which contains the
size and location of this rubber band
an integer Rectangle which contains the size andlocation of this rubber band |
setCanvas | public void setCanvas(RubberBandCanvas canvas)(Code) | | Sets the canvas which the rubber band will be drawn onto
Parameters: canvas - the canvas which the rubber band will be drawn onto |
startRubberBand | public void startRubberBand(EventObject event)(Code) | | Called when the rubber band is first created, typically on a mouse pressed
event
Parameters: event - the event that started the rubber band |
stopRubberBand | public void stopRubberBand(EventObject event)(Code) | | Called when the rubber band is done being created, typically on a mouse released
event
Parameters: event - the event that stopped the rubber band |
update | public void update(int x, int y, int width, int height)(Code) | | Updates the parameters of the rubber band
Parameters: x - the x coordinate Parameters: y - the y coordinate Parameters: width - the width of the rubber band Parameters: height - the height of the rubber band |
updateRubberBand | public void updateRubberBand(EventObject event)(Code) | | Called when the rubber band is being updated, typically on a mouse dragged
event
Parameters: event - the event that started the rubber band |
|
|