|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplugins.adufour.ezplug.EzComponent
plugins.adufour.ezplug.EzLabel
public class EzLabel
Class defining a text label for use with EzPlugs.
| Field Summary |
|---|
| Fields inherited from class plugins.adufour.ezplug.EzComponent |
|---|
name, visible |
| Constructor Summary | |
|---|---|
EzLabel(java.lang.String text)
Creates a new EzButton with given title and action listener (i.e. |
|
EzLabel(java.lang.String text,
java.awt.Color textColor)
Creates a new EzButton with given title and action listener (i.e. |
|
| Method Summary | |
|---|---|
protected void |
addTo(java.awt.Container container)
|
void |
setColor(java.awt.Color textColor)
Set the color of the text in this label |
void |
setNumberOfColumns(int nbCols)
Sets the number of columns in this label (this will affect its apparent width). NOTE: By default, the number of columns is translated into a width measure by taking the character " m" as reference (assumed to be the largest possible character). |
void |
setNumberOfRows(int nbRows)
Sets the number of rows in this label (this will affect its apparent height) |
void |
setText(java.lang.String text)
Sets the text of this label |
void |
setToolTipText(java.lang.String text)
Assigns a tool-tip text to the variable, which pops up when the user hovers the mouse on it. |
| Methods inherited from class plugins.adufour.ezplug.EzComponent |
|---|
dispose, getGroup, getVisible, isVisible, setGroup, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EzLabel(java.lang.String text)
text - the text to display
public EzLabel(java.lang.String text,
java.awt.Color textColor)
text - the text to displaytextColor - the default text color| Method Detail |
|---|
public void setText(java.lang.String text)
text - the text to displaypublic void setColor(java.awt.Color textColor)
textColor - the new text colorprotected void addTo(java.awt.Container container)
addTo in class EzComponentpublic void setToolTipText(java.lang.String text)
EzComponent
setToolTipText in class EzComponenttext - the text to display (usually no more than 20 words)public void setNumberOfColumns(int nbCols)
m" as reference (assumed to be the largest possible character). It
does *not* indicate a limit in the number of characters per line, since the width of each
character is potentially different in many fonts.
nbCols - the number of columns of this labelpublic void setNumberOfRows(int nbRows)
nbRows -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||