Class 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 Detail

      • m_StatsList

        protected List<adams.data.statistics.InformativeStatistic> m_StatsList
        the collected statistics.
    • Constructor Detail

      • Statistics

        public Statistics()
    • Method Detail

      • getMenu

        public String getMenu()
        Returns the text for the menu to place the plugin beneath.
        Overrides:
        getMenu in class adams.gui.plugin.AbstractToolPlugin<TrailPanel>
        Returns:
        the menu
      • getCaption

        public String getCaption()
        Returns the text for the menu item to create.
        Specified by:
        getCaption in class adams.gui.plugin.AbstractToolPlugin<TrailPanel>
        Returns:
        the text
      • getIconName

        public String getIconName()
        Returns the icon name.
        Overrides:
        getIconName in class adams.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:
        canExecute in class AbstractSelectedTrailsViewerPlugin
        Parameters:
        panel - the panel to use as basis for decision
        Returns:
        true if plugin can be executed
      • createLogEntry

        protected String createLogEntry()
        Creates the log message.
        Specified by:
        createLogEntry in class adams.gui.plugin.AbstractToolPlugin<TrailPanel>
        Returns:
        the message, null if none available