public interface PlotPoint
Plot| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics2D graphics)
Draws this point in a supplied graphics context.
|
void |
drawWithPossibleLine(java.awt.Graphics2D graphics,
PlotPoint prev,
boolean annotate)
Draws this point in a specified graphics context, possibly drawing
a line from a supplied previous point to this one.
|
java.awt.geom.Point2D |
getCentre() |
Sample |
getSample() |
java.awt.Shape |
getShape() |
TreatmentStep |
getTreatmentStep() |
boolean |
isNear(java.awt.geom.Point2D point,
double distance)
Report whether this point is near to a supplied
Point2D. |
void draw(java.awt.Graphics2D graphics)
graphics - the graphics context in which to drawvoid drawWithPossibleLine(java.awt.Graphics2D graphics,
PlotPoint prev,
boolean annotate)
graphics - the graphics context in which to drawprev - the previous point from which to draw the line to this oneannotate - if true, annotate the point textually with
implementation-dependent additional informationTreatmentStep getTreatmentStep()
null
if there is no associated treatment stepSample getSample()
null
if there is no associated samplejava.awt.Shape getShape()
java.awt.geom.Point2D getCentre()
boolean isNear(java.awt.geom.Point2D point,
double distance)
Point2D. The
exact behaviour is implementation-dependent. If this point represents a
precise position on a plot, distance indicates the maximum
distance which should be considered "near". If the point consists of a
larger area (e.g. a line of text) whose exact position does not represent
a property of the associated sample or step, the distance
argument may be ignored and the method may return true only if
the supplied Point2D lies within this PlotPoint's extent.point - the point whose nearness to this point should be determineddistance - the maximum distance at which the two points should
be considered "near"true if and only if the supplied point is near to this
point