public class SimpleCrossHairRenderer extends AbstractDragRenderer implements DragRenderer, Editable
ghostColor| Constructor and Description |
|---|
SimpleCrossHairRenderer()
create the SimpleCrossHairRenderer, requesting events be fired during the drag.
|
SimpleCrossHairRenderer(boolean dragEvents)
create the SimpleCrossHairRenderer, possibly firing events.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Rectangle[] |
renderDrag(java.awt.Graphics g,
java.awt.Point p1,
java.awt.Point p2)
draw a crosshair at the mouse position.
|
clear, getMouseDragEvent, getParent, isPointSelection, isUpdatingDragSelection, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, getMouseDragEvent, isPointSelection, isUpdatingDragSelectionpublic SimpleCrossHairRenderer()
public SimpleCrossHairRenderer(boolean dragEvents)
dragEvents - if true, will request that events be fired during the drag.public java.awt.Rectangle[] renderDrag(java.awt.Graphics g,
java.awt.Point p1,
java.awt.Point p2)
renderDrag in interface DragRendererg - the graphics contextp1 - the beginning of the dragp2 - the current mouse position during the drag