org.das2.event
Class LabelDragRenderer
java.lang.Object
org.das2.event.LabelDragRenderer
- All Implemented Interfaces:
- DragRenderer
- Direct Known Subclasses:
- CrossHairRenderer, FrequencyDragRenderer, LengthDragRenderer, PointSlopeDragRenderer
public class LabelDragRenderer
- extends java.lang.Object
- implements DragRenderer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabelDragRenderer
public LabelDragRenderer(DasCanvasComponent parent)
clear
public void clear(java.awt.Graphics g)
- Specified by:
clear
in interface DragRenderer
getMouseDragEvent
public MouseDragEvent getMouseDragEvent(java.lang.Object source,
java.awt.Point p1,
java.awt.Point p2,
boolean isModified)
- 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.
- Specified by:
getMouseDragEvent
in interface DragRenderer
isPointSelection
public boolean isPointSelection()
- Specified by:
isPointSelection
in interface DragRenderer
isUpdatingDragSelection
public boolean isUpdatingDragSelection()
- Specified by:
isUpdatingDragSelection
in interface DragRenderer
setLabel
public void setLabel(java.lang.String s)
renderDrag
public java.awt.Rectangle[] renderDrag(java.awt.Graphics g,
java.awt.Point p1,
java.awt.Point p2)
- Specified by:
renderDrag
in interface DragRenderer
resetDirtyBounds
protected void resetDirtyBounds()
addDirtyBounds
protected void addDirtyBounds(java.awt.Rectangle[] dirty)
addDirtyBounds
protected void addDirtyBounds(java.awt.Rectangle dirty)
getDirtyBounds
protected java.awt.Rectangle[] getDirtyBounds()
isTooltip
public boolean isTooltip()
setTooltip
public void setTooltip(boolean tooltip)