net.talvi.puffinplot.plots
Class ZPlot.ZplotLegend

java.lang.Object
  extended by net.talvi.puffinplot.plots.Plot
      extended by net.talvi.puffinplot.plots.ZPlot.ZplotLegend
Enclosing class:
ZPlot

public class ZPlot.ZplotLegend
extends Plot

A legend for a Zijderveld plot. It shows the units for the axes, and gives a key for the filled and unfilled points.


Field Summary
 
Fields inherited from class net.talvi.puffinplot.plots.Plot
DEFAULT_PLOT_POSITIONS, dimensions, params, PLOT_POINT_SIZE
 
Method Summary
 void draw(java.awt.Graphics2D g)
          Draws this plot.
 int getMargin()
          Returns the size of the margin displayed when resizing the plot.
 java.lang.String getName()
          Returns an internal name for this plot.
 java.lang.String getNiceName()
          Returns a user-friendly name for this plot.
 
Methods inherited from class net.talvi.puffinplot.plots.Plot
addPoint, addSampleClickListener, applyTextAttributes, clearPoints, cropRectangle, drawPoints, getDashedStroke, getDimensions, getDimensionsAsString, getFontSize, 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
 

Method Detail

getName

public java.lang.String getName()
Description copied from class: Plot
Returns an internal name for this plot.

Specified by:
getName in class Plot
Returns:
an internal name for this plot

getNiceName

public java.lang.String getNiceName()
Description copied from class: Plot
Returns a user-friendly name for this plot.

Overrides:
getNiceName in class Plot
Returns:
a user-friendly name for this plot

getMargin

public int getMargin()
Description copied from class: Plot
Returns the size of the margin displayed when resizing the plot.

Overrides:
getMargin in class Plot
Returns:
the size of the margin displayed when resizing the plot

draw

public void draw(java.awt.Graphics2D g)
Description copied from class: Plot
Draws this plot.

Specified by:
draw in class Plot
Parameters:
g - the graphics object onto which to draw this plot