net.talvi.puffinplot.plots
Class SeparateSuiteEaPlot
java.lang.Object
net.talvi.puffinplot.plots.Plot
net.talvi.puffinplot.plots.EqAreaPlot
net.talvi.puffinplot.plots.SeparateSuiteEaPlot
public class SeparateSuiteEaPlot
- extends EqAreaPlot
An equal-area plot showing suite-level Fisher statistics.
This plot is only used in the special Fisher plot window;
SuiteEqAreaPlot
is used in the main window.
Constructor Summary |
SeparateSuiteEaPlot(GraphDisplay parent,
PlotParams params,
java.awt.geom.Rectangle2D dimensions,
java.util.prefs.Preferences prefs)
Creates a suite equal-area plot with the supplied parameters. |
Method Summary |
void |
draw(java.awt.Graphics2D g)
Draws this plot. |
java.lang.String |
getName()
Returns this plot's internal name. |
boolean |
isGroupedBySite()
Reports whether the Fisher means are grouped by site. |
void |
setGroupedBySite(boolean groupedBySite)
Sets whether the Fisher means are to be grouped by site. |
Methods inherited from class net.talvi.puffinplot.plots.Plot |
addPoint, addSampleClickListener, applyTextAttributes, clearPoints, cropRectangle, drawPoints, getDashedStroke, getDimensions, getDimensionsAsString, getFontSize, getMargin, 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 |
SeparateSuiteEaPlot
public SeparateSuiteEaPlot(GraphDisplay parent,
PlotParams params,
java.awt.geom.Rectangle2D dimensions,
java.util.prefs.Preferences prefs)
- Creates a suite equal-area plot with the supplied parameters.
- Parameters:
parent
- the graph display containing the plotparams
- the parameters of the plotdimensions
- the dimensions of this plotprefs
- the preferences containing the plot configuration
getName
public java.lang.String getName()
- Returns this plot's internal name.
- Specified by:
getName
in class Plot
- Returns:
- this plot's internal name
draw
public void draw(java.awt.Graphics2D g)
- Draws this plot.
- Specified by:
draw
in class Plot
- Parameters:
g
- the graphics object to which to draw the plot
isGroupedBySite
public boolean isGroupedBySite()
- Reports whether the Fisher means are grouped by site.
- Returns:
true
if the graph shows Fisher means are grouped by site;
false
if it shows a single Fisher mean calculated from all samples
setGroupedBySite
public void setGroupedBySite(boolean groupedBySite)
- Sets whether the Fisher means are to be grouped by site.
- Parameters:
groupedBySite
- true
to show Fisher means are grouped by site;
false
to show a single Fisher mean calculated from all samples