Package com.biglybt.ui.swt.views
Class PieceGraphView
java.lang.Object
com.biglybt.ui.swt.views.PieceGraphView
- All Implemented Interfaces:
UISWTViewEventListener
,UISWTViewCoreEventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private org.eclipse.swt.graphics.Color[]
private org.eclipse.swt.widgets.Canvas
private Comparator
private DownloadManager
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Image
private boolean
private final SWTSkinProperties
private double[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
private void
dataSourceChanged
(Object newDataSource) private void
delete()
boolean
eventOccurred
(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursprivate double
getPercentDone
(int startNo, int count, DiskManagerPiece[] dm_pieces) private void
initialize
(org.eclipse.swt.widgets.Composite parent) private void
refresh()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.ui.swt.pif.UISWTViewEventListener
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:UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurred
in interfaceUISWTViewEventListener
- Parameters:
event
- event that occurred- Returns:
- meaning dependent upon event type
-
delete
private void delete()- Since:
- 3.1.0.1
-