Class SequenceScalePanel

    • Constructor Detail

      • SequenceScalePanel

        public SequenceScalePanel​(int position)
    • Method Detail

      • setChain

        public void setChain​(Chain c)
      • getChain

        public Chain getChain()
      • getScale

        public float getScale()
      • setScale

        public void setScale​(float scale)
      • setPaintDefaults

        protected void setPaintDefaults​(Graphics2D g2D)
        set some default rendering hints, like text antialiasing on
        Parameters:
        g2D - the graphics object to set the defaults on
      • drawScale

        protected int drawScale​(Graphics2D g2D,
                                int y)
        draw the Scale
        Parameters:
        g2D -
        y - the height on which to draw the scale
        Returns:
        the new y position
      • drawIdx

        protected void drawIdx​(Graphics2D g2D,
                               int y)
      • drawSequence

        protected int drawSequence​(Graphics2D g2D,
                                   int y)
        draw the Amino acid sequence
        Parameters:
        g2D -
        y - .. height of line to draw the sequence onto
        Returns:
        the new y value