Package adams.gui.menu
Class AbstractClassifierBasedGeneticAlgorithmWizard.PerformancePlot
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- adams.gui.core.BasePanel
-
- adams.gui.visualization.core.PaintablePanel
-
- adams.gui.visualization.container.DataContainerPanel<T,M>
-
- adams.gui.visualization.container.DataContainerPanelWithSidePanel<T,M>
-
- adams.gui.visualization.container.DataContainerPanelWithContainerList<XYSequence,XYSequenceContainerManager,XYSequenceContainer>
-
- adams.gui.visualization.sequence.XYSequencePanel
-
- adams.flow.sink.sequenceplotter.SequencePlotterPanel
-
- adams.gui.menu.AbstractClassifierBasedGeneticAlgorithmWizard.PerformancePlot
-
- All Implemented Interfaces:
CleanUpHandler
,StatusMessageHandler
,DatabaseConnectionHandler
,DatabaseConnectionProvider
,DatabaseConnectionUser
,DatabaseConnectionChangeListener
,GeneticFitnessChangeListener
,PopupMenuCustomizer<MouseEvent>
,DataChangeListener
,PaintListener
,ScriptingEngineHandler
,SendToActionSupporter
,ContainerListManager<XYSequenceContainerManager>
,ContainerListPopupMenuSupplier<XYSequenceContainerManager,XYSequenceContainer>
,PaintletManager
,TipTextCustomizer
,PopupMenuCustomizer
,ImageObserver
,MenuContainer
,Serializable
,EventListener
,Accessible
- Enclosing class:
- AbstractClassifierBasedGeneticAlgorithmWizard
public static class AbstractClassifierBasedGeneticAlgorithmWizard.PerformancePlot extends SequencePlotterPanel implements GeneticFitnessChangeListener
For plotting the performance of the genetic algorithm.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
-
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractClassifierBasedGeneticAlgorithm
m_Owner
the owner.-
Fields inherited from class adams.flow.sink.sequenceplotter.SequencePlotterPanel
m_ErrorPaintlet, m_MarkerContainerManager, m_MarkerPaintlet, m_MouseClickAction, m_OverlayContainerManager, m_OverlayPaintlet, m_Selection, m_SelectionEnabled
-
Fields inherited from class adams.gui.visualization.sequence.XYSequencePanel
m_AdjustToVisibleData, m_AllowResize, m_CoordinatesPaintlet, m_ExportDialog, m_FileChooser, m_Undo, m_ViewDialogs, m_XYSequencePaintlet
-
Fields inherited from class adams.gui.visualization.container.DataContainerPanelWithContainerList
m_ContainerList, m_ContainerListCustomizers, m_PlotCustomizers
-
Fields inherited from class adams.gui.visualization.container.DataContainerPanelWithSidePanel
m_FirstRevalidate, m_SidePanel, m_SplitPane
-
Fields inherited from class adams.gui.visualization.container.DataContainerPanel
m_DatabaseConnection, m_DataChangeListeners, m_Manager, m_PanelProperties, m_PlotPanel, m_PlotWrapperPanel, m_StatusMessageHandler, m_Title
-
Fields inherited from class adams.gui.visualization.core.PaintablePanel
m_Paintlets
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
-
Constructor Summary
Constructors Constructor Description PerformancePlot(String title, AbstractClassifierBasedGeneticAlgorithm owner)
Initializes plot.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fitnessChanged(GeneticFitnessChangeEvent e)
Adds the fitness measure to the plot.protected AxisPanelOptions
getDefaultAxisX()
Returns the setup for the X axis.protected AxisPanelOptions
getDefaultAxisY()
Returns the setup for the Y axis.AbstractClassifierBasedGeneticAlgorithm
getOwner()
Returns the current owner.protected void
initGUI()
Initializes the widgets.void
setOwner(AbstractClassifierBasedGeneticAlgorithm value)
Sets the owner for the plot.-
Methods inherited from class adams.flow.sink.sequenceplotter.SequencePlotterPanel
clearSelection, dataChanged, getColorProvider, getErrorPaintlet, getMarkerContainerManager, getMarkerPaintlet, getMouseClickAction, getOverlayColorProvider, getOverlayContainerManager, getOverlayPaintlet, getSelection, initialize, isSelectionEnabled, newContainerManager, newMarkerContainerManager, newOverlayContainerManager, setAntiAliasingEnabled, setColorProvider, setErrorPaintlet, setMarkerPaintlet, setMouseClickAction, setOverlayColorProvider, setOverlayPaintlet, setSelectionEnabled, toMarkerIndices, toOverlayIndices
-
Methods inherited from class adams.gui.visualization.sequence.XYSequencePanel
addUndoPoint, canHandleFixedLabels, canPaint, canRedo, canUndo, cleanUp, createContainerList, getAdjustToVisibleData, getAllowResize, getContainerListPopupMenu, getContainerPaintlet, getDataPaintlet, getDefaultDatabaseConnection, getScriptingEngine, getSequenceManager, getState, getUndo, isAntiAliasingEnabled, isUndoSupported, prepareUpdate, processTipText, redo, resizePlot, saveSequence, saveVisible, saveVisibleDataPoints, saveVisibleSequences, setAdjustToVisibleData, setAllowResize, setDataPaintlet, setState, setUndo, showResizeDialog, storeColorInReport, storeValueInReport, supportsStoreColorInReport, supportsStoreValueInReport, undo, viewSequence
-
Methods inherited from class adams.gui.visualization.container.DataContainerPanelWithContainerList
customizePopupMenu, getActualSelectedContainerIndices, getContainerList, getSelectedContainerIndices, getTableModelContainers, getTableModelIndices, processAction, showNotes
-
Methods inherited from class adams.gui.visualization.container.DataContainerPanelWithSidePanel
getDividerLocation, getSidePanel, isSidePanelVisible, revalidate, setDividerLocation, setDividerLocation, setSidePanelVisible
-
Methods inherited from class adams.gui.visualization.container.DataContainerPanel
databaseConnectionStateChanged, finishInit, getBackgroundColor, getContainerManager, getDatabaseConnection, getForegroundColor, getPlot, getProperties, getSendToClasses, getSendToItem, getStatusMessageHandler, getTitle, hasSendToItem, reset, setBackgroundColor, setContainerManager, setDatabaseConnection, setForegroundColor, setStatusMessageHandler, setTitle, showStatus
-
Methods inherited from class adams.gui.visualization.core.PaintablePanel
addPaintlet, check, paint, painted, paintlets, performUpdate, postUpdate, printAll, removePaintlet, update
-
Methods inherited from class adams.gui.core.BasePanel
afterHide, afterShow, beforeHide, beforeShow, closeParent, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, initFileChooser, main, printErrorMessage, printException, saveComponent, setEnabledCascade, setEnabledCascade, setParentTitle, setVisible
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, 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, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, 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, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, 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, validateTree
-
Methods inherited from class java.awt.Component
action, 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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.gui.event.PaintListener
painted
-
-
-
-
Field Detail
-
m_Owner
protected AbstractClassifierBasedGeneticAlgorithm m_Owner
the owner.
-
-
Constructor Detail
-
PerformancePlot
public PerformancePlot(String title, AbstractClassifierBasedGeneticAlgorithm owner)
Initializes plot.- Parameters:
title
- the titleowner
- the dark lord setup
-
-
Method Detail
-
setOwner
public void setOwner(AbstractClassifierBasedGeneticAlgorithm value)
Sets the owner for the plot.- Parameters:
value
- the owner
-
getOwner
public AbstractClassifierBasedGeneticAlgorithm getOwner()
Returns the current owner.- Returns:
- the owner, null if none set
-
initGUI
protected void initGUI()
Initializes the widgets.- Overrides:
initGUI
in classSequencePlotterPanel
-
getDefaultAxisX
protected AxisPanelOptions getDefaultAxisX()
Returns the setup for the X axis.- Returns:
- the setup
-
getDefaultAxisY
protected AxisPanelOptions getDefaultAxisY()
Returns the setup for the Y axis.- Returns:
- the setup
-
fitnessChanged
public void fitnessChanged(GeneticFitnessChangeEvent e)
Adds the fitness measure to the plot.- Specified by:
fitnessChanged
in interfaceGeneticFitnessChangeListener
- Parameters:
e
- the event
-
-