java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.graffiti.plugin.inspector.InspectorTab
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.kegg.TabKegg
All Implemented Interfaces:
ActionListener, ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, BackgroundTaskStatusProvider

public class TabKegg
extends InspectorTab
implements ActionListener, BackgroundTaskStatusProvider
Author:
Christian Klukas, Torsten Vogt, Matthias Klapperstueck, Tobias Czauderna
See Also:
Serialized Form
  • Constructor Details

    • TabKegg

      public TabKegg()
  • Method Details

    • actionPerformed

      public void actionPerformed​(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • getKEGGorganismFromUser

      public static OrganismEntry[] getKEGGorganismFromUser​(List<OrganismEntry> organisms)
    • visibleForView

      public boolean visibleForView​(View v)
      Specified by:
      visibleForView in class InspectorTab
    • getCurrentStatusValue

      public int getCurrentStatusValue()
      Description copied from interface: BackgroundTaskStatusProvider
      Returns the completion status. WARNING: This method must be Thread-Safe!
      Specified by:
      getCurrentStatusValue in interface BackgroundTaskStatusProvider
      Returns:
      A number from 0..100 which represents the completion status. If -1 is returned, the progress bar is set to "indeterminate", which means, that the progress bar will float from left to right and reverse. (Useful if status can not be determined) Other values let the progressbar disappear.
    • setCurrentStatusValue

      public void setCurrentStatusValue​(int value)
      Description copied from interface: BackgroundTaskStatusProvider
      Override this method and pass a implementor of this interface to any other service method. This method can use this call to update the status value.
      Specified by:
      setCurrentStatusValue in interface BackgroundTaskStatusProvider
    • getCurrentStatusValueFine

      public double getCurrentStatusValueFine()
      Description copied from interface: BackgroundTaskStatusProvider
      Same as getCurrentStatusValue(), but this method should return a finer granted progress value. If this is not needed, the code for getCurrentStatusValue() could be reused by the client.
      Specified by:
      getCurrentStatusValueFine in interface BackgroundTaskStatusProvider
      Returns:
      The current progress value (fine).
    • getCurrentStatusMessage1

      public String getCurrentStatusMessage1()
      Description copied from interface: BackgroundTaskStatusProvider
      Returns a status message on what is going on. WARNING: This method must be Thread-Safe!
      Specified by:
      getCurrentStatusMessage1 in interface BackgroundTaskStatusProvider
      Returns:
      A status message, or null if not needed.
    • getCurrentStatusMessage2

      public String getCurrentStatusMessage2()
      Description copied from interface: BackgroundTaskStatusProvider
      Returns a status message on what is going on. Is used the same like getCurrentStatusMessage1. This second message adds flexibility. If not needed, the first message should be used and this should return null if not needed. WARNING: This method must be Thread-Safe!
      Specified by:
      getCurrentStatusMessage2 in interface BackgroundTaskStatusProvider
      Returns:
      A status message, or null if not needed.
    • pleaseStop

      public void pleaseStop()
      Description copied from interface: BackgroundTaskStatusProvider
      If this method is called on the status provider, the linked work task should stop its execution as soon as possible.
      Specified by:
      pleaseStop in interface BackgroundTaskStatusProvider
    • pluginWaitsForUser

      public boolean pluginWaitsForUser()
      Specified by:
      pluginWaitsForUser in interface BackgroundTaskStatusProvider
      Returns:
      Let this method return true in order to show a "Continue" button in the GUI. When this buttons is clicked, the method pleaseContinueRun is called. Use these two methods to let the user interact with the GUI while the algorithm is waiting for the user to be ready for the continued work of the algorithm.
    • pleaseContinueRun

      public void pleaseContinueRun()
      Description copied from interface: BackgroundTaskStatusProvider
      This method is called as soon as the user indicates that he is comfortable to let the algorithm continue its work.
      Specified by:
      pleaseContinueRun in interface BackgroundTaskStatusProvider
    • getTabParentPath

      public String getTabParentPath()
      Description copied from class: InspectorTab
      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
      Overrides:
      getTabParentPath in class InspectorTab
      Returns:
    • getPreferredTabPosition

      public int getPreferredTabPosition()
      Description copied from class: InspectorTab
      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
      Overrides:
      getPreferredTabPosition in class InspectorTab
      Returns: