|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
jas.hist.JASHistData
public abstract class JASHistData
This class is returned whenever a DataSource is added to a JASHist It supports making the data visible/invisible, and controlling the style (color etc) in which the data is shown.
Field Summary | |
---|---|
protected Overlay |
overlay
|
static int |
YAXIS_LEFT
Y Axis on the left of the data area |
static int |
YAXIS_RIGHT
Y Axis on the right of the data area |
Constructor Summary | |
---|---|
JASHistData()
Only used for object serialization, do not call |
Method Summary | |
---|---|
abstract DataSource |
getDataSource()
Get the DataSource associated with this JASHistData |
DataSource |
getFittableDataSource()
Get a DataSource suitable for using as the source for fit operations. |
String |
getLegendText()
|
Normalizer |
getNormalization()
|
boolean |
getShowStatistics()
|
abstract JASHistStyle |
getStyle()
Get the JASHistStyle associated with this DataSource |
abstract String |
getTitle()
Get the title of the associated DataSource |
int |
getYAxis()
Get the y axis against which this data is plotted |
boolean |
isShowing()
Find out if this DayaSource is visible |
void |
setLegendText(String text)
Set the text for the legene entry corresponding to this data item |
void |
setNormalization(Normalizer factor)
Set the normalization for this dataset. |
void |
setShowing(boolean value)
Equivalent to show(boolean) |
void |
setShowLegend(boolean show)
Controls whether statistics associated with this datasource should be shown |
void |
setShowStatistics(boolean show)
Controls whether statistics associated with this datasource should be shown |
abstract void |
setStyle(JASHistStyle style)
Set a style for this data. |
void |
setXBounds(double xmin,
double xmax)
|
void |
setYAxis(int i)
Sets which Y axis the data is plotted against. |
void |
show(boolean show)
Controls the visibility of the associated DataSource Only listens to changes in DataSources if visible |
String |
toString()
|
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, wait, wait, wait |
Methods inherited from interface java.util.Observer |
---|
update |
Field Detail |
---|
protected Overlay overlay
public static final int YAXIS_LEFT
public static final int YAXIS_RIGHT
Constructor Detail |
---|
public JASHistData()
Method Detail |
---|
public void show(boolean show)
show
- true if the DataSource should be visiblepublic void setShowStatistics(boolean show)
public boolean getShowStatistics()
public void setShowLegend(boolean show)
public abstract DataSource getDataSource()
public DataSource getFittableDataSource()
getDataSource()
public abstract String getTitle()
public abstract void setStyle(JASHistStyle style)
style
- The style to be set
IllegalArgumentException
- If the style is not of the approriate typepublic abstract JASHistStyle getStyle()
public void setYAxis(int i)
axis
- Either YAXIS_LEFT or YAXIS_RIGHTpublic int getYAxis()
public void setShowing(boolean value)
value
- true if the corresponding DataSource should be visiblepublic boolean isShowing()
public String toString()
toString
in class Object
public void setLegendText(String text)
public String getLegendText()
public void setNormalization(Normalizer factor)
factor
- The normalization to apply, or null for no normalizationpublic Normalizer getNormalization()
public void setXBounds(double xmin, double xmax)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |