Drawable, LogMeasurable, Measurablepublic class Trail extends AbstractTrail implements LogMeasurable
| Modifier and Type | Field | Description |
|---|---|---|
protected java.awt.geom.GeneralPath |
generalPath |
closed, color, drawingStroke, enableMeasure, numpts, xmax, xmaxLogscale, xmin, xminLogscale, ymax, ymaxLogscale, ymin, yminLogscale| Constructor | Description |
|---|---|
Trail() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addPoint(double x,
double y) |
Adds a point to the trail.
|
void |
clear() |
Clears all points from the trail.
|
void |
closeTrail() |
Closes the path by connecting the first point to the last point.
|
void |
draw(DrawingPanel panel,
java.awt.Graphics g) |
Draws the trail on the panel.
|
static XML.ObjectLoader |
getLoader() |
Returns the XML.ObjectLoader for this class.
|
boolean |
isConnected() |
Gets the connected flag.
|
void |
moveToPoint(double x,
double y) |
Starts a new trail segment by moving to a new point without drawing.
|
void |
setConnected(boolean connected) |
Sets the connectd flag.
|
getNumberOfPoints, getStroke, getXMax, getXMaxLogscale, getXMin, getXMinLogscale, getYMax, getYMaxLogscale, getYMin, getYMinLogscale, isMeasured, setDashedStroke, setMeasured, setStrokegetXMaxLogscale, getXMinLogscale, getYMaxLogscale, getYMinLogscalegetXMax, getXMin, getYMax, getYMin, isMeasuredpublic void addPoint(double x,
double y)
addPoint in class AbstractTrailx - doubley - doublepublic void moveToPoint(double x,
double y)
x - doubley - doublepublic void closeTrail()
closeTrail in class AbstractTrailpublic void setConnected(boolean connected)
connected - booleanpublic boolean isConnected()
connected - booleanpublic void clear()
clear in class AbstractTrailpublic void draw(DrawingPanel panel, java.awt.Graphics g)
public static XML.ObjectLoader getLoader()