renderDrag
public java.awt.Rectangle[] renderDrag(java.awt.Graphics g,
java.awt.Point p1,
java.awt.Point p2)
draws the drag for mousing from p1 to p2, and returns an array of
Rectangles covering the rendering. If nothing is drawn, then an
array of length zero should be returned, and nulls are allowed in the
array. p1 and p2, and g are in the canvas frame of reference.
- Specified by:
renderDrag in interface DragRenderer
- Parameters:
g - the graphics context for rendering
p1 - the click point
p2 - the current mouse position during drag and release.
- Returns: