net.talvi.puffinplot.plots
Class DemagTable

java.lang.Object
  extended by net.talvi.puffinplot.plots.Plot
      extended by net.talvi.puffinplot.plots.DemagTable

public class DemagTable
extends Plot

A table showing some of the demagnetization data. At present the columns are: treatment step, declination, inclination, intensity, magnetic susceptibility. In the future they may become configurable.


Field Summary
 
Fields inherited from class net.talvi.puffinplot.plots.Plot
DEFAULT_PLOT_POSITIONS, dimensions, params, PLOT_POINT_SIZE
 
Constructor Summary
DemagTable(GraphDisplay parent, PlotParams params, java.util.prefs.Preferences prefs)
          Creates a data table with the supplied parameters
 
Method Summary
 void draw(java.awt.Graphics2D g)
          Draws the table.
 java.lang.String getName()
          Returns the internal plot name for this table.
 java.lang.String getNiceName()
          Returns the user-friendly plot name for this table.
 
Methods inherited from class net.talvi.puffinplot.plots.Plot
addPoint, addSampleClickListener, applyTextAttributes, clearPoints, cropRectangle, drawPoints, getDashedStroke, getDimensions, getDimensionsAsString, getFontSize, getMargin, 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
 

Constructor Detail

DemagTable

public DemagTable(GraphDisplay parent,
                  PlotParams params,
                  java.util.prefs.Preferences prefs)
Creates a data table with the supplied parameters

Parameters:
parent - the graph display containing the table
params - the parameters of the table
prefs - the preferences containing the table configuration
Method Detail

getName

public java.lang.String getName()
Returns the internal plot name for this table.

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

getNiceName

public java.lang.String getNiceName()
Returns the user-friendly plot name for this table.

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

draw

public void draw(java.awt.Graphics2D g)
Draws the table.

Specified by:
draw in class Plot
Parameters:
g - the graphics object to which to draw the table