|
|||||||||||
| 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.panels.slidepanel.SlidePanelTitle
Defines the title of a SlidePanel.
Besides a textual representation the SlidePanelTitle contains
two buttons for expanding/collapsing and/or closing the
SlidePanel.
Additionally this class provides various methods to adjust the look of the
SlidePanelTitle, e.g. drawGradient(boolean) or
setFontColor(Color)
| Field Summary |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
SlidePanelTitle(SlidePanel slidePanel,
int style)
Creates a new title object for a SlidePanel with
no gradient background and a black font color. |
|
| Method Summary | |
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed)
|
void |
drawBorders(boolean left,
boolean top,
boolean right,
boolean bottom)
Specifies which borders should be drawn arround the title component. |
void |
drawGradient(boolean b)
Sets if the title background should drawn as a horizontal gradient or not |
void |
insets(int left,
int top,
int right,
int bottom)
Specifies the insets between the title contents and its borders in pixels. |
void |
setBorderColor(org.eclipse.swt.graphics.Color borderColor)
Sets the color to use for drawing surrounding title border |
void |
setFontColor(org.eclipse.swt.graphics.Color c)
Sets the font color to use |
void |
setTitle(java.lang.String title)
Sets the title to display |
| 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 SlidePanelTitle(SlidePanel slidePanel,
int style)
SlidePanel with
no gradient background and a black font color.
slidePanel - the SlidePanel this title belnongs tostyle - SWT style bits| Method Detail |
public final void drawBorders(boolean left,
boolean top,
boolean right,
boolean bottom)
left - set to true if the title should have a left border, false otherwisetop - set to true if the title should have a top border, false otherwiseright - set to true if the title should have a right border, false otherwisebottom - set to true if the title should have a bottom border, false otherwisepublic final void setBorderColor(org.eclipse.swt.graphics.Color borderColor)
borderColor - the new border color
public final void insets(int left,
int top,
int right,
int bottom)
left - space between left border and contenttop - space between top border and contentright - space between right border and contentbottom - space between bottom border and contentpublic final void drawGradient(boolean b)
b - set to true to enable gradient background, otherwise set false.public final void setFontColor(org.eclipse.swt.graphics.Color c)
c - the new font colorpublic final void setTitle(java.lang.String title)
title - the new title
public final org.eclipse.swt.graphics.Point computeSize(int wHint,
int hHint,
boolean changed)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||