Class TrailPanel

    • Field Detail

      • m_Properties

        protected static adams.core.Properties m_Properties
        the setup for the panel.
      • m_Trail

        protected Trail m_Trail
        the trail on display.
      • m_TrailImage

        protected adams.gui.visualization.image.ImagePanel m_TrailImage
        the panel for displaying the trail as image.
      • m_TrailTable

        protected adams.gui.core.SpreadSheetTable m_TrailTable
        the table with the trail as spreadsheet.
      • m_ReportTable

        protected adams.gui.visualization.report.ReportFactory.Table m_ReportTable
        the report of the trail.
      • m_SearchPanel

        protected adams.gui.core.SearchPanel m_SearchPanel
        the search panel for the trail report.
      • m_LogTabbedPane

        protected adams.gui.core.BaseTabbedPane m_LogTabbedPane
        the tabbed pane for image/report and log.
      • m_SplitPane

        protected adams.gui.core.BaseSplitPane m_SplitPane
        the split pane for image/spreadsheet and report.
      • m_TabbedPane

        protected adams.gui.core.BaseTabbedPane m_TabbedPane
        the tabbed pane for the image and spreadsheet view.
      • m_Reader

        protected AbstractTrailReader m_Reader
        the reader that was used for reading in the trail.
      • m_PanelLog

        protected adams.gui.core.BaseLogPanel m_PanelLog
        the log panel.
      • m_TrailPaintlet

        protected TrailPaintlet m_TrailPaintlet
        the default paintlet.
    • Constructor Detail

      • TrailPanel

        public TrailPanel​(TrailViewerPanel owner)
        Initializes the panel.
        Parameters:
        owner - the owner of this panel
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class adams.gui.core.BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class adams.gui.core.BasePanel
      • getOwner

        public TrailViewerPanel getOwner()
        Returns the owner of this panel.
        Returns:
        the owner, null if none set
      • setPaintlet

        public void setPaintlet​(TrailPaintlet value)
        Sets the paintlet to use.
        Parameters:
        value - the paintlet
      • getPaintlet

        public TrailPaintlet getPaintlet()
        Returns the current paintlet in use.
        Returns:
        the paintlet
      • refresh

        protected String refresh()
        Regenerates the image of the current trail and redisplays it.
        Returns:
        null if everything OK, otherwiser error message
      • setTrail

        public void setTrail​(Trail value)
        Sets the trail to display.
        Parameters:
        value - the trail to display
      • getTrail

        public Trail getTrail()
        The current trail on display.
        Returns:
        the trail on display
      • setReader

        public void setReader​(AbstractTrailReader value)
        Sets the trail reader that was used for loading this trail. Used for reloading.
        Parameters:
        value - the reader
      • getReader

        public AbstractTrailReader getReader()
        Returns the trail reader that was used for loading this trail.
        Returns:
        the reader, null if loaded from database
      • addOverlay

        public void addOverlay​(AbstractTrailOverlay overlay)
        Adds the trail overlay.
        Parameters:
        overlay - the overlay to add
      • removeOverlays

        public void removeOverlays()
        Removes all overlays.
      • getTitle

        public String getTitle()
        Returns the database ID or filename as title.
        Returns:
        the title
      • getImagePanel

        public adams.gui.visualization.image.ImagePanel getImagePanel()
        Returns the underlying image panel
        Returns:
        the panel
      • canReload

        public boolean canReload()
        Checks whether this panel can be reloaded.
        Returns:
        true if reload is possible
      • reload

        public boolean reload()
        Reloads the data, if possible.
        Returns:
        true if successfully reloaded
      • search

        public void search​(String text,
                           boolean isRegExp)
        Performs a search.
        Parameters:
        text - the search text
        isRegExp - whether the search text is a regular expression
      • setSearchPanelVisible

        public void setSearchPanelVisible​(boolean value)
        Sets whether to display the search panel or not.
        Parameters:
        value - if true then the search panel is displayed
      • isSearchPanelVisible

        public boolean isSearchPanelVisible()
        Returns whether the search panel is visible.
        Returns:
        true if the search panel is visible
      • getProperties

        public static adams.core.Properties getProperties()
        Returns the properties for this panel.
        Returns:
        the properties file for this panel
      • setZoom

        public void setZoom​(double zoom)
        Sets the zoom factor (0-16). Use -1 to fit inside panel.
        Parameters:
        zoom - the zoom factor
      • getZoom

        public double getZoom()
        Returns the zoom factor (0-16).
        Returns:
        the zoom factor
      • log

        public void log​(String msg)
        Logs the message in the log panel.
        Parameters:
        msg - the log message