com.vlsolutions.swing.docking.animation

Class AnimationEvent


public class AnimationEvent
extends java.lang.Object

An Event describing the state of an animation
See Also:
AnimationListener, ComponentAnimator

Field Summary

static int
ANIMATION_END
state identifying the end of an animation
static int
ANIMATION_FRAME
state identifying a change in the animation (the component has changed of bounds)
static int
ANIMATION_START
state identifying the beginning of an animation

Constructor Summary

AnimationEvent(Component source, int state)
Event Constructor.

Method Summary

Object
getSource()
returns the source of animation
int
getState()
returns the state of the animation (ANIMATION_START, ANIMATION_FRAME or ANIMATION_END)

Field Details

ANIMATION_END

public static final int ANIMATION_END
state identifying the end of an animation
Field Value:
2

ANIMATION_FRAME

public static final int ANIMATION_FRAME
state identifying a change in the animation (the component has changed of bounds)
Field Value:
1

ANIMATION_START

public static final int ANIMATION_START
state identifying the beginning of an animation
Field Value:
0

Constructor Details

AnimationEvent

public AnimationEvent(Component source,
                      int state)
Event Constructor.
Parameters:
source - the animated component
state - the state of animation (ANIMATION_START , ANIMATION_FRAME or ANIMATION_END)

Method Details

getSource

public Object getSource()
returns the source of animation

getState

public int getState()
returns the state of the animation (ANIMATION_START, ANIMATION_FRAME or ANIMATION_END)

© Copyright 2004-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications