public class TextAreaIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
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)
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 Iconjava.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 cutTV-Browser 3.4.4, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)