Class Histogram
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.plugin.AbstractToolPlugin<HeatmapPanel>
-
- All Implemented Interfaces:
adams.core.logging.LoggingSupporter,adams.core.SizeOfHandler,Serializable
public class Histogram extends AbstractSelectedHeatmapsViewerPluginWithGOE
Displays the histogram for heatmap(s).- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<HistogramPanel>m_HistogramListthe list of histogram panels.protected List<String>m_TitleListthe titles for the panels.-
Fields inherited from class adams.gui.visualization.heatmap.plugins.AbstractSelectedHeatmapsViewerPluginWithGOE
m_Editor
-
Fields inherited from class adams.gui.visualization.heatmap.plugins.AbstractSelectedHeatmapsViewerPlugin
m_SelectedPanels
-
-
Constructor Summary
Constructors Constructor Description Histogram()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExecute(HeatmapPanel panel)Checks whether the plugin can be executed given the specified image panel.protected StringcreateLogEntry()Creates the log message.protected booleangetCanChangeClassInDialog()Returns whether the class can be changed in the GOE.StringgetCaption()Returns the text for the menu item to create.protected ObjectgetDefaultValue()Returns the default object to use in the GOE if no last setup is yet available.protected ClassgetEditorType()Returns the class to use as type (= superclass) in the GOE.StringgetIconName()Returns the icon name.StringgetMenu()Returns the text for the menu to place the plugin beneath.protected Stringprocess(HeatmapPanel panel)Processes the specified panel.protected StringprocessFinish()Finishes up the processing.protected StringprocessInit()Initializes the processing.-
Methods inherited from class adams.gui.visualization.heatmap.plugins.AbstractSelectedHeatmapsViewerPluginWithGOE
createConfigurationPanel, hasApprovalButton, hasCancelButton
-
Methods inherited from class adams.gui.visualization.heatmap.plugins.AbstractSelectedHeatmapsViewerPlugin
createDialog, createListPanel, doExecute, getAllPanels, getDialogSize, process
-
Methods inherited from class adams.gui.visualization.heatmap.plugins.AbstractHeatmapViewerPlugin
doLog
-
Methods inherited from class adams.gui.plugin.AbstractToolPlugin
execute, getCanceledByUser, getIcon, getLastSetup, hasLastSetup, log, setLastSetup
-
-
-
-
Field Detail
-
m_HistogramList
protected List<HistogramPanel> m_HistogramList
the list of histogram panels.
-
-
Method Detail
-
getMenu
public String getMenu()
Returns the text for the menu to place the plugin beneath.- Overrides:
getMenuin classadams.gui.plugin.AbstractToolPlugin<HeatmapPanel>- Returns:
- the menu
-
getCaption
public String getCaption()
Returns the text for the menu item to create.- Specified by:
getCaptionin classadams.gui.plugin.AbstractToolPlugin<HeatmapPanel>- Returns:
- the text
-
getIconName
public String getIconName()
Returns the icon name.- Overrides:
getIconNamein classadams.gui.plugin.AbstractToolPlugin<HeatmapPanel>- Returns:
- the name, null if none available
-
canExecute
public boolean canExecute(HeatmapPanel panel)
Checks whether the plugin can be executed given the specified image panel.- Overrides:
canExecutein classAbstractSelectedHeatmapsViewerPlugin- Parameters:
panel- the panel to use as basis for decision- Returns:
- true if plugin can be executed
-
getCanChangeClassInDialog
protected boolean getCanChangeClassInDialog()
Returns whether the class can be changed in the GOE.- Overrides:
getCanChangeClassInDialogin classAbstractSelectedHeatmapsViewerPluginWithGOE- Returns:
- true if class can be changed by the user
-
getEditorType
protected Class getEditorType()
Returns the class to use as type (= superclass) in the GOE.- Specified by:
getEditorTypein classAbstractSelectedHeatmapsViewerPluginWithGOE- Returns:
- the class
-
getDefaultValue
protected Object getDefaultValue()
Returns the default object to use in the GOE if no last setup is yet available.- Specified by:
getDefaultValuein classAbstractSelectedHeatmapsViewerPluginWithGOE- Returns:
- the object
-
processInit
protected String processInit()
Initializes the processing.- Overrides:
processInitin classAbstractSelectedHeatmapsViewerPluginWithGOE- Returns:
- null if successful, otherwise error message
- See Also:
AbstractToolPlugin.setLastSetup(Object)
-
process
protected String process(HeatmapPanel panel)
Processes the specified panel.- Specified by:
processin classAbstractSelectedHeatmapsViewerPlugin- Parameters:
panel- the panel to process- Returns:
- null if successful, error message otherwise
-
processFinish
protected String processFinish()
Finishes up the processing.- Overrides:
processFinishin classAbstractSelectedHeatmapsViewerPlugin- Returns:
- null if successful, otherwise error message
-
createLogEntry
protected String createLogEntry()
Creates the log message.- Specified by:
createLogEntryin classadams.gui.plugin.AbstractToolPlugin<HeatmapPanel>- Returns:
- the message, null if none available
-
-