public class StripChartInteractiveView extends BaseInteractiveViewer implements StripChart.PlotNotificationListener
| Modifier and Type | Class and Description |
|---|---|
protected class |
StripChartInteractiveView.LegendPanel
Class providing a panel for the legend.
|
protected static class |
StripChartInteractiveView.StripChartInteractiveViewDefaults
Class defining default settings for this viewer
|
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
m_BackgroundColor
the background color.
|
protected java.awt.Color[] |
m_colorList
default colours for colouring lines
|
protected int |
m_iheight
Width and height of the off screen image.
|
protected int |
m_iwidth |
protected java.awt.Font |
m_labelFont
Font to use on the plot
|
protected java.awt.FontMetrics |
m_labelMetrics
Font metrics for string placement calculations
|
protected StripChartInteractiveView.LegendPanel |
m_legendPanel
Holds the legend
|
protected java.awt.Color |
m_LegendPanelBorderColor
the color of the legend panel's border.
|
protected java.util.List<java.lang.String> |
m_legendText
Holds the legend entries
|
protected double |
m_max
Max value for the y axis.
|
protected double |
m_min
Min value for the y axis.
|
protected double |
m_oldMax |
protected double |
m_oldMin |
protected java.awt.Image |
m_osi
The off screen image for rendering to.
|
protected weka.gui.knowledgeflow.steps.StripChartInteractiveView.StripPlotter |
m_plotPanel |
protected weka.gui.knowledgeflow.steps.StripChartInteractiveView.ScalePanel |
m_scalePanel
the scale.
|
protected int |
m_xCount
data point count
|
protected boolean |
m_yScaleUpdate
Scale update requested.
|
m_buttonHolder, m_closeBut, m_mainPerspective, m_parent, m_steplistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
StripChartInteractiveView() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptDataPoint(double[] dataPoint)
Accept and process a data point
|
void |
applySettings(Settings settings)
Apply settings from the supplied settings object
|
void |
closePressed()
Called when the close button is pressed
|
Defaults |
getDefaultSettings()
Get the default settings for this viewer
|
java.lang.String |
getViewerName()
Get the name of this viewer
|
void |
init()
Initialize the viewer
|
void |
nowVisible()
Called by the KnowledgeFlow application once the enclosing JFrame is
visible
|
protected double[] |
preProcessDataPoint(double[] dataPoint)
Pre-process a data point
|
void |
setLegend(java.util.List<java.lang.String> legendEntries,
double min,
double max)
Set the entries for the legend
|
addButton, getMainKFPerspective, getSettings, getStep, setMainKFPerspective, setParentWindow, setStepgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected java.awt.Color[] m_colorList
protected java.awt.Color m_BackgroundColor
protected java.awt.Color m_LegendPanelBorderColor
protected weka.gui.knowledgeflow.steps.StripChartInteractiveView.StripPlotter m_plotPanel
protected final weka.gui.knowledgeflow.steps.StripChartInteractiveView.ScalePanel m_scalePanel
protected transient java.awt.Image m_osi
protected int m_iheight
protected int m_iwidth
protected double m_max
protected double m_min
protected boolean m_yScaleUpdate
protected double m_oldMax
protected double m_oldMin
protected int m_xCount
protected final java.awt.Font m_labelFont
protected java.awt.FontMetrics m_labelMetrics
protected final StripChartInteractiveView.LegendPanel m_legendPanel
protected java.util.List<java.lang.String> m_legendText
public void init()
init in interface StepInteractiveViewerpublic void closePressed()
closePressed in class BaseInteractiveViewerpublic void nowVisible()
nowVisible in interface StepInteractiveViewernowVisible in class BaseInteractiveViewerpublic java.lang.String getViewerName()
getViewerName in interface StepInteractiveViewerpublic void setLegend(java.util.List<java.lang.String> legendEntries,
double min,
double max)
setLegend in interface StripChart.PlotNotificationListenerlegendEntries - a list of legend entriesmin - initial minimum for the series being plottedmax - initial maximum for the series being plottedprotected double[] preProcessDataPoint(double[] dataPoint)
dataPoint - the data point to processpublic void acceptDataPoint(double[] dataPoint)
acceptDataPoint in interface StripChart.PlotNotificationListenerdataPoint - the data point to processpublic Defaults getDefaultSettings()
getDefaultSettings in class BaseInteractiveViewerpublic void applySettings(Settings settings)
applySettings in class BaseInteractiveViewersettings - the settings object that might (or might not) have been