Package com.biglybt.ui.swt.views.file
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 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 DiskManagerFileInfo
protected org.eclipse.swt.widgets.Canvas
private org.eclipse.swt.widgets.Composite
private int
(package private) org.eclipse.swt.graphics.Image
private int
private boolean
private org.eclipse.swt.custom.ScrolledComposite
private UISWTView
private org.eclipse.swt.widgets.Label
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.eclipse.swt.widgets.Composite
createFileInfoPanel
(org.eclipse.swt.widgets.Composite parent) private void
dataSourceChanged
(Object newDataSource) private void
delete()
boolean
eventOccurred
(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursprivate void
private org.eclipse.swt.widgets.Composite
private String
private int
getPieceNumber
(int x, int y) private void
initialize
(org.eclipse.swt.widgets.Composite composite) private void
refresh()
protected void
protected void
showPieceDetails
(int x, int y) 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
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: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
-