public class GesturesRenderer extends java.lang.Object implements DragRenderer
ghostColor| Constructor and Description |
|---|
GesturesRenderer(DasCanvasComponent parent)
Creates a new instance of GesturesRenderer
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear(java.awt.Graphics g)
clears whatever renderDrag rendered.
|
protected java.awt.Rectangle |
getDirtyBounds() |
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 |
isGesture(java.awt.Point p1,
java.awt.Point p2) |
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 g1,
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 GesturesRenderer(DasCanvasComponent parent)
public 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 java.awt.Rectangle[] renderDrag(java.awt.Graphics g1,
java.awt.Point p1,
java.awt.Point p2)
DragRendererrenderDrag in interface DragRendererg1 - 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 contextprotected java.awt.Rectangle getDirtyBounds()
public boolean isPointSelection()
DragRendererisPointSelection in interface DragRendererpublic boolean isUpdatingDragSelection()
DragRendererisUpdatingDragSelection in interface DragRendererpublic boolean isGesture(java.awt.Point p1,
java.awt.Point p2)