public class RenderTextFilter extends AbstractBufferedImageOp
Modifier and Type | Field and Description |
---|---|
private Composite |
composite |
private Font |
font |
private Paint |
paint |
private String |
text |
private AffineTransform |
transform |
Constructor and Description |
---|
RenderTextFilter()
Construct a RenderTextFilter.
|
RenderTextFilter(String text,
Font font,
Paint paint,
Composite composite,
AffineTransform transform)
Construct a RenderTextFilter.
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
Composite |
getComposite()
Get the composite with which to paint the text.
|
Font |
getFont()
Get the font with which to paint the text.
|
Paint |
getPaint()
Get the paint with which to paint the text.
|
String |
getText()
Get the text to paint.
|
AffineTransform |
getTransform()
Get the transform with which to paint the text.
|
void |
setComposite(Composite composite)
Set the composite with which to paint the text.
|
void |
setFont(Font font)
Set the font with which to paint the text.
|
void |
setPaint(Paint paint)
Set the paint with which to paint the text.
|
void |
setText(String text)
Set the text to paint.
|
void |
setTransform(AffineTransform transform)
Set the transform with which to paint the text.
|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private AffineTransform transform
public RenderTextFilter()
public RenderTextFilter(String text, Font font, Paint paint, Composite composite, 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(String text)
text
- the textgetText()
public String getText()
setText(java.lang.String)
public void setComposite(Composite composite)
composite
- the compositegetComposite()
public Composite getComposite()
setComposite(java.awt.Composite)
public void setPaint(Paint paint)
paint
- the paintgetPaint()
public Paint getPaint()
setPaint(java.awt.Paint)
public void setFont(Font font)
font
- the fontgetFont()
public Font getFont()
setFont(java.awt.Font)
public void setTransform(AffineTransform transform)
transform
- the transformgetTransform()
public AffineTransform getTransform()
setTransform(java.awt.geom.AffineTransform)
public BufferedImage filter(BufferedImage src, BufferedImage dst)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses