public class RenderTextFilter extends AbstractBufferedImageOp
filterListener
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, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGB
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)
filter
in interface BufferedImageOp
filter
in class AbstractBufferedImageOp
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.