|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.RenderTextFilter
public class RenderTextFilter
A filter which renders text onto an image.
Constructor Summary | |
---|---|
RenderTextFilter()
Construct a RenderTextFilter. |
|
RenderTextFilter(java.lang.String text,
java.awt.Font font,
java.awt.Paint paint,
java.awt.Composite composite,
java.awt.geom.AffineTransform transform)
Construct a RenderTextFilter. |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
|
java.awt.Composite |
getComposite()
Get the composite with which to paint the text. |
java.awt.Font |
getFont()
Get the font with which to paint the text. |
java.awt.Paint |
getPaint()
Get the paint with which to paint the text. |
java.lang.String |
getText()
Get the text to paint. |
java.awt.geom.AffineTransform |
getTransform()
Get the transform with which to paint the text. |
void |
setComposite(java.awt.Composite composite)
Set the composite with which to paint the text. |
void |
setFont(java.awt.Font font)
Set the font with which to paint the text. |
void |
setPaint(java.awt.Paint paint)
Set the paint with which to paint the text. |
void |
setText(java.lang.String text)
Set the text to paint. |
void |
setTransform(java.awt.geom.AffineTransform transform)
Set the transform with which to paint the text. |
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenderTextFilter()
public RenderTextFilter(java.lang.String text, java.awt.Font font, java.awt.Paint paint, java.awt.Composite composite, java.awt.geom.AffineTransform transform)
text
- the textfont
- the font to use (may be null)paint
- the paint (may be null)composite
- the composite (may be null)transform
- the transform (may be null)Method Detail |
---|
public void setText(java.lang.String text)
text
- the textgetText()
public java.lang.String getText()
setText(java.lang.String)
public void setComposite(java.awt.Composite composite)
composite
- the compositegetComposite()
public java.awt.Composite getComposite()
setComposite(java.awt.Composite)
public void setPaint(java.awt.Paint paint)
paint
- the paintgetPaint()
public java.awt.Paint getPaint()
setPaint(java.awt.Paint)
public void setFont(java.awt.Font font)
font
- the fontgetFont()
public java.awt.Font getFont()
setFont(java.awt.Font)
public void setTransform(java.awt.geom.AffineTransform transform)
transform
- the transformgetTransform()
public java.awt.geom.AffineTransform getTransform()
setTransform(java.awt.geom.AffineTransform)
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |