类 BufferedSprite

  • 所有已实现的接口:
    Sprite

    public class BufferedSprite
    extends java.lang.Object
    implements Sprite
    This Sprite encapsulates another Sprite, which is then buffered in an Image.
    • 构造器概要

      构造器 
      构造器 说明
      BufferedSprite​(int bufferX, int bufferY, int width, int height, Sprite sprite, proguard.gui.splash.VariableInt x, proguard.gui.splash.VariableInt y)
      Creates a new BufferedSprite with an ABGR image.
      BufferedSprite​(int bufferX, int bufferY, java.awt.Image bufferImage, java.awt.Color backgroundColor, Sprite sprite, proguard.gui.splash.VariableInt x, proguard.gui.splash.VariableInt y)
      Creates a new BufferedSprite with the given image.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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
    • 构造器详细资料

      • BufferedSprite

        public BufferedSprite​(int bufferX,
                              int bufferY,
                              int width,
                              int height,
                              Sprite sprite,
                              proguard.gui.splash.VariableInt x,
                              proguard.gui.splash.VariableInt y)
        Creates a new BufferedSprite with an ABGR image.
        参数:
        bufferX - the x offset of the buffer image.
        bufferY - the y offset of the buffer image.
        width - the width of the buffer image.
        height - the height of the buffer image.
        sprite - the Sprite that is painted in the buffer.
        x - the variable x ordinate of the image buffer for painting.
        y - the variable y ordinate of the image buffer for painting.
      • BufferedSprite

        public BufferedSprite​(int bufferX,
                              int bufferY,
                              java.awt.Image bufferImage,
                              java.awt.Color backgroundColor,
                              Sprite sprite,
                              proguard.gui.splash.VariableInt x,
                              proguard.gui.splash.VariableInt y)
        Creates a new BufferedSprite with the given image.
        参数:
        bufferX - the x offset of the buffer image.
        bufferY - the y offset of the buffer image.
        bufferImage - the Image that is used for the buffering.
        backgroundColor - the background color that is used for the buffer.
        sprite - the Sprite that is painted in the buffer.
        x - the variable x ordinate of the image buffer for painting.
        y - the variable y ordinate of the image buffer for painting.
    • 方法详细资料

      • 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.