|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.splat.iface.XGraphicsRange
uk.ac.starlink.splat.iface.StatsRange
public class StatsRange
StatsRange extends the XGraphicsRange
class to add four or five new
rows that contain statistics values for the spectrum being drawn over (the
current spectrum of a PlotControl
), under the supervision of
a StatsFrame
instance.
Field Summary |
---|
Fields inherited from class uk.ac.starlink.splat.iface.XGraphicsRange |
---|
colour, constrain, drawActions, figure, figureListener, listener, model, pane, plot |
Constructor Summary | |
---|---|
StatsRange(StatsFrame statsFrame,
StatsRangesModel model,
Color colour,
boolean constrain,
double[] range)
Create a range interactively or non-interactively. |
Method Summary | |
---|---|
void |
figureChanged(uk.ac.starlink.diva.FigureChangedEvent e)
Sent when the figure is changed (i.e. |
void |
figureCreated(uk.ac.starlink.diva.FigureChangedEvent e)
Sent when the figure is created. |
double |
getFlux()
Get the flux estimate of the spectrum in this range. |
double |
getMax()
Get maximum value of spectrum in this range. |
double |
getMean()
Get mean value of the spectrum in this range. |
double |
getMin()
Get minimum value of spectrum in this range. |
double |
getStandardDeviation()
Get standard deviation of the spectrum in this range. |
double |
getTSYS()
Get the TSYS value. |
protected void |
setControl(PlotControl control)
Set the PlotControl instance to use. |
void |
updateStats()
Make the current statistics match the current range for the current spectrum shown in the assocated plot. |
Methods inherited from class uk.ac.starlink.splat.iface.XGraphicsRange |
---|
createFigure, createFromRange, delete, figureRemoved, getRange, isFigure, registerFigure, setPlot, setRange, startInteraction, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StatsRange(StatsFrame statsFrame, StatsRangesModel model, Color colour, boolean constrain, double[] range)
statsRange
- StatsFrame with a PlotControl that is to display the
range.model
- StatsRangesModel model that arranges to have the
properties of the range displayed (may be null).colour
- the colour of any figures.constrain
- whether figures are fixed to move only in X and have
initial size of the full Y dimension of plot.range
- a pair of doubles containing the range (in physical
coordinates) to be used. Set null if the figure is to be
created interactively.Method Detail |
---|
protected void setControl(PlotControl control)
control
- The PlotControl instance.public void updateStats()
public double getMean()
public double getStandardDeviation()
public double getMin()
public double getMax()
public double getFlux()
public double getTSYS()
public void figureCreated(uk.ac.starlink.diva.FigureChangedEvent e)
figureCreated
in interface uk.ac.starlink.diva.FigureListener
figureCreated
in class XGraphicsRange
public void figureChanged(uk.ac.starlink.diva.FigureChangedEvent e)
figureChanged
in interface uk.ac.starlink.diva.FigureListener
figureChanged
in class XGraphicsRange
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |