@KFStep(name="StripChart", category="Visualization", toolTipText="Plot streaming data", iconPath="weka/gui/knowledgeflow/icons/StripChart.gif") public class StripChart extends BaseStep
Modifier and Type | Class and Description |
---|---|
static interface |
StripChart.PlotNotificationListener
StripChartInteractiveView implements this in order to receive data points.
|
Constructor and Description |
---|
StripChart() |
Modifier and Type | Method and Description |
---|---|
void |
addPlotNotificationListener(StripChart.PlotNotificationListener listener)
Add a plot notification listener
|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
java.util.Map<java.lang.String,java.lang.String> |
getInteractiveViewers()
When running in a graphical execution environment a step can make one or
more popup Viewer components available.
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
int |
getRefreshFreq()
Get the refresh frequency
|
int |
getRefreshWidth()
Get how many pixels to shift the plot by every time a point is plotted
|
int |
getXLabelFreq()
Get the x label frequency
|
void |
processIncoming(Data data)
Process an incoming data payload (if the step accepts incoming connections)
|
java.lang.String |
refreshFreqTipText()
GUI Tip text
|
java.lang.String |
refreshWidthTipText()
GUI Tip text
|
void |
removePlotNotificationListener(StripChart.PlotNotificationListener l)
Remove a plot notification listener
|
void |
setRefreshFreq(int freq)
Set how often (in x axis points) to refresh the display
|
void |
setRefreshWidth(int width)
Set how many pixels to shift the plot by every time a point is plotted
|
void |
setXLabelFreq(int freq)
Set the x label frequency
|
void |
stepInit()
Initialize the step.
|
java.lang.String |
xLabelFreqTipText()
GUI Tip text
|
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stop
public java.lang.String xLabelFreqTipText()
public int getXLabelFreq()
public void setXLabelFreq(int freq)
freq
- the x label frequencypublic java.lang.String refreshFreqTipText()
String
valuepublic void setRefreshFreq(int freq)
freq
- an int
valuepublic int getRefreshFreq()
int
valuepublic java.lang.String refreshWidthTipText()
String
valuepublic void setRefreshWidth(int width)
width
- the number of pixels to shift the plot bypublic int getRefreshWidth()
public void stepInit() throws WekaException
Step
WekaException
- if a problem occurs during initializationpublic void processIncoming(Data data) throws WekaException
processIncoming
in interface BaseStepExtender
processIncoming
in interface Step
processIncoming
in class BaseStep
data
- the data to processWekaException
- if a problem occurspublic java.util.List<java.lang.String> getIncomingConnectionTypes()
public void addPlotNotificationListener(StripChart.PlotNotificationListener listener)
listener
- the listener to be notifiedpublic void removePlotNotificationListener(StripChart.PlotNotificationListener l)
l
- the listener to removepublic java.util.List<java.lang.String> getOutgoingConnectionTypes()
public java.util.Map<java.lang.String,java.lang.String> getInteractiveViewers()
getInteractiveViewers
in interface Step
getInteractiveViewers
in class BaseStep