|
|||||||||||
| 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.buttons.AbstractButton
com.tensegrity.gui.swt.control.buttons.GradientButton
This class displays a fill gradient. When the user clicks on it he can select from other known gradients
| 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 | |
GradientButton(org.eclipse.swt.widgets.Composite parent,
int style,
PaintItem pItem,
UIManager uiManager)
Constructor expects a paint item for initialization |
|
| Method Summary | |
protected void |
draw(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle cArea)
Draw the content. |
int |
getGradientBackground()
Gets the gradient background color |
int |
getGradientForeground()
Gets the gradient foreground color |
int |
getGradientType()
Returns the gradient type. |
void |
mouseDown(org.eclipse.swt.events.MouseEvent me)
|
void |
setColor(int color)
Sets the background color of the gradient |
protected void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent de)
Called on dispose events. |
| Methods inherited from class com.tensegrity.gui.swt.control.buttons.AbstractButton |
addSelectionListener, mouseDoubleClick, mouseUp, notifyListeners, removeSelectionListener |
| 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, getBackground, 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, 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 |
| Constructor Detail |
public GradientButton(org.eclipse.swt.widgets.Composite parent,
int style,
PaintItem pItem,
UIManager uiManager)
parent - the composite to add this GradientButton tostyle - the SWT style bitspItem - with the initial gradient typeuiManager - the UIManager used for internationalization| Method Detail |
public final int getGradientBackground()
public final int getGradientForeground()
public final int getGradientType()
public final void setColor(int color)
color - the background color in Tensegrity color formatpublic void mouseDown(org.eclipse.swt.events.MouseEvent me)
protected void widgetDisposed(org.eclipse.swt.events.DisposeEvent de)
BorderedWidget
widgetDisposed in class AbstractButton
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 drawing
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||