net.talvi.puffinplot.plots
Class DemagPlot

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

public class DemagPlot
extends Plot

Demagnetization plot. This is a simple biplot with demagnetization step on the x axis and magnetic moment intensity on the y axis. When magnetic susceptibility data is available, it is also overlaid on the plot.


Field Summary
 
Fields inherited from class net.talvi.puffinplot.plots.Plot
DEFAULT_PLOT_POSITIONS, dimensions, params, PLOT_POINT_SIZE
 
Constructor Summary
DemagPlot(GraphDisplay parent, PlotParams params, java.util.prefs.Preferences prefs)
          Creates a demagnetization 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.
 java.lang.String getNiceName()
          Returns this plot's user-friendly name.
 
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

DemagPlot

public DemagPlot(GraphDisplay parent,
                 PlotParams params,
                 java.util.prefs.Preferences prefs)
Creates a demagnetization plot with the supplied parameters

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

getName

public java.lang.String getName()
Returns this plot's internal name.

Specified by:
getName in class Plot
Returns:
this plot's internal name

getNiceName

public java.lang.String getNiceName()
Returns this plot's user-friendly name.

Overrides:
getNiceName in class Plot
Returns:
this plot's user-friendly 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