Class Statistics
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.plugin.AbstractToolPlugin<TrailPanel>
-
- adams.gui.visualization.trail.plugins.AbstractTrailViewerPlugin
-
- adams.gui.visualization.trail.plugins.AbstractSelectedTrailsViewerPlugin
-
- adams.gui.visualization.trail.plugins.Statistics
-
- All Implemented Interfaces:
adams.core.logging.LoggingSupporter,adams.core.SizeOfHandler,Serializable
public class Statistics extends AbstractSelectedTrailsViewerPlugin
Displays the statistics about trails.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<adams.data.statistics.InformativeStatistic>m_StatsListthe collected statistics.-
Fields inherited from class adams.gui.visualization.trail.plugins.AbstractSelectedTrailsViewerPlugin
m_SelectedPanels
-
-
Constructor Summary
Constructors Constructor Description Statistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExecute(TrailPanel panel)Checks whether the plugin can be executed given the specified image panel.protected JPanelcreateConfigurationPanel(adams.gui.dialog.ApprovalDialog dialog)Creates the panel with the configuration (return null to suppress display).protected StringcreateLogEntry()Creates the log message.StringgetCaption()Returns the text for the menu item to create.StringgetIconName()Returns the icon name.StringgetMenu()Returns the text for the menu to place the plugin beneath.protected Stringprocess(TrailPanel panel)Processes the specified panel.protected StringprocessFinish()Finishes up the processing.protected StringprocessInit()Initializes the processing.-
Methods inherited from class adams.gui.visualization.trail.plugins.AbstractSelectedTrailsViewerPlugin
createDialog, createListPanel, doExecute, getAllPanels, getDialogSize, hasApprovalButton, hasCancelButton, process
-
Methods inherited from class adams.gui.visualization.trail.plugins.AbstractTrailViewerPlugin
doLog
-
Methods inherited from class adams.gui.plugin.AbstractToolPlugin
execute, getCanceledByUser, getIcon, getLastSetup, hasLastSetup, log, setLastSetup
-
-
-
-
Field Detail
-
m_StatsList
protected List<adams.data.statistics.InformativeStatistic> m_StatsList
the collected statistics.
-
-
Method Detail
-
getMenu
public String getMenu()
Returns the text for the menu to place the plugin beneath.- Overrides:
getMenuin classadams.gui.plugin.AbstractToolPlugin<TrailPanel>- Returns:
- the menu
-
getCaption
public String getCaption()
Returns the text for the menu item to create.- Specified by:
getCaptionin classadams.gui.plugin.AbstractToolPlugin<TrailPanel>- Returns:
- the text
-
getIconName
public String getIconName()
Returns the icon name.- Overrides:
getIconNamein classadams.gui.plugin.AbstractToolPlugin<TrailPanel>- Returns:
- the name, null if none available
-
canExecute
public boolean canExecute(TrailPanel panel)
Checks whether the plugin can be executed given the specified image panel.- Overrides:
canExecutein classAbstractSelectedTrailsViewerPlugin- Parameters:
panel- the panel to use as basis for decision- Returns:
- true if plugin can be executed
-
createConfigurationPanel
protected JPanel createConfigurationPanel(adams.gui.dialog.ApprovalDialog dialog)
Description copied from class:AbstractSelectedTrailsViewerPluginCreates the panel with the configuration (return null to suppress display).- Specified by:
createConfigurationPanelin classAbstractSelectedTrailsViewerPlugin- Parameters:
dialog- the dialog that is being created- Returns:
- the generated panel, null to suppress
-
processInit
protected String processInit()
Initializes the processing.- Overrides:
processInitin classAbstractSelectedTrailsViewerPlugin- Returns:
- null if successful, otherwise error message
-
process
protected String process(TrailPanel panel)
Processes the specified panel.- Specified by:
processin classAbstractSelectedTrailsViewerPlugin- Parameters:
panel- the panel to process- Returns:
- null if successful, error message otherwise
-
processFinish
protected String processFinish()
Finishes up the processing.- Overrides:
processFinishin classAbstractSelectedTrailsViewerPlugin- Returns:
- null if successful, otherwise error message
-
createLogEntry
protected String createLogEntry()
Creates the log message.- Specified by:
createLogEntryin classadams.gui.plugin.AbstractToolPlugin<TrailPanel>- Returns:
- the message, null if none available
-
-