Class PeerInfoView

    • Field Detail

      • BLOCKCOLOR_AVAIL_NOHAVE

        private static final int BLOCKCOLOR_AVAIL_NOHAVE
        See Also:
        Constant Field Values
      • BLOCKCOLOR_NOAVAIL_HAVE

        private static final int BLOCKCOLOR_NOAVAIL_HAVE
        See Also:
        Constant Field Values
      • BLOCKCOLOR_NOAVAIL_NOHAVE

        private static final int BLOCKCOLOR_NOAVAIL_NOHAVE
        See Also:
        Constant Field Values
      • peerInfoComposite

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

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

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

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

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

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

        private int graphicsUpdate
      • loopFactor

        private int loopFactor
      • countryLocator

        private Plugin countryLocator
      • sCountryImagesDir

        private java.lang.String sCountryImagesDir
      • font

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

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

        protected boolean refreshInfoCanvasQueued
    • Constructor Detail

      • PeerInfoView

        public PeerInfoView()
        Initialize
    • Method Detail

      • initCountryPlugin

        private void initCountryPlugin()
      • dataSourceChanged

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

        private java.lang.String getFullTitle()
      • initialize

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

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

        private void swt_fillPeerInfoSection()
      • refresh

        private void refresh()
      • refreshInfoCanvas

        private void refreshInfoCanvas()
        Constructs and image representing the download state of _all_ the pieces in the torrent. Particularily slow when there's lots of pieces, and also wasteful since only a fraction of them ever get painted at any given time. TODO: Construct image for visible area only or something
      • getComposite

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

        private void delete()
      • obfuscatedImage

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