|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.swt.widgets.Label
org.formaria.swt.Label
public class Label
Draws text. The text may be wrapped over multiple lines. Double buffering is switched off by default.
Copyright (c) Formaria Ltd., 2008
License: see license.txt
| Field Summary | |
|---|---|
protected int |
bufferHeight
|
protected int |
bufferWidth
|
protected boolean |
doubleBuffered
|
protected java.lang.String |
name
|
| Constructor Summary | |
|---|---|
Label(java.lang.Object parent)
Create an Label |
|
| 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. |
java.lang.String |
getToolTip()
Get the tooltip text |
void |
setDoubleBuffered(boolean buffer)
Toggle use of double buffering when painting this component |
void |
setImage(java.lang.String imageUrl)
Set the image url |
void |
setText(java.lang.String text)
Set the text |
void |
setToolTip(java.lang.String text)
Set the tooltip text |
void |
setTransparent(boolean b)
Sets the transparency of the text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.formaria.aria.TextHolder |
|---|
getText |
| Field Detail |
|---|
protected java.lang.String name
protected boolean doubleBuffered
protected int bufferWidth
protected int bufferHeight
| Constructor Detail |
|---|
public Label(java.lang.Object parent)
parent - parent object| Method Detail |
|---|
protected void checkSubclass()
public int getAlignment()
public void setTransparent(boolean b)
b - true to make text transparentpublic void setToolTip(java.lang.String text)
text - the new textpublic java.lang.String getToolTip()
public void setImage(java.lang.String imageUrl)
imageUrl - the relative image URLpublic java.lang.Object getPreferredSize()
#getMinimumSize,
LayoutManagerpublic void setDoubleBuffered(boolean buffer)
buffer - true to double bufferpublic void setText(java.lang.String text)
setText in interface TextHoldertext - the new text
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||