Class MiniBar
java.lang.Object
com.biglybt.ui.swt.minibar.MiniBar
- All Implemented Interfaces:
MenuBuildUtils.MenuBuilder
- Direct Known Subclasses:
AllTransfersBar, DownloadBar
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.eclipse.swt.graphics.Colorprivate org.eclipse.swt.graphics.Fontprivate booleanprivate booleanprotected final org.eclipse.swt.graphics.Colorprotected final org.eclipse.swt.graphics.Colorprotected intprotected org.eclipse.swt.widgets.Labelprotected MiniBarManagerprivate org.eclipse.swt.widgets.Menuprivate org.eclipse.swt.events.MouseListenerprivate org.eclipse.swt.events.MouseMoveListenerprotected booleanprotected org.eclipse.swt.widgets.Monitor[]private booleanprotected org.eclipse.swt.widgets.Shellprotected MiniBarprivate floatprotected intprivate intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprotected abstract voidprivate voidbuild()voidbuildMenu(org.eclipse.swt.widgets.Menu menu) final voidclose()final voidconstruct(org.eclipse.swt.widgets.Shell main) private org.eclipse.swt.graphics.FontcreateBoldFont(org.eclipse.swt.graphics.Font original) protected final DoubleBufferedLabelcreateDataLabel(int width) protected final DoubleBufferedLabelcreateDataLabel(int width, boolean centered) protected final org.eclipse.swt.widgets.LabelcreateFixedLabel(int width) protected final org.eclipse.swt.widgets.LabelcreateFixedTextLabel(String msg_key, boolean add_colon, boolean bold) protected final voidcreateGap(int width) protected final org.eclipse.swt.widgets.ProgressBarcreatePercentProgressBar(int width) protected final org.eclipse.swt.widgets.ProgressBarcreateProgressBar(int min, int max, int width, MiniBar.ProgressBarText pbt) protected final DoubleBufferedLabelvoiddispose()protected voidfinal voidprotected abstract Objectprotected org.eclipse.swt.graphics.PointObject[]String[]getPluginMenuIdentifiers(Object[] context) org.eclipse.swt.widgets.ShellgetShell()final booleanhasContext(Object context) final booleanfinal voidrefresh()protected abstract voidrefresh0()private voidprotected final voidsetSnapLocation(org.eclipse.swt.graphics.Point currentLoc) voidsetStucked(MiniBar mw) voidsetVisible(boolean visible) protected voidstoreLastLocation(org.eclipse.swt.graphics.Point point) protected voidupdateSpeedLabel(DoubleBufferedLabel label, long data_rate, long protocol_rate) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MenuBuildUtils.MenuBuilder
buildMenu
-
Field Details
-
bg_colour
protected final org.eclipse.swt.graphics.Color bg_colour -
fg_colour
protected final org.eclipse.swt.graphics.Color fg_colour -
fg_text_colour
protected final org.eclipse.swt.graphics.Color fg_text_colour -
lDrag
protected org.eclipse.swt.widgets.Label lDrag -
stucked
-
screens
protected org.eclipse.swt.widgets.Monitor[] screens -
xPressed
protected int xPressed -
yPressed
protected int yPressed -
moving
protected boolean moving -
hSize
protected int hSize -
splash
protected org.eclipse.swt.widgets.Shell splash -
manager
-
bold_font
private org.eclipse.swt.graphics.Font bold_font -
constructing
private boolean constructing -
constructed
private boolean constructed -
mMoveListener
private org.eclipse.swt.events.MouseMoveListener mMoveListener -
mListener
private org.eclipse.swt.events.MouseListener mListener -
xSize
private int xSize -
separateDataProt
private boolean separateDataProt -
width_multiplier
private float width_multiplier
-
-
Constructor Details
-
MiniBar
-
-
Method Details
-
setPrebuildValues
private void setPrebuildValues() -
assertConstructing
private void assertConstructing() -
createBoldFont
private org.eclipse.swt.graphics.Font createBoldFont(org.eclipse.swt.graphics.Font original) -
createGap
protected final void createGap(int width) -
createFixedTextLabel
protected final org.eclipse.swt.widgets.Label createFixedTextLabel(String msg_key, boolean add_colon, boolean bold) -
createFixedLabel
protected final org.eclipse.swt.widgets.Label createFixedLabel(int width) -
createDataLabel
-
createDataLabel
-
createSpeedLabel
-
updateSpeedLabel
-
createProgressBar
protected final org.eclipse.swt.widgets.ProgressBar createProgressBar(int min, int max, int width, MiniBar.ProgressBarText pbt) -
createPercentProgressBar
protected final org.eclipse.swt.widgets.ProgressBar createPercentProgressBar(int width) -
construct
public final void construct(org.eclipse.swt.widgets.Shell main) -
build
private void build() -
buildMenu
public void buildMenu(org.eclipse.swt.widgets.Menu menu) -
setSnapLocation
protected final void setSnapLocation(org.eclipse.swt.graphics.Point currentLoc) -
getShell
public org.eclipse.swt.widgets.Shell getShell() -
setVisible
public void setVisible(boolean visible) -
hasSameContext
-
hasContext
-
getStucked
-
setStucked
-
forceSaveLocation
public final void forceSaveLocation() -
close
public final void close() -
dispose
public void dispose() -
refresh
public final void refresh() -
refresh0
protected abstract void refresh0() -
beginConstruction
protected abstract void beginConstruction() -
getContextObject
-
getPluginMenuIdentifiers
-
getPluginMenuContextObjects
-
getInitialLocation
protected org.eclipse.swt.graphics.Point getInitialLocation() -
doubleClick
protected void doubleClick() -
storeLastLocation
protected void storeLastLocation(org.eclipse.swt.graphics.Point point)
-