Class PieceGraphView
java.lang.Object
com.biglybt.ui.swt.views.PieceGraphView
- All Implemented Interfaces:
UISWTViewEventListener, UISWTViewCoreEventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate org.eclipse.swt.graphics.Color[]private org.eclipse.swt.widgets.Canvasprivate Comparatorprivate DownloadManagerprivate org.eclipse.swt.graphics.Imageprivate org.eclipse.swt.graphics.Imageprivate org.eclipse.swt.graphics.Imageprivate booleanprivate final SWTSkinPropertiesprivate double[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidprivate voiddataSourceChanged(Object newDataSource) private voiddelete()booleaneventOccurred(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursprivate doublegetPercentDone(int startNo, int count, DiskManagerPiece[] dm_pieces) private voidinitialize(org.eclipse.swt.widgets.Composite parent) private voidrefresh()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UISWTViewEventListener
builderNotRequired, informOfDuplicates
-
Field Details
-
onePiecePerBlock
private boolean onePiecePerBlock -
BLOCK_FILLSIZE
private int BLOCK_FILLSIZE -
BLOCK_SPACING
private static final int BLOCK_SPACING- See Also:
-
BLOCK_SIZE
private int BLOCK_SIZE -
BLOCKCOLOR_HAVEALL
private static final int BLOCKCOLOR_HAVEALL- See Also:
-
BLOCKCOLOR_NOHAVE
private static final int BLOCKCOLOR_NOHAVE- See Also:
-
BLOCKCOLOR_UPLOADING
private static final int BLOCKCOLOR_UPLOADING- See Also:
-
BLOCKCOLOR_DOWNLOADING
private static final int BLOCKCOLOR_DOWNLOADING- See Also:
-
BLOCKCOLOR_NOAVAIL
private static final int BLOCKCOLOR_NOAVAIL- See Also:
-
BLOCKCOLOR_HAVESOME
private static final int BLOCKCOLOR_HAVESOME- See Also:
-
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 -
dlm
-
compFindPEPiece
-
properties
-
squareCache
private double[] squareCache
-
-
Constructor Details
-
PieceGraphView
public PieceGraphView()
-
-
Method Details
-
initialize
private void initialize(org.eclipse.swt.widgets.Composite parent) -
dataSourceChanged
-
refresh
private void refresh() -
calcBlockSize
private void calcBlockSize() -
buildImage
private void buildImage() -
getPercentDone
- Parameters:
startNo-count-dm_pieces-- Returns:
- Since:
- 3.0.1.1
-
eventOccurred
Description copied from interface:UISWTViewEventListenerTriggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurredin interfaceUISWTViewEventListener- Parameters:
event- event that occurred- Returns:
- meaning dependent upon event type
-
delete
private void delete()- Since:
- 3.1.0.1
-