|
|||||||||||
| 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.PaintItemLabel
A gui component which visualizes a PaintItem object.
| 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 | |
PaintItemLabel(org.eclipse.swt.widgets.Composite parent,
int style,
PaintItem pItem)
Constructor which requires an initial PaintItem |
|
PaintItemLabel(org.eclipse.swt.widgets.Composite parent,
int style,
PaintItem pItem,
boolean doHighlighting)
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)
Draw the content. |
org.eclipse.swt.graphics.RGB |
getBackColor()
Returns the currently set background color |
org.eclipse.swt.graphics.Color |
getBackground()
Returns the current PaintItem background color |
org.eclipse.swt.graphics.RGB |
getForeColor()
Returns the currently set foreground color |
org.eclipse.swt.graphics.Color |
getForeground()
|
int |
getGradientBackground()
Returns the gradient background color |
int |
getGradientForeground()
Returns the current PaintItem foreground color of |
int |
getGradientType()
Returns the gradient type of the paint item |
PaintItem |
getPaintItem()
Returns the paint item |
int |
getPatternType()
Returns the pattern type of the paint item |
void |
setBackground(int color)
Sets the PaintItem background color |
void |
setBackground(org.eclipse.swt.graphics.RGB backColor)
Sets the PaintItem background color to the specified one |
void |
setForeground(int color)
Sets the PaintItem foreground color |
void |
setForeground(org.eclipse.swt.graphics.RGB foreColor)
Sets the PaintItem foreground color to the specified on |
void |
setGradientType(int type)
Sets the gradient type of the paint item |
void |
setPatternType(int type)
Sets the pattern type of the paint item |
void |
setTexture(java.lang.String textureKey)
Sets the texture key of the paint item |
protected void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent de)
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, 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 PaintItemLabel(org.eclipse.swt.widgets.Composite parent,
int style,
PaintItem pItem)
parent - parent component of this viewstyle - swt style bitspItem - the initial paint item instance
public PaintItemLabel(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 getGradientType()
public final int getPatternType()
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.RGB foreColor)
foreColor - an RGB instance defining the new foreground colorpublic final org.eclipse.swt.graphics.RGB getForeColor()
public final void setBackground(org.eclipse.swt.graphics.RGB backColor)
backColor - an RGB instance representing the new background colorpublic final org.eclipse.swt.graphics.RGB getBackColor()
public final void setForeground(int color)
color - encoded as Tensegrity Color Formatpublic final void setBackground(int color)
color - encoded as Tensegrity Color Formatpublic final void setGradientType(int type)
type - the new gradient typepublic final void setPatternType(int type)
type - the new pattern typepublic final void setTexture(java.lang.String textureKey)
textureKey - the new texture key
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 | ||||||||||