Class AbstractToolWithParameterPanel
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.gui.visualization.object.tools.AbstractTool
-
- adams.gui.visualization.object.tools.AbstractToolWithParameterPanel
-
- All Implemented Interfaces:
CleanUpHandler
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,SizeOfHandler
,CustomizableTool
,Tool
,Serializable
public abstract class AbstractToolWithParameterPanel extends AbstractTool implements CustomizableTool
Tool that uses aParameterPanel
for its parameters.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BaseFlatButton
m_ButtonApply
the apply button.-
Fields inherited from class adams.gui.visualization.object.tools.AbstractTool
m_CanvasPanel, m_KeyListener, m_Listener, m_Modified, m_MotionListener, m_PanelFullOptions, m_PanelOptions
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractToolWithParameterPanel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addOptions(ParameterPanel paramPanel)
Fills the parameter panel with the options.void
applyOptions()
Applies the options.protected BasePanel
createOptionPanel()
Creates the panel for setting the options.-
Methods inherited from class adams.gui.visualization.object.tools.AbstractTool
activate, apply, checkBeforeApply, cleanUp, createApplyButton, createCursor, createKeyListener, createMouseListener, createMouseMotionListener, deactivate, doApply, getCanvas, getCursor, getImage, getKeyListener, getMouseListener, getMouseMotionListener, getOptionPanel, getZoom, hasImage, initialize, isModified, setApplyButtonState, setCanvas, update
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface adams.core.CleanUpHandler
cleanUp
-
Methods inherited from interface adams.core.GlobalInfoSupporter
globalInfo
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel, setLoggingLevel
-
Methods inherited from interface adams.core.logging.LoggingSupporter
getLogger, isLoggingEnabled
-
Methods inherited from interface adams.gui.visualization.object.tools.Tool
activate, deactivate, getCanvas, getCursor, getIcon, getImage, getKeyListener, getMouseListener, getMouseMotionListener, getName, getOptionPanel, getZoom, hasImage, isModified, setCanvas, update
-
-
-
-
Field Detail
-
m_ButtonApply
protected BaseFlatButton m_ButtonApply
the apply button.
-
-
Method Detail
-
addOptions
protected abstract void addOptions(ParameterPanel paramPanel)
Fills the parameter panel with the options.- Parameters:
paramPanel
- for adding the options to
-
createOptionPanel
protected BasePanel createOptionPanel()
Creates the panel for setting the options.- Specified by:
createOptionPanel
in classAbstractTool
- Returns:
- the options panel
-
applyOptions
public void applyOptions()
Applies the options.- Specified by:
applyOptions
in interfaceCustomizableTool
-
-