org.das2.event
Class CrossHairRenderer

java.lang.Object
  extended by org.das2.event.LabelDragRenderer
      extended by org.das2.event.CrossHairRenderer
All Implemented Interfaces:
Editable, DragRenderer

public class CrossHairRenderer
extends LabelDragRenderer
implements DragRenderer, Editable


Field Summary
protected  DasPlot parent
           
protected  DasAxis XAxis
           
protected  int xInitial
           
protected  DasAxis YAxis
           
protected  int yInitial
           
 
Fields inherited from interface org.das2.event.DragRenderer
ghostColor
 
Constructor Summary
CrossHairRenderer(DasPlot parent, DataSetConsumer dataSetConsumer, DasAxis xAxis, DasAxis yAxis)
           
 
Method Summary
 void clear(java.awt.Graphics g)
           
 java.awt.Rectangle[] getDirtyBounds()
           
 boolean isAllPlanesReport()
          Getter for property allPlanesReport.
 boolean isDebugging()
          Getter for property debugging.
 boolean isMultiLine()
          Getter for property multiLine.
 boolean isPointSelection()
           
 boolean isSnapping()
           
 boolean isUpdatingDragSelection()
           
 java.awt.Rectangle[] renderDrag(java.awt.Graphics g1, java.awt.Point p1, java.awt.Point p2)
           
 void setAllPlanesReport(boolean allPlanesReport)
          Setter for property allPlanesReport.
 void setDebugging(boolean debugging)
          Setter for property debugging.
 void setMultiLine(boolean multiLine)
          Setter for property multiLine.
 void setSnapping(boolean b)
           
 
Methods inherited from class org.das2.event.LabelDragRenderer
addDirtyBounds, addDirtyBounds, getMouseDragEvent, isTooltip, resetDirtyBounds, setLabel, setTooltip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.das2.event.DragRenderer
getMouseDragEvent
 

Field Detail

xInitial

protected int xInitial

yInitial

protected int yInitial

XAxis

protected DasAxis XAxis

YAxis

protected DasAxis YAxis

parent

protected DasPlot parent
Constructor Detail

CrossHairRenderer

public CrossHairRenderer(DasPlot parent,
                         DataSetConsumer dataSetConsumer,
                         DasAxis xAxis,
                         DasAxis yAxis)
Method Detail

renderDrag

public java.awt.Rectangle[] renderDrag(java.awt.Graphics g1,
                                       java.awt.Point p1,
                                       java.awt.Point p2)
Specified by:
renderDrag in interface DragRenderer
Overrides:
renderDrag in class LabelDragRenderer

clear

public void clear(java.awt.Graphics g)
Specified by:
clear in interface DragRenderer
Overrides:
clear in class LabelDragRenderer

isPointSelection

public boolean isPointSelection()
Specified by:
isPointSelection in interface DragRenderer
Overrides:
isPointSelection in class LabelDragRenderer

isUpdatingDragSelection

public boolean isUpdatingDragSelection()
Specified by:
isUpdatingDragSelection in interface DragRenderer
Overrides:
isUpdatingDragSelection in class LabelDragRenderer

isAllPlanesReport

public boolean isAllPlanesReport()
Getter for property allPlanesReport.

Returns:
Value of property allPlanesReport.

setAllPlanesReport

public void setAllPlanesReport(boolean allPlanesReport)
Setter for property allPlanesReport.

Parameters:
allPlanesReport - New value of property allPlanesReport.

isDebugging

public boolean isDebugging()
Getter for property debugging.

Returns:
Value of property debugging.

setDebugging

public void setDebugging(boolean debugging)
Setter for property debugging.

Parameters:
debugging - New value of property debugging.

getDirtyBounds

public java.awt.Rectangle[] getDirtyBounds()
Overrides:
getDirtyBounds in class LabelDragRenderer

isSnapping

public boolean isSnapping()

setSnapping

public void setSnapping(boolean b)

isMultiLine

public boolean isMultiLine()
Getter for property multiLine.

Returns:
Value of property multiLine.

setMultiLine

public void setMultiLine(boolean multiLine)
Setter for property multiLine.

Parameters:
multiLine - New value of property multiLine.