public class AnimatedProgress extends Canvas
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
active
Deprecated.
|
(package private) static int |
DEFAULT_HEIGHT
Deprecated.
|
(package private) static int |
DEFAULT_WIDTH
Deprecated.
|
(package private) int |
orientation
Deprecated.
|
(package private) boolean |
showBorder
Deprecated.
|
(package private) boolean |
showStripes
Deprecated.
|
(package private) static int |
SLEEP
Deprecated.
|
(package private) int |
value
Deprecated.
|
| Constructor and Description |
|---|
AnimatedProgress(Composite parent,
int style)
Deprecated.
Constructs a new instance of this class given its parent
and a style value describing its behavior and appearance.
|
| Modifier and Type | Method and Description |
|---|---|
private static int |
checkStyle(int style)
Deprecated.
|
void |
clear()
Deprecated.
Stop the animation if it is not already stopped and
reset the presentation to a blank appearance.
|
Point |
computeSize(int wHint,
int hHint,
boolean changed)
Deprecated.
Returns the preferred size of the receiver.
|
private void |
drawBevelRect(GC gc,
int x,
int y,
int w,
int h,
Color topleft,
Color bottomright)
Deprecated.
|
(package private) void |
paint(PaintEvent event)
Deprecated.
|
(package private) void |
paintStripes(GC gc)
Deprecated.
|
void |
start()
Deprecated.
Start the animation.
|
void |
stop()
Deprecated.
Stop the animation.
|
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIMEchanged, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBaraddControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateaddDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toStringstatic final int SLEEP
static final int DEFAULT_WIDTH
static final int DEFAULT_HEIGHT
boolean active
boolean showStripes
int value
int orientation
boolean showBorder
public AnimatedProgress(Composite parent, int style)
The style value is either one of the style constants defined in
class SWT which is applicable to instances of this
class, or must be built by bitwise OR'ing together
(that is, using the int "|" operator) two or more
of those SWT style constants. The class description
lists the style constants that are applicable to the class.
Style bits are also inherited from superclasses.
parent - a widget which will be the parent of the new instance (cannot be null)style - the style of widget to constructjava.lang.IllegalArgumentException - SWTException - SWT.VERTICAL,
SWT.HORIZONTAL,
SWT.BORDER,
Widget.getStyle()private static int checkStyle(int style)
public void clear()
SWTException - public Point computeSize(int wHint, int hHint, boolean changed)
Control
The preferred size of a control is the size that it would
best be displayed at. The width hint and height hint arguments
allow the caller to ask a control questions such as "Given a particular
width, how high does the control need to be to show all of the contents?"
To indicate that the caller does not wish to constrain a particular
dimension, the constant SWT.DEFAULT is passed for the hint.
If the changed flag is true, it indicates that the receiver's
contents have changed, therefore any caches that a layout manager
containing the control may have been keeping need to be flushed. When the
control is resized, the changed flag will be false, so layout
manager caches can be retained.
computeSize in class CompositewHint - the width hint (can be SWT.DEFAULT)hHint - the height hint (can be SWT.DEFAULT)changed - true if the control's contents have changed, and false otherwiseLayout,
Control.getBorderWidth(),
Control.getBounds(),
Control.getSize(),
Control.pack(boolean),
"computeTrim, getClientArea for controls that implement them"private void drawBevelRect(GC gc, int x, int y, int w, int h, Color topleft, Color bottomright)
void paint(PaintEvent event)
void paintStripes(GC gc)
public void start()
SWTException - public void stop()