|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.beans.AbstractBean
org.jdesktop.swingx.painter.AbstractPainter<T>
org.jdesktop.swingx.painter.AbstractLayoutPainter<T>
org.jdesktop.swingx.painter.AbstractAreaPainter<java.lang.Object>
org.jdesktop.swingx.painter.TextPainter
public class TextPainter
A painter which draws text. If the font, text, and paint are not provided they will be obtained from the object being painted if it is a Swing text component.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jdesktop.swingx.painter.AbstractAreaPainter |
---|
AbstractAreaPainter.Style |
Nested classes/interfaces inherited from class org.jdesktop.swingx.painter.AbstractLayoutPainter |
---|
AbstractLayoutPainter.HorizontalAlignment, AbstractLayoutPainter.VerticalAlignment |
Nested classes/interfaces inherited from class org.jdesktop.swingx.painter.AbstractPainter |
---|
AbstractPainter.Interpolation |
Constructor Summary | |
---|---|
TextPainter()
Creates a new instance of TextPainter |
|
TextPainter(java.lang.String text)
Create a new TextPainter which will paint the specified text |
|
TextPainter(java.lang.String text,
java.awt.Font font)
Create a new TextPainter which will paint the specified text with the specified font. |
|
TextPainter(java.lang.String text,
java.awt.Font font,
java.awt.Paint paint)
Create a new TextPainter which will paint the specified text with the specified font and paint. |
|
TextPainter(java.lang.String text,
java.awt.Paint paint)
Create a new TextPainter which will paint the specified text with the specified paint. |
Method Summary | |
---|---|
java.awt.Font |
getFont()
gets the font (and font size and style) to be used when drawing the text |
java.lang.String |
getText()
gets the text currently used to draw |
void |
setFont(java.awt.Font f)
Set the font (and font size and style) to be used when drawing the text |
void |
setText(java.lang.String text)
Sets the text to draw |
Methods inherited from class org.jdesktop.swingx.painter.AbstractAreaPainter |
---|
getAreaEffects, getBorderPaint, getBorderWidth, getFillPaint, getStyle, isPaintStretched, setAreaEffects, setBorderPaint, setBorderWidth, setFillPaint, setPaintStretched, setStyle |
Methods inherited from class org.jdesktop.swingx.painter.AbstractLayoutPainter |
---|
getHorizontalAlignment, getInsets, getVerticalAlignment, isFillHorizontal, isFillVertical, setFillHorizontal, setFillVertical, setHorizontalAlignment, setInsets, setVerticalAlignment |
Methods inherited from class org.jdesktop.swingx.painter.AbstractPainter |
---|
clearCache, getFilters, getInterpolation, isAntialiasing, isCacheable, isVisible, paint, setAntialiasing, setCacheable, setFilters, setInterpolation, setVisible |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextPainter()
public TextPainter(java.lang.String text)
text
- the text to paintpublic TextPainter(java.lang.String text, java.awt.Font font)
text
- the text to paintfont
- the font to paint the text withpublic TextPainter(java.lang.String text, java.awt.Paint paint)
text
- the text to paintpaint
- the paint to paint withpublic TextPainter(java.lang.String text, java.awt.Font font, java.awt.Paint paint)
text
- the text to paintfont
- the font to paint the text withpaint
- the paint to paint withMethod Detail |
---|
public void setFont(java.awt.Font f)
f
- the new fontpublic java.awt.Font getFont()
public void setText(java.lang.String text)
text
- the text to drawpublic java.lang.String getText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |