|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
org.eclipse.mylar.internal.tasks.ui.views.TaskProgressBar
public class TaskProgressBar
Derived from JUnitProgressBar
Field Summary | |
---|---|
private int |
colorBarWidth
|
private org.eclipse.swt.graphics.Color |
completedColor
|
private int |
currentTickCount
|
private static int |
DEFAULT_HEIGHT
|
private int |
maxTickCount
|
private org.eclipse.swt.widgets.Composite |
parent
|
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
handle |
Constructor Summary | |
---|---|
TaskProgressBar(org.eclipse.swt.widgets.Composite parent)
|
Method Summary | |
---|---|
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed)
|
private void |
drawBevelRect(org.eclipse.swt.graphics.GC gc,
int x,
int y,
int w,
int h,
org.eclipse.swt.graphics.Color topleft,
org.eclipse.swt.graphics.Color bottomright)
|
private void |
paint(org.eclipse.swt.events.PaintEvent event)
|
private void |
paintStep(int startX,
int endX)
|
void |
reset()
|
void |
reset(int ticksDone,
int maximum)
|
private int |
scale(int value)
|
void |
setCount(int count)
|
void |
setMaximum(int max)
|
private void |
setStatusColor(org.eclipse.swt.graphics.GC gc)
|
void |
step(int failures)
|
Methods inherited from class org.eclipse.swt.widgets.Canvas |
---|
drawBackground, getCaret, scroll, setCaret, setFont |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Control |
---|
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final int DEFAULT_HEIGHT
private int currentTickCount
private int maxTickCount
private int colorBarWidth
private org.eclipse.swt.graphics.Color completedColor
private org.eclipse.swt.widgets.Composite parent
Constructor Detail |
---|
public TaskProgressBar(org.eclipse.swt.widgets.Composite parent)
Method Detail |
---|
public void setMaximum(int max)
public void reset()
public void reset(int ticksDone, int maximum)
private void paintStep(int startX, int endX)
private void setStatusColor(org.eclipse.swt.graphics.GC gc)
private int scale(int value)
private void drawBevelRect(org.eclipse.swt.graphics.GC gc, int x, int y, int w, int h, org.eclipse.swt.graphics.Color topleft, org.eclipse.swt.graphics.Color bottomright)
private void paint(org.eclipse.swt.events.PaintEvent event)
public org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed)
computeSize
in class org.eclipse.swt.widgets.Composite
public void setCount(int count)
public void step(int failures)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |