Class HeapStatus
- All Implemented Interfaces:
- Drawable
- Since:
- 3.1
- 
Field SummaryFieldsFields inherited from class org.eclipse.swt.widgets.WidgetnativeZoom
- 
Constructor SummaryConstructorsConstructorDescriptionHeapStatus(Composite parent, IPreferenceStore prefStore) Creates a new heap status control with the given parent, and using the given preference store to obtain settings such as the refresh interval.
- 
Method SummaryModifier and TypeMethodDescriptioncomputeSize(int wHint, int hHint, boolean changed) Returns the preferred size (in points) of the receiver.Returns the foreground color that the receiver will use to draw.voidsetBackground(Color color) Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.voidsetForeground(Color color) Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.Methods inherited from class org.eclipse.swt.widgets.Compositechanged, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toStringMethods inherited from class org.eclipse.swt.widgets.ScrollablecomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar, setScrollbarsModeMethods inherited from class org.eclipse.swt.widgets.ControladdControlListener, 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, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, 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, requestLayout, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateMethods inherited from class org.eclipse.swt.widgets.WidgetaddDisposeListener, addListener, addTypedListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, getTypedListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, removeListener, removeTypedListener, reskin, setData, setDataMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.swt.graphics.DrawableisAutoScalable
- 
Field Details- 
isInGCprotected volatile boolean isInGC
 
- 
- 
Constructor Details- 
HeapStatusCreates a new heap status control with the given parent, and using the given preference store to obtain settings such as the refresh interval.- Parameters:
- parent- the parent composite
- prefStore- the preference store
 
 
- 
- 
Method Details- 
setBackgroundDescription copied from class:ControlSets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.Note: This operation is a hint and may be overridden by the platform. Note: The background color can be overridden by setting a background image. - Overrides:
- setBackgroundin class- Control
- Parameters:
- color- the new color (or null)
 
- 
setForegroundDescription copied from class:ControlSets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.Note: This operation is a hint and may be overridden by the platform. - Overrides:
- setForegroundin class- Control
- Parameters:
- color- the new color (or null)
 
- 
getForegroundDescription copied from class:ControlReturns the foreground color that the receiver will use to draw.- Overrides:
- getForegroundin class- Control
- Returns:
- the receiver's foreground color
 
- 
computeSizeDescription copied from class:ControlReturns the preferred size (in points) of the receiver.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.DEFAULTis 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 befalse, so layout manager caches can be retained.- Overrides:
- computeSizein class- Control
- Parameters:
- wHint- the width hint (can be- SWT.DEFAULT)
- hHint- the height hint (can be- SWT.DEFAULT)
- changed-- trueif the control's contents have changed, and- falseotherwise
- Returns:
- the preferred size of the control.
- See Also:
 
 
-