public class CrossHairRenderer extends LabelDragRenderer implements DragRenderer, Editable
Modifier and Type | Field and Description |
---|---|
protected DasPlot |
parent |
protected DasAxis |
XAxis |
protected int |
xInitial |
protected DasAxis |
YAxis |
protected int |
yInitial |
ghostColor
Constructor and Description |
---|
CrossHairRenderer(DasPlot parent,
DataSetConsumer dataSetConsumer,
DasAxis xAxis,
DasAxis yAxis) |
Modifier and Type | Method and Description |
---|---|
void |
clear(java.awt.Graphics g)
this is not used, and is left over from an old version of the library.
|
java.awt.Rectangle[] |
getDirtyBounds() |
boolean |
isAllPlanesReport()
Getter for property allPlanesReport.
|
boolean |
isDebugging()
Getter for property debugging.
|
boolean |
isMultiLine()
Getter for property multiLine.
|
boolean |
isPointSelection()
indicates that MM.mousePointSelected() should called as new mouse events
come in.
|
boolean |
isSnapping() |
boolean |
isUpdatingDragSelection()
range selection events should be fired during drag.
|
java.awt.Rectangle[] |
renderDrag(java.awt.Graphics g1,
java.awt.Point p1,
java.awt.Point p2)
draws the drag for mousing from p1 to p2, and returns an array of
Rectangles covering the rendering.
|
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) |
addDirtyBounds, addDirtyBounds, getMouseDragEvent, isTooltip, resetDirtyBounds, setLabel, setTooltip
getParent, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMouseDragEvent
protected int xInitial
protected int yInitial
protected DasAxis XAxis
protected DasAxis YAxis
protected DasPlot parent
public CrossHairRenderer(DasPlot parent, DataSetConsumer dataSetConsumer, DasAxis xAxis, DasAxis yAxis)
public java.awt.Rectangle[] renderDrag(java.awt.Graphics g1, java.awt.Point p1, java.awt.Point p2)
DragRenderer
renderDrag
in interface DragRenderer
renderDrag
in class LabelDragRenderer
g1
- the graphics context for renderingp1
- the click pointp2
- the current mouse position during drag and release.public void clear(java.awt.Graphics g)
AbstractDragRenderer
clear
in interface DragRenderer
clear
in class LabelDragRenderer
g
- the graphics contextpublic boolean isPointSelection()
AbstractDragRenderer
isPointSelection
in interface DragRenderer
isPointSelection
in class LabelDragRenderer
public boolean isUpdatingDragSelection()
AbstractDragRenderer
isUpdatingDragSelection
in interface DragRenderer
isUpdatingDragSelection
in class LabelDragRenderer
public boolean isAllPlanesReport()
public void setAllPlanesReport(boolean allPlanesReport)
allPlanesReport
- New value of property allPlanesReport.public boolean isDebugging()
public void setDebugging(boolean debugging)
debugging
- New value of property debugging.public java.awt.Rectangle[] getDirtyBounds()
getDirtyBounds
in class LabelDragRenderer
public boolean isSnapping()
public void setSnapping(boolean b)
public boolean isMultiLine()
public void setMultiLine(boolean multiLine)
multiLine
- New value of property multiLine.