Class FileInfoView
java.lang.Object
com.biglybt.ui.swt.views.file.FileInfoView
- All Implemented Interfaces:
UISWTViewEventListener, UISWTViewCoreEventListener
File Pieces View
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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 DiskManagerFileInfoprotected org.eclipse.swt.widgets.Canvasprivate org.eclipse.swt.widgets.Compositeprivate int(package private) org.eclipse.swt.graphics.Imageprivate intprivate booleanprivate org.eclipse.swt.custom.ScrolledCompositeprivate UISWTViewprivate org.eclipse.swt.widgets.Label -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.eclipse.swt.widgets.CompositecreateFileInfoPanel(org.eclipse.swt.widgets.Composite parent) private voiddataSourceChanged(Object newDataSource) private voiddelete()booleaneventOccurred(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursprivate voidprivate org.eclipse.swt.widgets.Compositeprivate Stringprivate intgetPieceNumber(int x, int y) private voidinitialize(org.eclipse.swt.widgets.Composite composite) private voidrefresh()protected voidprotected voidshowPieceDetails(int x, int y) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UISWTViewEventListener
builderNotRequired, informOfDuplicates
-
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
-
img
org.eclipse.swt.graphics.Image img -
refreshInfoCanvasQueued
private boolean refreshInfoCanvasQueued -
swtView
-
-
Constructor Details
-
FileInfoView
public FileInfoView()Initialize
-
-
Method Details
-
dataSourceChanged
-
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
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
-