public class LengthDragRenderer extends LabelDragRenderer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_SHOWRECIPROCAL |
protected boolean |
showFit |
ghostColor
Constructor and Description |
---|
LengthDragRenderer(DasCanvasComponent parent,
DasAxis xaxis,
DasAxis yaxis)
Creates a new instance of PointSlopeDragRenderer
|
Modifier and Type | Method and Description |
---|---|
int |
getNCycles()
get the number to normalize the numbers by.
|
boolean |
isShowFit()
true if the fit should be shown
|
boolean |
isShowReciprocalDeltaX() |
boolean |
isShowSlope()
true if the slope should be shown
|
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 |
setNCycles(int i)
set the number to normalize the numbers by.
|
void |
setShowFit(boolean showFit)
if true then show the fit for all but xlog,ylin.
|
void |
setShowReciprocalDeltaX(boolean showReciprocal) |
void |
setShowSlope(boolean showSlope)
true if the slope should be shown
|
addDirtyBounds, addDirtyBounds, clear, getDirtyBounds, getMouseDragEvent, isPointSelection, isTooltip, isUpdatingDragSelection, resetDirtyBounds, setLabel, setTooltip
getParent, setParent
public static final java.lang.String PROP_SHOWRECIPROCAL
protected boolean showFit
public LengthDragRenderer(DasCanvasComponent parent, DasAxis xaxis, DasAxis yaxis)
parent
- xaxis
- 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 boolean isShowReciprocalDeltaX()
public void setShowReciprocalDeltaX(boolean showReciprocal)
public boolean isShowSlope()
public void setShowSlope(boolean showSlope)
showSlope
- true if the slope should be shownpublic boolean isShowFit()
public void setShowFit(boolean showFit)
showFit
- if true then show the fit for all but xlog,ylin.public void setNCycles(int i)
i
- public int getNCycles()