BufferedImageOp, Cloneablepublic class RenderTextFilter extends AbstractBufferedImageOp
| 构造器 | 说明 |
|---|---|
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.
|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBpublic 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)
Copyright © 2019. All rights reserved.