|
||||||||||
| 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.Label
net.xoetrope.swt.XLabel
public class XLabel
Draws text. The text may be wrapped over multiple lines. Double buffering is switched off by default.
Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
| Field Summary | |
|---|---|
protected int |
bufferHeight
|
protected int |
bufferWidth
|
protected boolean |
doubleBuffered
|
protected java.lang.String |
name
|
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
XLabel(java.lang.Object parent)
Create an XLabel |
|
| Method Summary | |
|---|---|
protected void |
checkSubclass()
Suppress the subclasing exception |
int |
getAlignment()
Get the alignment style constant |
java.lang.Object |
getPreferredSize()
Gets the preferred size of this component. |
int |
setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
Set one or more attributes of the component. |
void |
setDoubleBuffered(boolean buffer)
Toggle use of double buffering when painting this component |
void |
setText(java.lang.String text)
Set the text |
void |
setTransparent(boolean b)
Sets the transparency of the text. |
| Methods inherited from class org.eclipse.swt.widgets.Label |
|---|
computeSize, getImage, getText, setAlignment, setImage |
| Methods inherited from class org.eclipse.swt.widgets.Control |
|---|
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, 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, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setFocus, setFont, 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 |
| Methods inherited from interface net.xoetrope.xui.XTextHolder |
|---|
getText |
| Field Detail |
|---|
protected java.lang.String name
protected boolean doubleBuffered
protected int bufferWidth
protected int bufferHeight
| Constructor Detail |
|---|
public XLabel(java.lang.Object parent)
parent - parent object| Method Detail |
|---|
protected void checkSubclass()
checkSubclass in class org.eclipse.swt.widgets.Widgetpublic int getAlignment()
getAlignment in class org.eclipse.swt.widgets.Labelpublic void setTransparent(boolean b)
b - true to make text transparent
public int setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
setAttribute in interface XAttributedComponentattribName - the name of the attributeattribValue - the value of the attribute
public java.lang.Object getPreferredSize()
#getMinimumSize,
LayoutManagerpublic void setDoubleBuffered(boolean buffer)
buffer - true to double bufferpublic void setText(java.lang.String text)
setText in interface XTextHoldersetText in class org.eclipse.swt.widgets.Labeltext - the new text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||