public class PointSlopeDragRenderer extends LabelDragRenderer
ghostColor
Constructor and Description |
---|
PointSlopeDragRenderer(DasCanvasComponent parent,
DasAxis xaxis,
DasAxis yaxis)
Creates a new instance of PointSlopeDragRenderer
|
Modifier and Type | Method and Description |
---|---|
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.
|
addDirtyBounds, addDirtyBounds, clear, getDirtyBounds, getMouseDragEvent, isPointSelection, isTooltip, isUpdatingDragSelection, resetDirtyBounds, setLabel, setTooltip
getParent, setParent
public PointSlopeDragRenderer(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.