Class InspectorTab

All Implemented Interfaces:
ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener
Direct Known Subclasses:
AbstractTab, PathwayWebLinkTab, RimasTab, SubtabHostTab, TabAglet, TabBiomodels, TabDBE, TabKegg, TabNetworkAlgorithms, TabPatternLayout, TabPluginControl, TabStatistics, TabVisualisationControl, WorkflowHelper

public abstract class InspectorTab
extends JComponent
implements ComponentListener
An InspectorTab is a generic component for an InspectorPlugin.
See Also:
JComponent, InspectorPlugin, Serialized Form
  • Field Details

    • TAB_LEADING

      public static final int TAB_LEADING
      See Also:
      Constant Field Values
    • TAB_TRAILING

      public static final int TAB_TRAILING
      See Also:
      Constant Field Values
    • TAB_RANDOM

      public static final int TAB_RANDOM
      See Also:
      Constant Field Values
    • PREFERENCE_TAB_SHOW

      public static final String PREFERENCE_TAB_SHOW
      See Also:
      Constant Field Values
    • editPanel

      public EditPanel editPanel
      The panel that holds the table of the attributes and the buttons for adding and removing attributes as well as the "apply" button.
  • Constructor Details

    • InspectorTab

      public InspectorTab()
  • Method Details

    • getEditPanel

      public EditPanel getEditPanel()
      Returns the EditPanel of this tab.
      Returns:
      DOCUMENT ME!
    • getTitle

      public String getTitle()
      Returns the title of the current InspectorTab.
      Returns:
      the title of the current InspectorTab.
    • getName

      public String getName()
      Overrides:
      getName in class Component
    • visibleForView

      public abstract boolean visibleForView​(View v)
    • focusAndHighlight

      public void focusAndHighlight​(InspectorTab whenFinishedHighlight, boolean highlight, boolean cycleChildren)
    • focusAndHighlightComponent

      public static void focusAndHighlightComponent​(JComponent thisss, String title, InspectorTab whenFinishedHighlight, boolean highlight, boolean cycleChildren)
    • setEditPanelInformation

      public void setEditPanelInformation​(Map<?,​?> valueEditComponents, Map<GraphElement,​GraphElement> map)
    • setEditPanelComponentMap

      public void setEditPanelComponentMap​(Map<?,​?> valueEditComponents)
    • setEditPanelGraphElementMap

      public void setEditPanelGraphElementMap​(Map<GraphElement,​GraphElement> map)
    • setIcon

      public void setIcon​(ImageIcon icon)
    • getIcon

      public ImageIcon getIcon()
    • getTabParentPath

      public String getTabParentPath()
      returns a path string, that tells Vanted, where to put this tab. It is a dot-delimited string if it is not overridden, it'll return null and Vanted will put this tab on the root level If the path is not empty, Vanted puts this tab as child in the given tab hierarchy Example: return 'Network' and this tab is put as child in the Network Tab If the parent tab does not exist, it will be created
      Returns:
    • getPreferredTabPosition

      public int getPreferredTabPosition()
      Returns the preferred tab position in its parent tab. It can be InspectorTab.{LEADING,TRAILING,RANDOM,POSNUM} where POSNUM is the absolute position number This gives more control about the layout of subtabs
      Returns:
    • setPreferredTabPosition

      public void setPreferredTabPosition​(int preferredTabPosition)
    • isSelectionListener

      public boolean isSelectionListener()
    • componentShown

      public void componentShown​(ComponentEvent e)
      Override this method to trigger any action to be done, if this tab gains visibility. Then also call super(e); to enable DPI scaling.
      Specified by:
      componentShown in interface ComponentListener
    • componentResized

      public void componentResized​(ComponentEvent e)
      Specified by:
      componentResized in interface ComponentListener
    • componentMoved

      public void componentMoved​(ComponentEvent e)
      Specified by:
      componentMoved in interface ComponentListener
    • componentHidden

      public void componentHidden​(ComponentEvent e)
      Specified by:
      componentHidden in interface ComponentListener