|
|||||||||||
| 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
com.tensegrity.gui.swt.control.widgets.BorderedWidget
com.tensegrity.gui.swt.control.labels.GradientLabel
PaintItemLabel instead
A gui component which visualizes a color gradient. NOTE: this class is marked as deprecated. Please use PaintItemLabel instead.
| Field Summary |
| Fields inherited from class com.tensegrity.gui.swt.control.widgets.BorderedWidget |
indent |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
GradientLabel(org.eclipse.swt.widgets.Composite parent,
int style,
PaintItem pItem)
Deprecated. Constructor which requires an initial PaintItem instance |
|
GradientLabel(org.eclipse.swt.widgets.Composite parent,
int style,
PaintItem pItem,
boolean doHighlighting)
Deprecated. Constructor which lets the user define if the label should be highlighted on mouse over events |
|
| Method Summary | |
protected void |
draw(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle cArea)
Deprecated. Draw the content. |
org.eclipse.swt.graphics.Color |
getBackground()
Deprecated. |
org.eclipse.swt.graphics.Color |
getForeground()
Deprecated. |
int |
getGradientBackground()
Deprecated. Returns the gradient background color |
int |
getGradientForeground()
Deprecated. Returns the gradient foreground color |
PaintItem |
getPaintItem()
Deprecated. Returns the corresponding paint item |
int |
getType()
Deprecated. Returns the paint item gradient type |
void |
setBackground(org.eclipse.swt.graphics.Color backColor)
Deprecated. |
void |
setForeground(org.eclipse.swt.graphics.Color foreColor)
Deprecated. |
void |
setGradientBackground(int color)
Deprecated. Sets the gradient background color |
void |
setGradientForeground(int color)
Deprecated. Sets the gradient foreground color |
void |
setType(int type)
Deprecated. Sets the paint item's gradient type |
protected void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent de)
Deprecated. Called on dispose events. |
| Methods inherited from class com.tensegrity.gui.swt.control.widgets.BorderedWidget |
computeSize, hasBorder, setBorderColor |
| Methods inherited from class org.eclipse.swt.widgets.Canvas |
getCaret, scroll, setCaret, setFont |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
checkSubclass, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, 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, getBorderWidth, getBounds, getEnabled, getFont, 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, setBounds, setBounds, setCapture, setCursor, setEnabled, 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 |
| Constructor Detail |
public GradientLabel(org.eclipse.swt.widgets.Composite parent,
int style,
PaintItem pItem)
parent - the composite to add this MarkerLabel tostyle - SWT style bits (only SWT.BORDER has an effect)pItem - the initial PaintItem
public GradientLabel(org.eclipse.swt.widgets.Composite parent,
int style,
PaintItem pItem,
boolean doHighlighting)
parent - parent component of this viewstyle - swt style bitspItem - the initial paint item instancedoHighlighting - set to true to indicate that the label should be
highlighted, false otherwise| Method Detail |
public final PaintItem getPaintItem()
public final int getType()
public final int getGradientBackground()
public final int getGradientForeground()
public final org.eclipse.swt.graphics.Color getBackground()
public final org.eclipse.swt.graphics.Color getForeground()
public final void setForeground(org.eclipse.swt.graphics.Color foreColor)
public final void setBackground(org.eclipse.swt.graphics.Color backColor)
public final void setGradientForeground(int color)
color - encoded as Tensegrity Color Formatpublic final void setGradientBackground(int color)
color - encoded as Tensegrity Color Formatpublic final void setType(int type)
type - the new gradient type
protected void draw(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle cArea)
BorderedWidget
draw in class BorderedWidgetgc - the graphicd context to use for drawingcArea - the area an implementing class can use for drawingprotected void widgetDisposed(org.eclipse.swt.events.DisposeEvent de)
BorderedWidget
widgetDisposed in class BorderedWidgetde - a DisposeEvent instance with additional information
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||