类 TextSprite

  • 所有已实现的接口:
    Sprite

    public class TextSprite
    extends java.lang.Object
    implements Sprite
    This Sprite represents a text.
    • 构造器概要

      构造器 
      构造器 说明
      TextSprite​(proguard.gui.splash.VariableString[] text, proguard.gui.splash.VariableInt spacing, proguard.gui.splash.VariableInt x, proguard.gui.splash.VariableInt y)
      Creates a new TextSprite containing a multiple lines of text.
      TextSprite​(proguard.gui.splash.VariableString text, proguard.gui.splash.VariableInt x, proguard.gui.splash.VariableInt y)
      Creates a new TextSprite containing a single line of text.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void paint​(java.awt.Graphics graphics, long time)
      Paints the object.
      • 从类继承的方法 java.lang.Object

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

      • TextSprite

        public TextSprite​(proguard.gui.splash.VariableString text,
                          proguard.gui.splash.VariableInt x,
                          proguard.gui.splash.VariableInt y)
        Creates a new TextSprite containing a single line of text.
        参数:
        text - the variable text string.
        x - the variable x-coordinate of the lower-left corner of the text.
        y - the variable y-coordinate of the lower-left corner of the text.
      • TextSprite

        public TextSprite​(proguard.gui.splash.VariableString[] text,
                          proguard.gui.splash.VariableInt spacing,
                          proguard.gui.splash.VariableInt x,
                          proguard.gui.splash.VariableInt y)
        Creates a new TextSprite containing a multiple lines of text.
        参数:
        text - the variable text strings.
        spacing - the variable spacing between the lines of text.
        x - the variable x-coordinate of the lower-left corner of the first line of text.
        y - the variable y-coordinate of the lower-left corner of the first line of text.
    • 方法详细资料

      • paint

        public void paint​(java.awt.Graphics graphics,
                          long time)
        从接口复制的说明: Sprite
        Paints the object.
        指定者:
        paint 在接口中 Sprite
        参数:
        graphics - the Graphics to paint on.
        time - the time since the start of the animation, expressed in milliseconds.