public class EmptyDragRenderer extends java.lang.Object implements DragRenderer
Modifier and Type | Field and Description |
---|---|
static EmptyDragRenderer |
renderer |
ghostColor
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.
|
public static final EmptyDragRenderer renderer
public java.awt.Rectangle[] renderDrag(java.awt.Graphics g, java.awt.Point p1, java.awt.Point p2)
DragRenderer
renderDrag
in interface DragRenderer
g
- the graphics context for renderingp1
- the click pointp2
- the current mouse position during drag and release.public MouseDragEvent getMouseDragEvent(java.lang.Object source, java.awt.Point p1, java.awt.Point p2, boolean isModified)
DragRenderer
getMouseDragEvent
in interface DragRenderer
p1
- the click pointp2
- the current mouse position during drag and release.public void clear(java.awt.Graphics g)
DragRenderer
clear
in interface DragRenderer
g
- the graphics contextpublic boolean isPointSelection()
DragRenderer
isPointSelection
in interface DragRenderer
public boolean isUpdatingDragSelection()
DragRenderer
isUpdatingDragSelection
in interface DragRenderer