Class PieceBlocksView

java.lang.Object
com.biglybt.ui.swt.views.PieceBlocksView
All Implemented Interfaces:
ParameterListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, UISWTViewEventListener, UISWTViewCoreEventListener

public class PieceBlocksView extends Object implements UIPluginViewToolBarListener, UISWTViewCoreEventListener, ParameterListener
  • Field Details

    • MSGID_PREFIX

      public static String MSGID_PREFIX
    • block_colours

      private static final org.eclipse.swt.graphics.Color[] block_colours
    • legend_keys

      private static final String[] legend_keys
    • MAX_ACTIVE_BLOCKS

      private int MAX_ACTIVE_BLOCKS
    • canvas

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

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

      private TimerEventPeriodic block_refresher
    • dm_data_lock

      private Object dm_data_lock
    • dm_data

      private PieceBlocksView.ManagerData[] dm_data
    • all_blocks_view

      private volatile boolean all_blocks_view
    • comp_focused

      private boolean comp_focused
    • focus_pending_ds

      private Object focus_pending_ds
    • abv_last_active

      private List<DownloadManager> abv_last_active
    • swtView

      private UISWTView swtView
    • last_left_to_right

      private boolean last_left_to_right
    • last_alpha

      private int last_alpha
  • Constructor Details

    • PieceBlocksView

      public PieceBlocksView()
  • Method Details

    • parameterChanged

      public void parameterChanged(String parameterName)
      Description copied from interface: ParameterListener
      Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.
      Specified by:
      parameterChanged in interface ParameterListener
      Parameters:
      parameterName - the name of the parameter that has changed
    • setFocused

      protected void setFocused(boolean foc)
    • dataSourceChanged

      protected void dataSourceChanged(Object newDataSource)
    • delete

      protected void delete()
    • getComposite

      protected org.eclipse.swt.widgets.Composite getComposite()
    • getData

      private String getData()
    • initialize

      protected void initialize(org.eclipse.swt.widgets.Composite parent)
    • refresh

      protected void refresh()
    • updateImage

      private void updateImage()
    • 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
    • toolBarItemActivated

      public boolean toolBarItemActivated(ToolBarItem item, long activationType, Object datasource)
      Description copied from interface: UIToolBarActivationListener
      XXX Should have been UIToolBarItem
      Specified by:
      toolBarItemActivated in interface UIToolBarActivationListener
    • refreshToolBarItems

      public void refreshToolBarItems(Map<String,Long> list)
      Description copied from interface: UIPluginViewToolBarListener
      Fill in list with the toolbar ids and states you wish to set
      Specified by:
      refreshToolBarItems in interface UIPluginViewToolBarListener