com.jhlabs.image
Class RenderTextFilter
- BufferedImageOp, Cloneable
public class RenderTextFilter
A filter which renders text onto an image.
RenderTextFilter() - Construct a RenderTextFilter.
|
RenderTextFilter(String text, Font font, Paint paint, Composite composite, AffineTransform transform) - Construct a RenderTextFilter.
|
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.
|
RenderTextFilter
public RenderTextFilter()
Construct a RenderTextFilter.
RenderTextFilter
public RenderTextFilter(String text,
Font font,
Paint paint,
Composite composite,
AffineTransform transform)
Construct a RenderTextFilter.
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)
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
getComposite
public Composite getComposite()
Get the composite with which to paint the text.
getFont
public Font getFont()
Get the font with which to paint the text.
getPaint
public Paint getPaint()
Get the paint with which to paint the text.
getText
public String getText()
Get the text to paint.
getTransform
public AffineTransform getTransform()
Get the transform with which to paint the text.
setComposite
public void setComposite(Composite composite)
Set the composite with which to paint the text.
composite
- the composite
setFont
public void setFont(Font font)
Set the font with which to paint the text.
setPaint
public void setPaint(Paint paint)
Set the paint with which to paint the text.
setText
public void setText(String text)
Set the text to paint.
setTransform
public void setTransform(AffineTransform transform)
Set the transform with which to paint the text.
transform
- the transform