public class ArrowDragRenderer extends java.lang.Object implements DragRenderer
ghostColor| Constructor and Description |
|---|
ArrowDragRenderer() |
| 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 java.awt.Rectangle[] renderDrag(java.awt.Graphics g,
java.awt.Point p1,
java.awt.Point p2)
DragRendererrenderDrag in interface DragRendererg - the graphics context for renderingp1 - the click pointp2 - the current mouse position during drag and release.public void clear(java.awt.Graphics g)
DragRendererclear in interface DragRendererg - the graphics contextpublic MouseDragEvent getMouseDragEvent(java.lang.Object source, java.awt.Point p1, java.awt.Point p2, boolean isModified)
DragRenderergetMouseDragEvent in interface DragRendererp1 - the click pointp2 - the current mouse position during drag and release.public boolean isPointSelection()
DragRendererisPointSelection in interface DragRendererpublic boolean isUpdatingDragSelection()
DragRendererisUpdatingDragSelection in interface DragRenderer