public class Plotter extends DataVisualizer
| Modifier and Type | Field and Description |
|---|---|
(package private) JFrame |
frame |
(package private) Integer |
history |
(package private) boolean |
keepOpen |
(package private) Keys |
keys |
(package private) static org.slf4j.Logger |
log |
(package private) PlotPanel |
plotPanel |
(package private) Long |
processed |
(package private) String |
title |
(package private) Thread |
updateThread |
(package private) Double |
ymax |
(package private) Double |
ymin |
(package private) String |
yrange |
height, updateInterval, widthconditioncontext| Constructor and Description |
|---|
Plotter() |
| Modifier and Type | Method and Description |
|---|---|
void |
finish() |
Integer |
getHistory() |
Keys |
getKeys() |
String |
getTitle() |
String |
getYrange() |
void |
init(ProcessContext ctx) |
boolean |
isKeepOpen() |
Data |
processMatchingData(Data data) |
void |
setHistory(Integer history) |
void |
setKeepOpen(boolean keepOpen) |
void |
setKeys(Keys keys) |
void |
setTitle(String title) |
void |
setYrange(String yrange) |
getHeight, getUpdateInterval, getWidth, setHeight, setUpdateInterval, setWidthgetCondition, matches, process, setConditionresetStatestatic org.slf4j.Logger log
JFrame frame
final PlotPanel plotPanel
Integer history
Keys keys
boolean keepOpen
Double ymin
Double ymax
String title
String yrange
Long processed
Thread updateThread
public String getTitle()
@Parameter(required=false, description="The title of the plot-window.") public void setTitle(String title)
title - the title to setpublic String getYrange()
@Parameter(required=false, description="The range of the Y-axis to be plotted. Format is \'min;max\' (without quotes, min/max need to be numbers)") public void setYrange(String yrange)
yrange - the yrange to setpublic Keys getKeys()
@Parameter(required=false, description="The attributes/features to be plotted (non-numerical features will be ignored)") public void setKeys(Keys keys)
keys - the keys to setpublic boolean isKeepOpen()
public void setKeepOpen(boolean keepOpen)
keepOpen - the keepOpen to setpublic Integer getHistory()
@Parameter(required=false, description="The number of samples displayed in the plot (i.e. the \'window size\' of the plot)") public void setHistory(Integer history)
history - the history to setpublic void init(ProcessContext ctx) throws Exception
init in interface StatefulProcessorinit in class AbstractProcessorExceptionStatefulProcessor.init(stream.ProcessContext)public void finish()
throws Exception
finish in interface StatefulProcessorfinish in class AbstractProcessorExceptionStatefulProcessor.finish()public Data processMatchingData(Data data)
processMatchingData in class DataVisualizerConditionedProcessor.processMatchingData(stream.Data)Copyright © 2017. All rights reserved.