|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.ui.TextAreaIcon
public class TextAreaIcon
An icon that displays multiline text.
Constructor Summary | |
---|---|
TextAreaIcon(java.lang.String text,
java.awt.Font font,
int width)
Creates a TextAreaIcon with the specified text, font and width. |
|
TextAreaIcon(java.lang.String text,
java.awt.Font font,
int width,
int lineSpace)
Creates a TextAreaIcon with the specified text, font and width. |
Method Summary | |
---|---|
int |
getIconHeight()
Returns the icon's height. |
int |
getIconWidth()
Returns the icon's mWidth. |
int |
getLineCount()
|
int |
getMaximumLineCount()
Get the maximum LineCount |
boolean |
isTextCut()
has the text in this icon been cut because it was longer than maxLines? |
void |
paintIcon(java.awt.Component comp,
java.awt.Graphics grp,
int x,
int y)
Draw the icon at the specified location. |
void |
setMaximumLineCount(int maxLineCount)
Sets the maximum Linecount |
void |
setText(java.io.Reader textReader)
Set the Text of this Icon |
void |
setText(java.lang.String text)
Set the Text of this Icon |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextAreaIcon(java.lang.String text, java.awt.Font font, int width, int lineSpace)
public TextAreaIcon(java.lang.String text, java.awt.Font font, int width)
Method Detail |
---|
public void setMaximumLineCount(int maxLineCount)
maxLineCount
- Max Count of Linespublic int getMaximumLineCount()
public void setText(java.lang.String text)
text
- Text in this Iconpublic void setText(java.io.Reader textReader) throws java.io.IOException
textReader
- Text in this Icon
java.io.IOException
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getLineCount()
public void paintIcon(java.awt.Component comp, java.awt.Graphics grp, int x, int y)
paintIcon
in interface javax.swing.Icon
public boolean isTextCut()
true
if the text was cut
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |