Class FileInfoView

java.lang.Object
com.biglybt.ui.swt.views.file.FileInfoView
All Implemented Interfaces:
UISWTViewEventListener, UISWTViewCoreEventListener

public class FileInfoView extends Object implements UISWTViewCoreEventListener
File Pieces View
  • Field Details

    • BLOCK_FILLSIZE

      private static final int BLOCK_FILLSIZE
      See Also:
    • BLOCK_SPACING

      private static final int BLOCK_SPACING
      See Also:
    • BLOCK_SIZE

      private static final int BLOCK_SIZE
      See Also:
    • BLOCKCOLOR_DONE

      private static final int BLOCKCOLOR_DONE
      See Also:
    • BLOCKCOLOR_SKIPPED

      private static final int BLOCKCOLOR_SKIPPED
      See Also:
    • BLOCKCOLOR_ACTIVE

      private static final int BLOCKCOLOR_ACTIVE
      See Also:
    • BLOCKCOLOR_NEEDED

      private static final int BLOCKCOLOR_NEEDED
      See Also:
    • fileInfoComposite

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

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

      protected org.eclipse.swt.widgets.Canvas fileInfoCanvas
    • blockColors

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

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

      private int graphicsUpdate
    • loopFactor

      private int loopFactor
    • file

      private DiskManagerFileInfo file
    • img

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

      private boolean refreshInfoCanvasQueued
    • swtView

      private UISWTView swtView
  • Constructor Details

    • FileInfoView

      public FileInfoView()
      Initialize
  • Method Details

    • dataSourceChanged

      private void dataSourceChanged(Object newDataSource)
    • getFullTitle

      private String getFullTitle()
    • initialize

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

      private org.eclipse.swt.widgets.Composite createFileInfoPanel(org.eclipse.swt.widgets.Composite parent)
    • fillFileInfoSection

      private void fillFileInfoSection()
    • refresh

      private void refresh()
    • getPieceNumber

      private int getPieceNumber(int x, int y)
    • showPieceDetails

      protected void showPieceDetails(int x, int y)
    • refreshInfoCanvas

      protected void refreshInfoCanvas()
    • getComposite

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

      private void delete()
    • eventOccurred

      public boolean eventOccurred(UISWTViewEvent event)
      Description copied from interface: UISWTViewEventListener
      Triggers when an even listed in UISWTViewEvent occurs
      Specified by:
      eventOccurred in interface UISWTViewEventListener
      Parameters:
      event - event that occurred
      Returns:
      meaning dependent upon event type