railo.runtime.img.filter
Class RenderTextFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.RenderTextFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class RenderTextFilter
extends AbstractBufferedImageOp
implements DynFiltering

A filter which renders text onto an image.


Constructor Summary
RenderTextFilter()
          Construct a RenderTextFilter.
RenderTextFilter(String text, Font font, Paint paint, Composite composite, AffineTransform transform)
          Construct a RenderTextFilter.
 
Method Summary
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 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.
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 text
font - 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 Detail

setText

public void setText(String text)
Set the text to paint.

Parameters:
text - the text
See Also:
getText()

getText

public String getText()
Get the text to paint.

Returns:
the text
See Also:
setText(java.lang.String)

setComposite

public void setComposite(Composite composite)
Set the composite with which to paint the text.

Parameters:
composite - the composite
See Also:
getComposite()

getComposite

public Composite getComposite()
Get the composite with which to paint the text.

Returns:
the composite
See Also:
setComposite(java.awt.Composite)

setPaint

public void setPaint(Paint paint)
Set the paint with which to paint the text.

Parameters:
paint - the paint
See Also:
getPaint()

getPaint

public Paint getPaint()
Get the paint with which to paint the text.

Returns:
the paint
See Also:
setPaint(java.awt.Paint)

setFont

public void setFont(Font font)
Set the font with which to paint the text.

Parameters:
font - the font
See Also:
getFont()

getFont

public Font getFont()
Get the font with which to paint the text.

Returns:
the font
See Also:
setFont(java.awt.Font)

setTransform

public void setTransform(AffineTransform transform)
Set the transform with which to paint the text.

Parameters:
transform - the transform
See Also:
getTransform()

getTransform

public AffineTransform getTransform()
Get the transform with which to paint the text.

Returns:
the transform
See Also:
setTransform(java.awt.geom.AffineTransform)

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Specified by:
filter in interface BufferedImageOp

filter

public BufferedImage filter(BufferedImage src,
                            Struct parameters)
                     throws PageException
Specified by:
filter in interface DynFiltering
Throws:
PageException


Copyright © 2012 Railo