org.das2.event.LabelDragRenderer

LabelDragRenderer draws a label at the current mouse location. Typically this one overrides this class and calls the setLabel and super.renderDrag classes.

LabelDragRenderer( org.das2.graph.DasCanvasComponent parent )

create an instance.

LabelDragRenderer( )

create an instance, and presumably the mouse module will set the parent.


clear

clear( java.awt.Graphics g ) → void

Parameters

g - a Graphics

Returns:

void (returns nothing)

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


getMouseDragEvent

getMouseDragEvent( Object source, java.awt.Point p1, java.awt.Point p2, boolean isModified ) → MouseDragEvent

This method is called by the DMIA on mouse release. We use this to infer the mouse release and hide the Window. Note this assumes isUpdatingDragSelection is false! TODO: DMIA should call clear so this is more explicit.

Parameters

source - an Object
p1 - a Point
p2 - a Point
isModified - a boolean

Returns:

the DragEvent

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


isPointSelection

isPointSelection( ) → boolean

Returns:

boolean

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


isTooltip

isTooltip( ) → boolean

Returns:

boolean

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


isUpdatingDragSelection

isUpdatingDragSelection( ) → boolean

Returns:

boolean

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


renderDrag

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

Parameters

g - a Graphics
p1 - a Point
p2 - a Point

Returns:

java.awt.Rectangle[]

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


setLabel

setLabel( String s ) → void

set the label to be drawn. This should be done before this object's renderDrag is called.

Parameters

s - the label, which can contain Granny control sequences like !A and !n.

Returns:

void (returns nothing)

See Also:

http://autoplot.org/help#Granny_Strings


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


setTooltip

setTooltip( boolean tooltip ) → void

Parameters

tooltip - a boolean

Returns:

void (returns nothing)

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