public interface DragRenderer
| Modifier and Type | Field and Description |
|---|---|
static java.awt.Color |
ghostColor
use this color when drawing ghostly backgrounds for contrast.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear(java.awt.Graphics g)
clears whatever renderDrag rendered.
|
MouseDragEvent |
getMouseDragEvent(java.lang.Object source,
java.awt.Point p1,
java.awt.Point p2,
boolean isModified)
promotes the drag begin and end into a mouseDragEvent.
|
boolean |
isPointSelection()
indicates that the mouse module's mousePointSelected() should be called as new mouse events come in.
|
boolean |
isUpdatingDragSelection()
range selection events should be fired during drag.
|
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.
|
static final java.awt.Color ghostColor
java.awt.Rectangle[] renderDrag(java.awt.Graphics g,
java.awt.Point p1,
java.awt.Point p2)
g - the graphics context for renderingp1 - the click pointp2 - the current mouse position during drag and release.void clear(java.awt.Graphics g)
g - the graphics contextMouseDragEvent getMouseDragEvent(java.lang.Object source, java.awt.Point p1, java.awt.Point p2, boolean isModified)
source - p1 - the click pointp2 - the current mouse position during drag and release.isModified - boolean isPointSelection()
boolean isUpdatingDragSelection()