Class JMatrixPanel

    • Constructor Detail

      • JMatrixPanel

        public JMatrixPanel()
    • Method Detail

      • getSelectedAlignmentPos

        public int getSelectedAlignmentPos()
      • setSelectedAlignmentPos

        public void setSelectedAlignmentPos​(int selectedAlignmentPos)
      • getFragmentPairs

        public FragmentPair[] getFragmentPairs()
      • setFragmentPairs

        public void setFragmentPairs​(FragmentPair[] fragmentPairs)
      • getScale

        public float getScale()
      • setPreferredSize

        public void setPreferredSize()
      • setScale

        public void setScale​(float scale)
      • getMatrix

        public Matrix getMatrix()
      • setMatrix

        public void setMatrix​(Matrix matrix)
        sets the distance matrix to be displayed
        Parameters:
        matrix -
      • drawPairs

        public void drawPairs​(Graphics g)
        draw alternative alignments
        Parameters:
        g -
      • drawBoxes

        public void drawBoxes​(Graphics g)
        draw high scoring fragments that are used for the initial alignment seed selection
        Parameters:
        g -
      • drawDistances

        public void drawDistances​(Graphics g1)
        For each element in matrix, draw it as a colored square or pixel. The color of a matrix element with value x is specified as - H: 1-x/scalevalue - S: saturation - B: 1-x/scalevalue
        Parameters:
        g1 -
      • getCellColor

        public ContinuousColorMapper getCellColor()
        Returns:
        the color mapping of the JMatrixPanel
      • setCellColor

        public void setCellColor​(ContinuousColorMapper cellColor)
        Parameters:
        cellColor - the color mapping of the JMatrixPanel to set