com.tensegrity.gui.swt.control.labels
Class GradientLabel

java.lang.Object
  extended byorg.eclipse.swt.widgets.Widget
      extended byorg.eclipse.swt.widgets.Control
          extended byorg.eclipse.swt.widgets.Scrollable
              extended byorg.eclipse.swt.widgets.Composite
                  extended byorg.eclipse.swt.widgets.Canvas
                      extended bycom.tensegrity.gui.swt.control.widgets.BorderedWidget
                          extended bycom.tensegrity.gui.swt.control.labels.GradientLabel
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

Deprecated. please use PaintItemLabel instead

public class GradientLabel
extends BorderedWidget

A gui component which visualizes a color gradient. NOTE: this class is marked as deprecated. Please use PaintItemLabel instead.

Version:
$Id: GradientLabel.java,v 1.10 2006/03/02 11:41:40 BurkhardWick Exp $
Author:
Arnd Houben

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

GradientLabel

public GradientLabel(org.eclipse.swt.widgets.Composite parent,
                     int style,
                     PaintItem pItem)
Deprecated. 
Constructor which requires an initial PaintItem instance

Parameters:
parent - the composite to add this MarkerLabel to
style - SWT style bits (only SWT.BORDER has an effect)
pItem - the initial PaintItem

GradientLabel

public 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

Parameters:
parent - parent component of this view
style - swt style bits
pItem - the initial paint item instance
doHighlighting - set to true to indicate that the label should be highlighted, false otherwise
Method Detail

getPaintItem

public final PaintItem getPaintItem()
Deprecated. 
Returns the corresponding paint item

Returns:
the paint item instance

getType

public final int getType()
Deprecated. 
Returns the paint item gradient type

Returns:
the gradient type

getGradientBackground

public final int getGradientBackground()
Deprecated. 
Returns the gradient background color

Returns:
background color encoded as Tensegrity Color Format

getGradientForeground

public final int getGradientForeground()
Deprecated. 
Returns the gradient foreground color

Returns:
foreground color encoded as Tensegrity Color Format

getBackground

public final org.eclipse.swt.graphics.Color getBackground()
Deprecated. 

getForeground

public final org.eclipse.swt.graphics.Color getForeground()
Deprecated. 

setForeground

public final void setForeground(org.eclipse.swt.graphics.Color foreColor)
Deprecated. 

setBackground

public final void setBackground(org.eclipse.swt.graphics.Color backColor)
Deprecated. 

setGradientForeground

public final void setGradientForeground(int color)
Deprecated. 
Sets the gradient foreground color

Parameters:
color - encoded as Tensegrity Color Format

setGradientBackground

public final void setGradientBackground(int color)
Deprecated. 
Sets the gradient background color

Parameters:
color - encoded as Tensegrity Color Format

setType

public final void setType(int type)
Deprecated. 
Sets the paint item's gradient type

Parameters:
type - the new gradient type

draw

protected void draw(org.eclipse.swt.graphics.GC gc,
                    org.eclipse.swt.graphics.Rectangle cArea)
Deprecated. 
Description copied from class: BorderedWidget
Draw the content.

Specified by:
draw in class BorderedWidget
Parameters:
gc - the graphicd context to use for drawing
cArea - the area an implementing class can use for drawing

widgetDisposed

protected void widgetDisposed(org.eclipse.swt.events.DisposeEvent de)
Deprecated. 
Description copied from class: BorderedWidget
Called on dispose events. Implementing classes should release all their requested resources

Specified by:
widgetDisposed in class BorderedWidget
Parameters:
de - a DisposeEvent instance with additional information


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.