|
|||||||||||
| 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.TextureButton
A typical button which is capable of displaying a Texture within its drawing area.
A TextureButton is used for choosing new textures. After clicking it a
TextureItemDialog pops up, which
lets the user load or select different textures.
TextureButton uses internally a
TextureItemDialog
| 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 | |
TextureButton(org.eclipse.swt.widgets.Composite parent,
int style,
PaintItem pItem)
Constructor which needs a PaintItem instance for initialising the button. |
|
| Method Summary | |
protected void |
draw(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle cArea)
Draw the content. |
java.lang.String |
getTextureKey()
Returns the texture key |
void |
mouseDown(org.eclipse.swt.events.MouseEvent me)
|
| Methods inherited from class com.tensegrity.gui.swt.control.buttons.AbstractButton |
addSelectionListener, mouseDoubleClick, mouseUp, notifyListeners, removeSelectionListener, widgetDisposed |
| 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 TextureButton(org.eclipse.swt.widgets.Composite parent,
int style,
PaintItem pItem)
parent - the parent Composite to add this button tostyle - the button style. Set SWT.BORDER for a bordered buttonpItem - a PaintItem object for initializing the button conten| Method Detail |
public final java.lang.String getTextureKey()
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 drawingpublic void mouseDown(org.eclipse.swt.events.MouseEvent me)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||