|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.talvi.puffinplot.plots.Plot
net.talvi.puffinplot.plots.EqAreaPlot
public abstract class EqAreaPlot
An abstract superclass for Lambert azimuthal equal-area plots. It provides various facilities to simplify the drawing of an equal-area plot, including projection of the data points and drawing of the axes.
| Field Summary | |
|---|---|
protected java.awt.Graphics2D |
g
The graphics object to which to draw the plot. |
protected int |
radius
The radius of the projection. |
protected int |
xo
The x co-ordinate of the projection's origin. |
protected int |
yo
The y co-ordinate of the projection's origin. |
| Fields inherited from class net.talvi.puffinplot.plots.Plot |
|---|
DEFAULT_PLOT_POSITIONS, dimensions, params, PLOT_POINT_SIZE |
| Constructor Summary | |
|---|---|
protected |
EqAreaPlot(GraphDisplay parent,
PlotParams params,
java.util.prefs.Preferences prefs)
Creates a new equal-area plot with the supplies parameters. |
protected |
EqAreaPlot(GraphDisplay parent,
PlotParams params,
java.util.prefs.Preferences prefs,
boolean taperingEnabled)
Creates a new equal-area plot with the supplies parameters. |
| Method Summary | |
|---|---|
protected void |
drawAxes()
Draws the axes of the plot. |
protected void |
drawGreatCircle(Vec3 pole,
boolean drawPole)
Projects and draws a great circle |
protected void |
drawGreatCircleSegment(Vec3 v0,
Vec3 v1)
Draws the projection of a specified great-circle segment. |
protected void |
drawGreatCircleSegment(Vec3 v0,
Vec3 v1,
Vec3 dir)
Draws the projection of a specified great-circle segment. |
protected void |
drawLineSegments(java.util.List<Vec3> vs)
Projects and draws the supplied vectors. |
boolean |
isTaperingEnabled()
Reports whether tapered lines are enabled for this plot. |
protected java.awt.geom.Point2D.Double |
project(Vec3 v)
Projects the direction of a three-dimensional vector into plot co-ordinates. |
protected void |
updatePlotDimensions(java.awt.Graphics2D g)
Sets the fields g, radius, xo,
and yo according to the supplied argument and the
current plot dimensions. |
protected java.awt.geom.GeneralPath |
vectorsToPath(java.util.List<Vec3> vectors)
Projects a list of three-dimensional vectors into a two-dimensional path in the current plot co-ordinates. |
| Methods inherited from class net.talvi.puffinplot.plots.Plot |
|---|
addPoint, addSampleClickListener, applyTextAttributes, clearPoints, cropRectangle, draw, drawPoints, getDashedStroke, getDimensions, getDimensionsAsString, getFontSize, getMargin, getName, getNiceName, getStroke, getTextAttributes, getTickLength, getUnitSize, isVisible, mouseClicked, removeSampleClickListener, selectByRectangle, setDimensions, setDimensionsToDefault, setVisible, timesTenToThe, timesTenToThe, writeString, writeString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.awt.Graphics2D g
updatePlotDimensions(Graphics2D).
protected int xo
updatePlotDimensions(Graphics2D).
protected int yo
updatePlotDimensions(Graphics2D).
protected int radius
updatePlotDimensions(Graphics2D).
| Constructor Detail |
|---|
protected EqAreaPlot(GraphDisplay parent,
PlotParams params,
java.util.prefs.Preferences prefs,
boolean taperingEnabled)
parent - the graph display containing the plotparams - the plot parametersprefs - the preferences containing the plot configurationtaperingEnabled - true to taper plotted lines according to z position
protected EqAreaPlot(GraphDisplay parent,
PlotParams params,
java.util.prefs.Preferences prefs)
parent - the graph display containing the plotparams - the plot parametersprefs - the preferences containing the plot configuration| Method Detail |
|---|
protected void updatePlotDimensions(java.awt.Graphics2D g)
g, radius, xo,
and yo according to the supplied argument and the
current plot dimensions.
This method should be called before redrawing the plot.
g - the field g will be set to this valueprotected void drawAxes()
protected java.awt.geom.GeneralPath vectorsToPath(java.util.List<Vec3> vectors)
vectors - the vectors to project
protected void drawLineSegments(java.util.List<Vec3> vs)
vs - the vectors to draw
protected void drawGreatCircleSegment(Vec3 v0,
Vec3 v1)
v0 - one end of a great-circle segmentv1 - the other end of a great-circle segment
protected void drawGreatCircleSegment(Vec3 v0,
Vec3 v1,
Vec3 dir)
dir will be drawn.
v0 - one end of a great-circle segmentv1 - the other end of a great-circle segmentdir - vector used to choose which path to draw
protected void drawGreatCircle(Vec3 pole,
boolean drawPole)
pole - the pole to the great circle which is to be drawndrawPole - true to mark the pole on the plotprotected java.awt.geom.Point2D.Double project(Vec3 v)
v - a vector
public boolean isTaperingEnabled()
true if tapered lines are enabled for this plot
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||