public class RenderTextFilter extends AbstractBufferedImageOp
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
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)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)