Class ColumnProgressETA
java.lang.Object
com.biglybt.ui.common.table.impl.TableColumnImpl
com.biglybt.ui.common.table.impl.CoreTableColumn
com.biglybt.ui.swt.views.table.CoreTableColumnSWT
com.biglybt.ui.swt.columns.torrent.ColumnProgressETA
- All Implemented Interfaces:
TableCellAddedListener
,TableCellMouseListener
,TableCellRefreshListener
,TableColumn
,TableColumnExtraInfoListener
,TableColumnCore
,TableCellSWTPaintListener
,Comparator<TableRowCore>
public class ColumnProgressETA
extends CoreTableColumnSWT
implements TableCellAddedListener, TableCellMouseListener, TableCellRefreshListener, TableCellSWTPaintListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private org.eclipse.swt.graphics.Color
private org.eclipse.swt.graphics.Color
private org.eclipse.swt.graphics.Color[]
private ViewUtils.CustomDateFormat
private org.eclipse.swt.graphics.Color[]
private static final String
private static final String
private static final String
private static final Object
private org.eclipse.swt.graphics.Color
private final int
private final int
private final int
private final int[]
private final int
private final int
static final String
private static final int
private org.eclipse.swt.graphics.Color
private org.eclipse.swt.graphics.Color
static final Class
(package private) org.eclipse.swt.widgets.Display
private ColumnTorrentFileProgress
private static org.eclipse.swt.graphics.Font
private static org.eclipse.swt.graphics.Font
private final ColumnProgressETA.MyParameterListener
private boolean
private static int
static final long
private boolean
private boolean
private boolean
private static int
Fields inherited from class com.biglybt.ui.common.table.impl.TableColumnImpl
this_mon
Fields inherited from interface com.biglybt.pif.ui.tables.TableColumn
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEAD, ALIGN_TOP, ALIGN_TRAIL, CAT_BYTES, CAT_CONNECTION, CAT_CONTENT, CAT_ESSENTIAL, CAT_PEER_IDENTIFICATION, CAT_PROGRESS, CAT_PROTOCOL, CAT_SETTINGS, CAT_SHARING, CAT_SWARM, CAT_TIME, CAT_TRACKER, INTERVAL_GRAPHIC, INTERVAL_INVALID_ONLY, INTERVAL_LIVE, MENU_STYLE_COLUMN_DATA, MENU_STYLE_HEADER, POSITION_INVISIBLE, POSITION_LAST, TYPE_GRAPHIC, TYPE_TEXT, TYPE_TEXT_ONLY, UD_FORCE_VISIBLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
triggered when a cell is being added.void
triggered when a mouse event for the TableCell occurs, excluding mouse move.void
cellPaint
(org.eclipse.swt.graphics.GC gc, TableCellSWT cell) void
Provide the app with information about your Table Columnprivate long
private int
getPercentDone
(Object ds) private long
private int
private void
void
implement this method if you want to be notified when the stored column configuration such as user data or GUI-adjustable properties have been loadedvoid
Triggered based on refresh interval specified inTableColumn.getRefreshInterval()
void
remove()
Methods inherited from class com.biglybt.ui.swt.views.table.CoreTableColumnSWT
addListeners
Methods inherited from class com.biglybt.ui.common.table.impl.CoreTableColumn
initializeAsGraphic, initializeAsGraphic
Methods inherited from class com.biglybt.ui.common.table.impl.TableColumnImpl
addCellAddedListener, addCellClipboardListener, addCellDisposeListener, addCellMenuListener, addCellMouseListener, addCellMouseMoveListener, addCellOtherListener, addCellRefreshListener, addCellToolTipListener, addCellVisibilityListener, addColumnExtraInfoListener, addContextMenuItem, addContextMenuItem, addDataSourceType, addDataSourceTypes, addRefreshTime, compare, doesAutoTooltip, generateDiagnostics, getAlignment, getBackgroundColor, getCellAddedListeners, getCellOtherListeners, getCellRefreshListeners, getClipboardText, getColumnAdded, getColumnExtraInfoListeners, getConsecutiveErrCount, getContextMenuItems, getForDataSourceType, getForDataSourceTypes, getForegroundColor, getIconReference, getIconReferenceEnabled, getInplaceEditorListener, getLastSortValueChange, getMaxWidth, getMinWidth, getName, getNameOverride, getPosition, getPreferredWidth, getPreferredWidthMax, getRefreshInterval, getTableID, getTitleLanguageKey, getTitleLanguageKey, getType, getUseCoreDataSource, getUserData, getUserDataString, getWidth, handlesDataSourceType, hasCellMouseMoveListener, hasCellOtherListeners, hasCellRefreshListener, hasInplaceEditorListener, initialize, initialize, invalidateCell, invalidateCells, invokeCellAddedListeners, invokeCellDisposeListeners, invokeCellMenuListeners, invokeCellMouseListeners, invokeCellRefreshListeners, invokeCellToolTipListeners, invokeCellVisibilityListeners, isDirty, isFirstLoad, isObfuscated, isPreferredWidthAuto, isRemoved, isSortAscending, isSortValueLive, isVisible, loadSettings, preAdd, preConfigSave, removeCellAddedListener, removeCellClipboardListener, removeCellDisposeListener, removeCellMenuListener, removeCellMouseListener, removeCellMouseMoveListener, removeCellOtherListener, removeCellRefreshListener, removeCellToolTipListener, removeCellVisibilityListener, removeColumnExtraInfoListener, removeContextMenuItem, removeUserData, reset, saveSettings, setAlignment, setAutoTooltip, setBackgroundColor, setColumnAdded, setConsecutiveErrCount, setDefaultSortAscending, setForegroundColor, setIconReference, setIconReferenceEnabled, setInplaceEditorListener, setLastSortValueChange, setMaxWidth, setMinimumRequiredUserMode, setMinWidth, setNameOverride, setObfuscation, setPosition, setPositionNoShift, setPreferredWidth, setPreferredWidthAuto, setPreferredWidthMax, setRefreshInterval, setSortAscending, setSortValueLive, setTableID, setType, setUseCoreDataSource, setUserData, setVisible, setWidth, setWidthLimits, setWidthPX, showOnlyImage, triggerColumnSizeChange
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
DATASOURCE_TYPE
-
COLUMN_ID
- See Also:
-
SHOW_ETA_AFTER_MS
public static final long SHOW_ETA_AFTER_MS- See Also:
-
CFG_SHOWETA
- See Also:
-
CFG_SHOWSPEED
- See Also:
-
CFG_SHOW3D
- See Also:
-
borderWidth
private static final int borderWidth- See Also:
-
COLUMN_WIDTH
private static final int COLUMN_WIDTH- See Also:
-
CLICK_KEY
-
fontText
private static org.eclipse.swt.graphics.Font fontText -
textHeightPX
private static int textHeightPX -
fontSecondLine
private static org.eclipse.swt.graphics.Font fontSecondLine -
secondLineHeightPX
private static int secondLineHeightPX -
myParameterListener
-
showETA
private boolean showETA -
showSpeed
private boolean showSpeed -
show3D
private boolean show3D -
display
org.eclipse.swt.widgets.Display display -
cBase
private org.eclipse.swt.graphics.Color cBase -
COLOR_DL
private final int COLOR_DL- See Also:
-
COLOR_CD
private final int COLOR_CD- See Also:
-
COLOR_QU
private final int COLOR_QU- See Also:
-
COLOR_OFF
private final int COLOR_OFF- See Also:
-
COLOR_LS
private final int COLOR_LS- See Also:
-
COLOR_MENU_ORDER
private final int[] COLOR_MENU_ORDER -
cDefaults
private org.eclipse.swt.graphics.Color[] cDefaults -
cExplicits
private org.eclipse.swt.graphics.Color[] cExplicits -
cBorder
private org.eclipse.swt.graphics.Color cBorder -
cText
private org.eclipse.swt.graphics.Color cText -
cTextDrop
private org.eclipse.swt.graphics.Color cTextDrop -
cLinks
private org.eclipse.swt.graphics.Color cLinks -
cdf
-
fileProgress
-
progress_eta_absolute
private boolean progress_eta_absolute
-
-
Constructor Details
-
ColumnProgressETA
-
-
Method Details
-
remove
public void remove()- Specified by:
remove
in interfaceTableColumn
- Overrides:
remove
in classTableColumnImpl
-
fillTableColumnInfo
Description copied from interface:TableColumnExtraInfoListener
Provide the app with information about your Table Column- Specified by:
fillTableColumnInfo
in interfaceTableColumnExtraInfoListener
- Overrides:
fillTableColumnInfo
in classCoreTableColumn
- Parameters:
info
- Use setters to set information
-
cellAdded
Description copied from interface:TableCellAddedListener
triggered when a cell is being added.- Specified by:
cellAdded
in interfaceTableCellAddedListener
- Parameters:
cell
- TableCell that is being added
-
cellMouseTrigger
Description copied from interface:TableCellMouseListener
triggered when a mouse event for the TableCell occurs, excluding mouse move.- Specified by:
cellMouseTrigger
in interfaceTableCellMouseListener
- Parameters:
event
- Mouse event information
-
refresh
Description copied from interface:TableCellRefreshListener
Triggered based on refresh interval specified inTableColumn.getRefreshInterval()
- Specified by:
refresh
in interfaceTableCellRefreshListener
- Parameters:
cell
- TableCell that the refresh trigger is for
-
cellPaint
- Specified by:
cellPaint
in interfaceTableCellSWTPaintListener
-
getPercentDone
-
getETA
-
getState
-
getSpeed
-
getEDM
-
log
-
postConfigLoad
public void postConfigLoad()Description copied from interface:TableColumn
implement this method if you want to be notified when the stored column configuration such as user data or GUI-adjustable properties have been loaded- Specified by:
postConfigLoad
in interfaceTableColumn
- Overrides:
postConfigLoad
in classTableColumnImpl
-