proguard.gui.splash
Class ClipSprite
java.lang.Object
proguard.gui.splash.ClipSprite
- All Implemented Interfaces:
- Sprite
- public class ClipSprite
- extends Object
- implements Sprite
This Sprite encapsulates another Sprite, which is clipped by a clip Sprite.
|
Constructor Summary |
ClipSprite(proguard.gui.splash.VariableColor insideClipColor,
proguard.gui.splash.VariableColor outsideClipColor,
Sprite clipSprite,
Sprite sprite)
Creates a new ClipSprite. |
|
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 |
ClipSprite
public ClipSprite(proguard.gui.splash.VariableColor insideClipColor,
proguard.gui.splash.VariableColor outsideClipColor,
Sprite clipSprite,
Sprite sprite)
- Creates a new ClipSprite.
- Parameters:
insideClipColor - the background color inside the clip sprite.outsideClipColor - the background color outside the clip sprite.clipSprite - the clip Sprite.sprite - the clipped Sprite.
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.