Class PieceInfoView

    • Field Detail

      • BLOCKCOLOR_MERGE_WRITE

        private static final int BLOCKCOLOR_MERGE_WRITE
        See Also:
        Constant Field Values
      • pieceInfoComposite

        private org.eclipse.swt.widgets.Composite pieceInfoComposite
      • sc

        private org.eclipse.swt.custom.ScrolledComposite sc
      • pieceInfoCanvas

        private org.eclipse.swt.widgets.Canvas pieceInfoCanvas
      • currentNumColumns

        private int currentNumColumns
      • currentNumPieces

        private int currentNumPieces
      • blockColors

        private static final org.eclipse.swt.graphics.Color[] blockColors
      • legendKeys

        private static final java.lang.String[] legendKeys
      • topLabelLHS

        private java.lang.String topLabelLHS
      • topLabelRHS

        private java.lang.String topLabelRHS
      • selectedPieceExplicit

        private java.util.List<java.lang.Integer> selectedPieceExplicit
      • selectedPiece

        private int selectedPiece
      • selectedPieceShowFilePending

        private int selectedPieceShowFilePending
      • selectedPieceShowFile

        private boolean selectedPieceShowFile
      • scrollPending

        private boolean scrollPending
      • file_color

        private org.eclipse.swt.graphics.Color file_color
      • file_color_faded

        private org.eclipse.swt.graphics.Color file_color_faded
      • imageLabel

        private org.eclipse.swt.widgets.Label imageLabel
      • graphicsUpdate

        private final int graphicsUpdate
      • loopFactor

        private int loopFactor
      • font

        private org.eclipse.swt.graphics.Font font
      • img

        org.eclipse.swt.graphics.Image img
      • oldBlockInfoStart

        int oldBlockInfoStart
      • alreadyFilling

        private boolean alreadyFilling
    • Constructor Detail

      • PieceInfoView

        public PieceInfoView()
        Initialize
    • Method Detail

      • getLegendColor

        public static org.eclipse.swt.graphics.Color getLegendColor​(java.lang.String key)
      • dataSourceChanged

        private void dataSourceChanged​(java.lang.Object newDataSource)
      • getFullTitle

        private static java.lang.String getFullTitle()
      • initialize

        private void initialize​(org.eclipse.swt.widgets.Composite composite)
      • selectPieces

        public void selectPieces​(PEPiece... pieces)
      • createPeerInfoPanel

        private void createPeerInfoPanel​(org.eclipse.swt.widgets.Composite parent)
      • getPieceNumber

        private int getPieceNumber​(int x,
                                   int y)
      • fillPieceInfoSection

        private void fillPieceInfoSection()
      • refresh

        private void refresh()
      • setTopLableRHS

        private void setTopLableRHS​(java.lang.Integer... piece_numbers)
      • updateTopLabel

        private void updateTopLabel()
      • refreshInfoCanvas

        protected void refreshInfoCanvas()
      • refreshInfoCanvasSupport

        protected int refreshInfoCanvasSupport()
      • drawDownloadIndicator

        private static void drawDownloadIndicator​(org.eclipse.swt.graphics.GC gcImg,
                                                  int iXPos,
                                                  int iYPos,
                                                  boolean small)
      • drawUploadIndicator

        private static void drawUploadIndicator​(org.eclipse.swt.graphics.GC gcImg,
                                                int iXPos,
                                                int iYPos,
                                                boolean small)
      • getComposite

        private org.eclipse.swt.widgets.Composite getComposite()
      • delete

        private void delete()
      • obfuscatedImage

        private void obfuscatedImage​(org.eclipse.swt.graphics.Image image)