public class TrailSmart extends TrailBezier
closed, color, drawingStroke, enableMeasure, numpts, xmax, xmin, ymax, ymin
Constructor and Description |
---|
TrailSmart() |
Modifier and Type | Method and Description |
---|---|
void |
addPoint(double x,
double y)
Adds a point to the trail.
|
protected void |
drawPathEnd(DrawingPanel panel,
java.awt.Graphics2D g2)
Draws the points that have not yet been added to the Bezier spline.
|
double |
getXMax()
Gets the maximum x value in the trail.
|
double |
getXMin()
Gets the minimum x value in the trail.
|
double |
getYMax()
Gets the maximum y value in the trail.
|
double |
getYMin()
Gets the minimum y value in the trail.
|
void |
setMaxError(double max)
Sets the maximum error.
|
clear, closeTrail, draw, getLoader, isMeasured, setSlack
getNumberOfPoints, getStroke, setDashedStroke, setMeasured, setStroke
public void setMaxError(double max)
max
- doublepublic void addPoint(double x, double y)
addPoint
in class TrailBezier
x
- doubley
- doubleprotected void drawPathEnd(DrawingPanel panel, java.awt.Graphics2D g2)
drawPathEnd
in class TrailBezier
panel
- DrawingPanelg2
- Graphics2Dpublic double getXMin()
getXMin
in interface Measurable
getXMin
in class TrailBezier
public double getXMax()
getXMax
in interface Measurable
getXMax
in class TrailBezier
public double getYMin()
getYMin
in interface Measurable
getYMin
in class TrailBezier
public double getYMax()
getYMax
in interface Measurable
getYMax
in class TrailBezier