# org.das2.event.SimpleCrossHairRenderer

Draw a cross hair.  By default, this will send off update events during the drag.  If the
 mouse module also

# SimpleCrossHairRenderer( )
create the SimpleCrossHairRenderer, requesting events be fired during the drag.

# SimpleCrossHairRenderer( boolean dragEvents )
create the SimpleCrossHairRenderer, possibly firing events.

***
<a name="renderDrag-java.awt.Graphics-java.awt.Point-java.awt.Point"></a>
# renderDrag
renderDrag( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Graphics.html'>java.awt.Graphics</a> g, <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Point.html'>java.awt.Point</a> p1, <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Point.html'>java.awt.Point</a> p2 ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Rectangle.html'>java.awt.Rectangle[]</a>

draw a crosshair at the mouse position.

### Parameters:
g - the graphics context
<br>p1 - the beginning of the drag
<br>p2 - the current mouse position during the drag

### Returns:
null

<a href="https://github.com/autoplot/dev/search?q=renderDrag&unscoped_q=renderDrag">[search for examples]</a>
<a href="https://github.com/autoplot/documentation/blob/master/javadoc/index-all.md">[return to index]</a>

