类 RenderTextFilter

  • 所有已实现的接口:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class RenderTextFilter
    extends AbstractBufferedImageOp
    A filter which renders text onto an image.
    • 构造器概要

      构造器 
      构造器 说明
      RenderTextFilter()
      Construct a RenderTextFilter.
      RenderTextFilter​(java.lang.String text, java.awt.Font font, java.awt.Paint paint, java.awt.Composite composite, java.awt.geom.AffineTransform transform)
      Construct a RenderTextFilter.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)  
      java.awt.Composite getComposite()
      Get the composite with which to paint the text.
      java.awt.Font getFont()
      Get the font with which to paint the text.
      java.awt.Paint getPaint()
      Get the paint with which to paint the text.
      java.lang.String getText()
      Get the text to paint.
      java.awt.geom.AffineTransform getTransform()
      Get the transform with which to paint the text.
      void setComposite​(java.awt.Composite composite)
      Set the composite with which to paint the text.
      void setFont​(java.awt.Font font)
      Set the font with which to paint the text.
      void setPaint​(java.awt.Paint paint)
      Set the paint with which to paint the text.
      void setText​(java.lang.String text)
      Set the text to paint.
      void setTransform​(java.awt.geom.AffineTransform transform)
      Set the transform with which to paint the text.
      • 从类继承的方法 java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • RenderTextFilter

        public RenderTextFilter()
        Construct a RenderTextFilter.
      • RenderTextFilter

        public RenderTextFilter​(java.lang.String text,
                                java.awt.Font font,
                                java.awt.Paint paint,
                                java.awt.Composite composite,
                                java.awt.geom.AffineTransform transform)
        Construct a RenderTextFilter.
        参数:
        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)
    • 方法详细资料

      • setText

        public void setText​(java.lang.String text)
        Set the text to paint.
        参数:
        text - the text
        另请参阅:
        getText()
      • getText

        public java.lang.String getText()
        Get the text to paint.
        返回:
        the text
        另请参阅:
        setText(java.lang.String)
      • setComposite

        public void setComposite​(java.awt.Composite composite)
        Set the composite with which to paint the text.
        参数:
        composite - the composite
        另请参阅:
        getComposite()
      • getComposite

        public java.awt.Composite getComposite()
        Get the composite with which to paint the text.
        返回:
        the composite
        另请参阅:
        setComposite(java.awt.Composite)
      • setPaint

        public void setPaint​(java.awt.Paint paint)
        Set the paint with which to paint the text.
        参数:
        paint - the paint
        另请参阅:
        getPaint()
      • getPaint

        public java.awt.Paint getPaint()
        Get the paint with which to paint the text.
        返回:
        the paint
        另请参阅:
        setPaint(java.awt.Paint)
      • setFont

        public void setFont​(java.awt.Font font)
        Set the font with which to paint the text.
        参数:
        font - the font
        另请参阅:
        getFont()
      • getFont

        public java.awt.Font getFont()
        Get the font with which to paint the text.
        返回:
        the font
        另请参阅:
        setFont(java.awt.Font)
      • setTransform

        public void setTransform​(java.awt.geom.AffineTransform transform)
        Set the transform with which to paint the text.
        参数:
        transform - the transform
        另请参阅:
        getTransform()
      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)