public class MEDMarkerCrosshair.Crosshair
extends java.lang.Object
Constructor and Description |
---|
MEDMarkerCrosshair.Crosshair(java.awt.event.MouseEvent ev)
The constructor.
|
MEDMarkerCrosshair.Crosshair(P2DCanvasInterface canvas,
P2DPlotInterface plot) |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g,
boolean saveRange,
int type)
Draw the crosshair cursor.
|
protected void |
drawCrosshair(java.awt.Graphics2D g,
boolean saveRange,
int type) |
java.awt.Graphics2D |
drawOffScreenImage()
Draw the offscreen image.
|
double |
getX()
Get the x value of the cursor.
|
void |
release() |
public MEDMarkerCrosshair.Crosshair(P2DCanvasInterface canvas, P2DPlotInterface plot)
public MEDMarkerCrosshair.Crosshair(java.awt.event.MouseEvent ev)
public void release()
public double getX()
public java.awt.Graphics2D drawOffScreenImage()
public void draw(java.awt.Graphics2D g, boolean saveRange, int type)
g
- The graphical context.saveRange
- if true save the range.protected void drawCrosshair(java.awt.Graphics2D g, boolean saveRange, int type)