Class PieceGraphView

    • Field Detail

      • onePiecePerBlock

        private boolean onePiecePerBlock
      • BLOCK_FILLSIZE

        private int BLOCK_FILLSIZE
      • BLOCK_SIZE

        private int BLOCK_SIZE
      • BLOCKCOLOR_DOWNLOADING

        private static final int BLOCKCOLOR_DOWNLOADING
        See Also:
        Constant Field Values
      • blockColors

        private org.eclipse.swt.graphics.Color[] blockColors
      • canvas

        private org.eclipse.swt.widgets.Canvas canvas
      • img

        private org.eclipse.swt.graphics.Image img
      • imgHaveAll

        private org.eclipse.swt.graphics.Image imgHaveAll
      • imgNoHave

        private org.eclipse.swt.graphics.Image imgNoHave
      • compFindPEPiece

        private java.util.Comparator compFindPEPiece
      • squareCache

        private double[] squareCache
    • Constructor Detail

      • PieceGraphView

        public PieceGraphView()
    • Method Detail

      • initialize

        private void initialize​(org.eclipse.swt.widgets.Composite parent)
      • dataSourceChanged

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

        private void refresh()
      • calcBlockSize

        private void calcBlockSize()
      • buildImage

        private void buildImage()
      • getPercentDone

        private double getPercentDone​(int startNo,
                                      int count,
                                      DiskManagerPiece[] dm_pieces)
        Parameters:
        startNo -
        count -
        dm_pieces -
        Returns:
        Since:
        3.0.1.1
      • delete

        private void delete()
        Since:
        3.1.0.1