类 RectangleSprite

  • 所有已实现的接口:
    Sprite

    public class RectangleSprite
    extends java.lang.Object
    implements Sprite
    This Sprite represents an animated rounded rectangle. It can optionally be filled.
    • 构造器概要

      构造器 
      构造器 说明
      RectangleSprite​(boolean filled, proguard.gui.splash.VariableColor color, proguard.gui.splash.VariableInt x, proguard.gui.splash.VariableInt y, proguard.gui.splash.VariableInt width, proguard.gui.splash.VariableInt height)
      Creates a new rectangular RectangleSprite.
      RectangleSprite​(boolean filled, proguard.gui.splash.VariableColor color, proguard.gui.splash.VariableInt x, proguard.gui.splash.VariableInt y, proguard.gui.splash.VariableInt width, proguard.gui.splash.VariableInt height, proguard.gui.splash.VariableInt arcWidth, proguard.gui.splash.VariableInt arcHeight)
      Creates a new RectangleSprite with rounded corners.
    • 方法概要

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

      • RectangleSprite

        public RectangleSprite​(boolean filled,
                               proguard.gui.splash.VariableColor color,
                               proguard.gui.splash.VariableInt x,
                               proguard.gui.splash.VariableInt y,
                               proguard.gui.splash.VariableInt width,
                               proguard.gui.splash.VariableInt height)
        Creates a new rectangular RectangleSprite.
        参数:
        filled - specifies whether the rectangle should be filled.
        color - the variable color of the rectangle.
        x - the variable x-ordinate of the upper-left corner of the rectangle.
        y - the variable y-ordinate of the upper-left corner of the rectangle.
        width - the variable width of the rectangle.
        height - the variable height of the rectangle.
      • RectangleSprite

        public RectangleSprite​(boolean filled,
                               proguard.gui.splash.VariableColor color,
                               proguard.gui.splash.VariableInt x,
                               proguard.gui.splash.VariableInt y,
                               proguard.gui.splash.VariableInt width,
                               proguard.gui.splash.VariableInt height,
                               proguard.gui.splash.VariableInt arcWidth,
                               proguard.gui.splash.VariableInt arcHeight)
        Creates a new RectangleSprite with rounded corners.
        参数:
        filled - specifies whether the rectangle should be filled.
        color - the variable color of the rectangle.
        x - the variable x-ordinate of the upper-left corner of the rectangle.
        y - the variable y-ordinate of the upper-left corner of the rectangle.
        width - the variable width of the rectangle.
        height - the variable height of the rectangle.
        arcWidth - the variable width of the corner arcs.
        arcHeight - the variable height of the corner arcs.
    • 方法详细资料

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