Package com.jhlabs.image
Class RenderTextFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.RenderTextFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A filter which renders text onto an image.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a RenderTextFilter.RenderTextFilter
(String text, Font font, Paint paint, Composite composite, AffineTransform transform) Construct a RenderTextFilter. -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) Get the composite with which to paint the text.getFont()
Get the font with which to paint the text.getPaint()
Get the paint with which to paint the text.getText()
Get the text to paint.Get the transform with which to paint the text.void
setComposite
(Composite composite) Set the composite with which to paint the text.void
Set the font with which to paint the text.void
Set the paint with which to paint the text.void
Set the text to paint.void
setTransform
(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
-
Constructor Details
-
RenderTextFilter
public RenderTextFilter()Construct a RenderTextFilter. -
RenderTextFilter
public RenderTextFilter(String text, Font font, Paint paint, Composite composite, AffineTransform transform) Construct a RenderTextFilter.- Parameters:
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 Details
-
setText
Set the text to paint.- Parameters:
text
- the text- See Also:
-
getText
Get the text to paint.- Returns:
- the text
- See Also:
-
setComposite
Set the composite with which to paint the text.- Parameters:
composite
- the composite- See Also:
-
getComposite
Get the composite with which to paint the text.- Returns:
- the composite
- See Also:
-
setPaint
Set the paint with which to paint the text.- Parameters:
paint
- the paint- See Also:
-
getPaint
Get the paint with which to paint the text.- Returns:
- the paint
- See Also:
-
setFont
Set the font with which to paint the text.- Parameters:
font
- the font- See Also:
-
getFont
Get the font with which to paint the text.- Returns:
- the font
- See Also:
-
setTransform
Set the transform with which to paint the text.- Parameters:
transform
- the transform- See Also:
-
getTransform
Get the transform with which to paint the text.- Returns:
- the transform
- See Also:
-
filter
-