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.


renderDrag

renderDrag( java.awt.Graphics g, java.awt.Point p1, java.awt.Point p2 ) → java.awt.Rectangle[]

draw a crosshair at the mouse position.

Parameters

g - the graphics context
p1 - the beginning of the drag
p2 - the current mouse position during the drag

Returns:

null

[search for examples] [view on GitHub] [view on old javadoc] [view source]