net.java.swingfx.rubberband.canvas
Interface RubberBandCanvas


public interface RubberBandCanvas

An interface for which any JComponent that wishes to enable rubber band functionality should implement. The canvas is the area on which the RubberBand will be drawn onto.

Since:
1.0 $Revision: 1.1 $
Author:
rwickesser

Method Summary
 JComponent getCanvas()
          Returns the JComponent which is the canvas for the RubberBand
 void setRubberBand(RubberBand rubberband)
          Sets the RubberBand for the canvas
 

Method Detail

getCanvas

JComponent getCanvas()
Returns the JComponent which is the canvas for the RubberBand

Returns:
the JComponent which is the canvas for the RubberBand

setRubberBand

void setRubberBand(RubberBand rubberband)
Sets the RubberBand for the canvas

Parameters:
rubberband - the RubberBand for the canvas