ProGuard

proguard.gui.splash
Class RectangleSprite

java.lang.Object
  extended byproguard.gui.splash.RectangleSprite
All Implemented Interfaces:
Sprite

public class RectangleSprite
extends Object
implements Sprite

This Sprite represents an animated rounded rectangle. It can optionally be filled.


Constructor Summary
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.
 
Method Summary
 void paint(Graphics graphics, long time)
          Paints the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Parameters:
filled - specifies whether the rectangle should be filled.
color - the variable color of the rectangle.
x - the variable x-coordinate of the upper-left corner of the rectangle.
y - the variable y-coordinate 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.

Parameters:
filled - specifies whether the rectangle should be filled.
color - the variable color of the rectangle.
x - the variable x-coordinate of the upper-left corner of the rectangle.
y - the variable y-coordinate of the upper-left corner of the rectangle.
width - the variable width of the rectangle.
height - the variable height of the rectangle.
Method Detail

paint

public void paint(Graphics graphics,
                  long time)
Description copied from interface: Sprite
Paints the object.

Specified by:
paint in interface Sprite
Parameters:
graphics - the Graphics to paint on.
time - the time since the start of the animation, expressed in milliseconds.

ProGuard