Class GeneDetailsDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class GeneDetailsDialog
extends JDialog
This dialog displays the gene details associated to a protein match.
Author:
Marc Vaudel, Harald Barsnes
See Also:
Serialized Form
  • Constructor Details

    • GeneDetailsDialog

      public GeneDetailsDialog​(Frame parent, ProteinMatch proteinMatch, GeneMaps geneMaps, ProteinDetailsProvider proteinDetailsProvider)
      Creates a new GeneDetailsDialog.
      Parameters:
      parent - the parent frame
      proteinMatch - the protein match
      geneMaps - the gene maps
      proteinDetailsProvider - a provider for protein details
  • Method Details

    • addGoLink

      public String addGoLink​(String goAccession)
      Returns the GO accession number as a web link to the given GO term at QuickGO.
      Parameters:
      goAccession - the GO accession
      Returns:
      the GO accession number as a web link to the given GO term at QuickGO
    • getGoAccessionLink

      public String getGoAccessionLink​(String goAccession)
      Returns the GO accession number as a web link to the given GO term at QuickGO.
      Parameters:
      goAccession - the GO accession number
      Returns:
      the GO accession web link
    • getPreferredAccessionColumnWidth

      public Integer getPreferredAccessionColumnWidth​(JTable table, int colIndex, int margin)
      Gets the preferred width of the column specified by colIndex. The column will be just wide enough to show the column head and the widest cell in the column. Margin pixels are added to the left and right (resulting in an additional width of 2*margin pixels. Returns null if the max width cannot be set.
      Parameters:
      table - the table
      colIndex - the colum index
      margin - the margin to add
      Returns:
      the preferred width of the column