Package com.biglybt.ui.swt.views.file
Class FileInfoView
- java.lang.Object
-
- com.biglybt.ui.swt.views.file.FileInfoView
-
- All Implemented Interfaces:
UISWTViewEventListener
,UISWTViewCoreEventListener
public class FileInfoView extends java.lang.Object implements UISWTViewCoreEventListener
File Pieces View
-
-
Field Summary
Fields Modifier and Type Field Description private static int
BLOCK_FILLSIZE
private static int
BLOCK_SIZE
private static int
BLOCK_SPACING
private static int
BLOCKCOLOR_ACTIVE
private static int
BLOCKCOLOR_DONE
private static int
BLOCKCOLOR_NEEDED
private static int
BLOCKCOLOR_SKIPPED
private org.eclipse.swt.graphics.Color[]
blockColors
private DiskManagerFileInfo
file
protected org.eclipse.swt.widgets.Canvas
fileInfoCanvas
private org.eclipse.swt.widgets.Composite
fileInfoComposite
private int
graphicsUpdate
(package private) org.eclipse.swt.graphics.Image
img
private int
loopFactor
private boolean
refreshInfoCanvasQueued
private org.eclipse.swt.custom.ScrolledComposite
sc
private UISWTView
swtView
private org.eclipse.swt.widgets.Label
topLabel
-
Constructor Summary
Constructors Constructor Description FileInfoView()
Initialize
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.eclipse.swt.widgets.Composite
createFileInfoPanel(org.eclipse.swt.widgets.Composite parent)
private void
dataSourceChanged(java.lang.Object newDataSource)
private void
delete()
boolean
eventOccurred(UISWTViewEvent event)
Triggers when an even listed in UISWTViewEvent occursprivate void
fillFileInfoSection()
private org.eclipse.swt.widgets.Composite
getComposite()
private java.lang.String
getFullTitle()
private int
getPieceNumber(int x, int y)
private void
initialize(org.eclipse.swt.widgets.Composite composite)
private void
refresh()
protected void
refreshInfoCanvas()
protected void
showPieceDetails(int x, int y)
-
-
-
Field Detail
-
BLOCK_FILLSIZE
private static final int BLOCK_FILLSIZE
- See Also:
- Constant Field Values
-
BLOCK_SPACING
private static final int BLOCK_SPACING
- See Also:
- Constant Field Values
-
BLOCK_SIZE
private static final int BLOCK_SIZE
- See Also:
- Constant Field Values
-
BLOCKCOLOR_DONE
private static final int BLOCKCOLOR_DONE
- See Also:
- Constant Field Values
-
BLOCKCOLOR_SKIPPED
private static final int BLOCKCOLOR_SKIPPED
- See Also:
- Constant Field Values
-
BLOCKCOLOR_ACTIVE
private static final int BLOCKCOLOR_ACTIVE
- See Also:
- Constant Field Values
-
BLOCKCOLOR_NEEDED
private static final int BLOCKCOLOR_NEEDED
- See Also:
- Constant Field Values
-
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
private DiskManagerFileInfo file
-
img
org.eclipse.swt.graphics.Image img
-
refreshInfoCanvasQueued
private boolean refreshInfoCanvasQueued
-
swtView
private UISWTView swtView
-
-
Method Detail
-
dataSourceChanged
private void dataSourceChanged(java.lang.Object newDataSource)
-
getFullTitle
private java.lang.String 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
public boolean eventOccurred(UISWTViewEvent event)
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
-
-