类 RenderTextFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.RenderTextFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class RenderTextFilter extends AbstractBufferedImageOp
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.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)CompositegetComposite()Get the composite with which to paint the text.FontgetFont()Get the font with which to paint the text.PaintgetPaint()Get the paint with which to paint the text.StringgetText()Get the text to paint.AffineTransformgetTransform()Get the transform with which to paint the text.voidsetComposite(Composite composite)Set the composite with which to paint the text.voidsetFont(Font font)Set the font with which to paint the text.voidsetPaint(Paint paint)Set the paint with which to paint the text.voidsetText(String text)Set the text to paint.voidsetTransform(AffineTransform transform)Set the transform with which to paint the text.-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
构造器详细资料
-
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)
-
-
方法详细资料
-
setText
public void setText(String text)
Set the text to paint.- 参数:
text- the text- 另请参阅:
getText()
-
getText
public String getText()
Get the text to paint.- 返回:
- the text
- 另请参阅:
setText(java.lang.String)
-
setComposite
public void setComposite(Composite composite)
Set the composite with which to paint the text.- 参数:
composite- the composite- 另请参阅:
getComposite()
-
getComposite
public Composite getComposite()
Get the composite with which to paint the text.- 返回:
- the composite
- 另请参阅:
setComposite(java.awt.Composite)
-
setPaint
public void setPaint(Paint paint)
Set the paint with which to paint the text.- 参数:
paint- the paint- 另请参阅:
getPaint()
-
getPaint
public Paint getPaint()
Get the paint with which to paint the text.- 返回:
- the paint
- 另请参阅:
setPaint(java.awt.Paint)
-
setFont
public void setFont(Font font)
Set the font with which to paint the text.- 参数:
font- the font- 另请参阅:
getFont()
-
getFont
public Font getFont()
Get the font with which to paint the text.- 返回:
- the font
- 另请参阅:
setFont(java.awt.Font)
-
setTransform
public void setTransform(AffineTransform transform)
Set the transform with which to paint the text.- 参数:
transform- the transform- 另请参阅:
getTransform()
-
getTransform
public AffineTransform getTransform()
Get the transform with which to paint the text.- 返回:
- the transform
- 另请参阅:
setTransform(java.awt.geom.AffineTransform)
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
-
-