jas.hist.test
Class TestCustomOverlay
java.lang.Object
|
+--java.util.Observable
|
+--jas.hist.test.TestCustomOverlay
- All Implemented Interfaces:
- DataSource, HasStyle, java.lang.Runnable, ScatterPlotSource
- public class TestCustomOverlay
- extends java.util.Observable
- implements ScatterPlotSource, HasStyle, java.lang.Runnable
Field Summary |
protected double[] |
x
|
protected double[] |
y
|
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
protected double[] x
y
protected double[] y
TestCustomOverlay
public TestCustomOverlay()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
getStyle
public JASHistStyle getStyle()
- Description copied from interface:
HasStyle
- This method is called by the plot to determine what style to be used for a plot.
It is the programmers responsibility to return the correct subclass of JASHistStyle
corresponding to the type of data being implemented by the DataSource.
- Specified by:
getStyle
in interface HasStyle
- Following copied from interface:
jas.hist.HasStyle
- Returns:
- The style to be used, or null to use the default style.
- See Also:
JASHist1DHistogramStyle
,
JASHist2DHistogramStyle
,
JASHistScatterPlotStyle
startEnumeration
public ScatterEnumeration startEnumeration(double xMin,
double xMax,
double yMin,
double yMax)
- Description copied from interface:
ScatterPlotSource
- Starts the enumeration of points from the beginning, and the enumeration
will include only points in the given range.
- Specified by:
startEnumeration
in interface ScatterPlotSource
startEnumeration
public ScatterEnumeration startEnumeration()
- Description copied from interface:
ScatterPlotSource
- Starts the enumeration of points from the beginning, and the enumeration
will include all points stored in the partition.
- Specified by:
startEnumeration
in interface ScatterPlotSource
getXMin
public double getXMin()
- Specified by:
getXMin
in interface ScatterPlotSource
getXMax
public double getXMax()
- Specified by:
getXMax
in interface ScatterPlotSource
getYMin
public double getYMin()
- Specified by:
getYMin
in interface ScatterPlotSource
getYMax
public double getYMax()
- Specified by:
getYMax
in interface ScatterPlotSource
clearChanges
public void clearChanges()
getXAxisType
public int getXAxisType()
- Description copied from interface:
ScatterPlotSource
- Currently we only support DATE and DOUBLE types
- Specified by:
getXAxisType
in interface ScatterPlotSource
getYAxisType
public int getYAxisType()
- Description copied from interface:
ScatterPlotSource
- Currently we only support DOUBLE
- Specified by:
getYAxisType
in interface ScatterPlotSource
getTitle
public java.lang.String getTitle()
- Description copied from interface:
DataSource
- Return the caption to be used in the legend for this data.
- Specified by:
getTitle
in interface DataSource