public final class Plot extends Object implements hep.aida.IDataPointSet
commitRefresh()
replaces current data point set with the updated one, creating the latter if it has not been
set since the previous call to refresh().
Methods modifying data sets of the Plot instance are synchronized on its monitor.| Constructor and Description |
|---|
Plot(PlotData data,
TimeWindow timeWindow,
DataChannelHandler channel) |
Plot(PlotData data,
TimeWindow timeWindow,
DataChannelHandler channel,
org.freehep.jas.services.PlotPage page,
org.freehep.jas.services.PlotRegion region) |
| Modifier and Type | Method and Description |
|---|---|
hep.aida.IDataPoint |
addPoint() |
void |
addPoint(hep.aida.IDataPoint idp) |
hep.aida.IAnnotation |
annotation() |
void |
clear() |
boolean |
commitRefresh()
Replaces current plot data with updated plot data, creating the latter if necessary.
|
int |
dimension() |
DataChannelHandler |
getChannel()
Returns data channel used to populate this dataset.
|
double |
getGranularity()
Returns average time interval between points in this dataset, in milliseconds.
|
org.freehep.jas.services.PlotPage |
getPage()
Returns the page where this dataset is plotted.
|
org.freehep.jas.services.PlotRegion |
getRegion()
Returns the region where this dataset is plotted.
|
long |
getTimeStamp()
Returns the time of construction or last call to refresh(...).
|
TimeWindow |
getTimeWindow()
Returns time window associated with this dataset.
|
void |
hideExtra() |
double |
lowerExtent(int i) |
hep.aida.IDataPoint |
point(int i) |
void |
refresh(PlotData data)
Sets updated data for this plot.
|
void |
refresh(PlotData data,
long begin,
long end)
Sets updated data for this plot.
|
void |
removePoint(int i) |
void |
scale(double d) |
void |
scaleErrors(double d) |
void |
scaleValues(double d) |
void |
setCoordinate(int i,
double[] doubles,
double[] doubles1) |
void |
setCoordinate(int i,
double[] doubles,
double[] doubles1,
double[] doubles2) |
void |
setPage(org.freehep.jas.services.PlotPage page)
Associates a page with this dataset.
|
void |
setRegion(org.freehep.jas.services.PlotRegion region)
Associates a region with this dataset.
|
void |
setTimeRange(long begin,
long end)
Sets the range of this data point set along time axis.
|
void |
setTitle(String string) |
void |
showExtra() |
int |
size() |
String |
title() |
double |
upperExtent(int i) |
public Plot(PlotData data, TimeWindow timeWindow, DataChannelHandler channel)
public Plot(PlotData data, TimeWindow timeWindow, DataChannelHandler channel, org.freehep.jas.services.PlotPage page, org.freehep.jas.services.PlotRegion region)
public long getTimeStamp()
public TimeWindow getTimeWindow()
public DataChannelHandler getChannel()
public org.freehep.jas.services.PlotPage getPage()
public void setPage(org.freehep.jas.services.PlotPage page)
public org.freehep.jas.services.PlotRegion getRegion()
public void setRegion(org.freehep.jas.services.PlotRegion region)
public void setTimeRange(long begin,
long end)
lowerExtent(int) and
upperExtent(int) methods. Setting the time range does not affect TimeWindow
object associated with this data point set.begin - Beginning of the range in milliseconds.end - End of the range in milliseconds.public double getGranularity()
public boolean commitRefresh()
public void refresh(PlotData data)
public void refresh(PlotData data, long begin, long end)
public void showExtra()
public void hideExtra()
public hep.aida.IAnnotation annotation()
annotation in interface hep.aida.IDataPointSetpublic String title()
title in interface hep.aida.IDataPointSetpublic void setTitle(String string) throws IllegalArgumentException
setTitle in interface hep.aida.IDataPointSetIllegalArgumentExceptionpublic int dimension()
dimension in interface hep.aida.IDataPointSetpublic void clear()
clear in interface hep.aida.IDataPointSetpublic int size()
size in interface hep.aida.IDataPointSetpublic hep.aida.IDataPoint point(int i)
point in interface hep.aida.IDataPointSetpublic void setCoordinate(int i,
double[] doubles,
double[] doubles1)
throws IllegalArgumentException
setCoordinate in interface hep.aida.IDataPointSetIllegalArgumentExceptionpublic void setCoordinate(int i,
double[] doubles,
double[] doubles1,
double[] doubles2)
throws IllegalArgumentException
setCoordinate in interface hep.aida.IDataPointSetIllegalArgumentExceptionpublic hep.aida.IDataPoint addPoint()
throws RuntimeException
addPoint in interface hep.aida.IDataPointSetRuntimeExceptionpublic void addPoint(hep.aida.IDataPoint idp)
throws IllegalArgumentException
addPoint in interface hep.aida.IDataPointSetIllegalArgumentExceptionpublic void removePoint(int i)
throws IllegalArgumentException
removePoint in interface hep.aida.IDataPointSetIllegalArgumentExceptionpublic double lowerExtent(int i)
throws IllegalArgumentException
lowerExtent in interface hep.aida.IDataPointSetIllegalArgumentExceptionpublic double upperExtent(int i)
throws IllegalArgumentException
upperExtent in interface hep.aida.IDataPointSetIllegalArgumentExceptionpublic void scale(double d)
throws IllegalArgumentException
scale in interface hep.aida.IDataPointSetIllegalArgumentExceptionpublic void scaleValues(double d)
throws IllegalArgumentException
scaleValues in interface hep.aida.IDataPointSetIllegalArgumentExceptionpublic void scaleErrors(double d)
throws IllegalArgumentException
scaleErrors in interface hep.aida.IDataPointSetIllegalArgumentExceptionCopyright © 2015 LSST. All rights reserved.