public final class TrendPlotter extends Object implements org.freehep.jas.services.Plotter, Persistable
Trend objects.
All methods should be called on EDT.| Modifier and Type | Class and Description |
|---|---|
static class |
TrendPlotter.Descriptor |
static class |
TrendPlotter.Style |
| Modifier and Type | Field and Description |
|---|---|
static String |
CATEGORY |
static String |
NO_META
Option to not plot any off-point metadata.
|
| Constructor and Description |
|---|
TrendPlotter() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all plotted data and resets properties.
|
List<Object> |
getData()
Returns the list of trends displayed by this plotter.
|
TrendPlotter.Descriptor |
getDescriptor()
Returns a reference to the descriptor maintained by this component.
|
EnumSet<Meta> |
getMeta() |
org.freehep.jas.services.PlotRegion |
getRegion() |
List<Trend> |
getTrends()
Lists trends currently displayed by this plotter.
|
boolean |
isActive()
Returns
true if this plotter is currently managed by the graphical console. |
boolean |
isEmpty()
Returns
true if this plotter is empty. |
void |
plot(List<Trend> trendList,
int mode)
Plot the specified trends.
|
void |
plot(Object timeHistory,
int mode)
Plots a trend.
|
void |
plot(Object timeHistory,
int mode,
Object style,
String options)
Plots a trend.
|
void |
remove(Object data)
Not implemented.
|
void |
restore(Persistable.Descriptor d)
Restores this component to the state specified by the provided JavaBean.
|
TrendPlotter.Descriptor |
save()
Returns JavaBean describing the current state of this component.
|
void |
setMeta(EnumSet<Meta> extras) |
void |
setRegion(org.freehep.jas.services.PlotRegion region) |
void |
toFront()
Makes sure the page and region that contain this plotter are visible and selected.
|
Component |
viewable()
Returns the graphic component of this plotter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitedit, getCategory, getPath, restorepublic static String CATEGORY
public static final String NO_META
public org.freehep.jas.services.PlotRegion getRegion()
public void setRegion(org.freehep.jas.services.PlotRegion region)
public boolean isActive()
true if this plotter is currently managed by the graphical console.
The plotter's viewable component does not have to be visible for the plotter to be active.True if this plotter is active.public List<Trend> getTrends()
public boolean isEmpty()
true if this plotter is empty.true if this plotter does not display any trends.public void plot(Object timeHistory, int mode)
plot(Object timeHistory, int mode, Object style, String options) for details.plot in interface org.freehep.jas.services.PlottertimeHistory - An instance of Trend to be plotted.mode - Plotter.NORMAL or Plotter.OVERLAY.public void plot(List<Trend> trendList, int mode)
trendList - The list of trends to plot.mode - Plotter.NORMAL or Plotter.OVERLAY.
See plot(Object timeHistory, int mode, Object style, String options) for details.public void plot(Object timeHistory, int mode, Object style, String options)
If a trend is plotted in NORMAL mode, the existing content of this plotter is erased and all properties are reset. In OVERLAY mode, the existing content and custom properties are retained except that any datasets representing off-point metadata are removed.
plot in interface org.freehep.jas.services.PlottertimeHistory - An instance of Trend to be plotted.mode - Plotter.NORMAL or Plotter.OVERLAY.style - Ignored at the moment.options - Comma-separated list of options:public void remove(Object data)
remove in interface org.freehep.jas.services.Plotterdata - Trend to remove.public void clear()
clear in interface org.freehep.jas.services.Plotterpublic Component viewable()
viewable in interface org.freehep.jas.services.Plotterpublic List<Object> getData()
getData in interface org.freehep.jas.services.PlotterTrend instances displayed by this plotter.public void toFront()
public TrendPlotter.Descriptor getDescriptor()
Persistablenull, and
that any properties set on the descriptor returned by this method are reflected by
descriptors subsequently returned by save(), unless modified between the two calls.getDescriptor in interface Persistablepublic TrendPlotter.Descriptor save()
PersistablegetDescriptor().save in interface Persistablesave in interface Savablenull if no state information needs to be saved.public void restore(Persistable.Descriptor d)
Persistablerestore in interface Persistabled - JavaBean encapsulating the state.Copyright © 2023 LSST. All rights reserved.