Class SequenceDisplay

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener

public class SequenceDisplay extends JPanel implements ChangeListener
A sequence display that can show the results of a protein structure alignment.
Since:
1.7
Author:
Andreas Prlic
See Also:
  • Field Details

    • MAX_SCALE

      public static final int MAX_SCALE
      the maximum value that the scale can get
      See Also:
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args)
    • clearListeners

      public void clearListeners()
    • addAlignmentPositionListener

      public void addAlignmentPositionListener(AlignmentPositionListener li)
    • getStructurePairAligner

      public StructurePairAligner getStructurePairAligner()
    • setStructurePairAligner

      public void setStructurePairAligner(StructurePairAligner structurePairAligner)
    • getIdx1

      public int[] getIdx1()
      get the identical position in the alignment
      Returns:
      identical positions for structure1
    • getIdx2

      public int[] getIdx2()
      get the identical position in the alignment
      Returns:
      identical positions for structure2
    • setStructure1

      public void setStructure1(Structure structure)
    • setStructure2

      public void setStructure2(Structure structure)
    • setAlternativeAlignment

      public void setAlternativeAlignment(AlternativeAlignment alig)
    • getAligMap

      public List<AlignedPosition> getAligMap()
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener
    • updateDisplay

      public void updateDisplay()
    • calcScale

      public void calcScale(int zoomFactor)
      a value of 100 means that the whole sequence should be displayed in the current visible window a factor of 1 means that one amino acid shoud be drawn as big as possible
      Parameters:
      zoomFactor - - a value between 1 and 100
    • getScale

      public float getScale()