| Modifier and Type | Field and Description | 
|---|---|
static float | 
DEFAULT_DURATION  | 
| Constructor and Description | 
|---|
SlideOut()
Slide out via top of screen with  
DEFAULT_DURATION | 
SlideOut(float duration)
Slide out via top of screen with specific duration 
 | 
SlideOut(SlideDirection direction)
Slide out via one side of screen with  
DEFAULT_DURATION | 
SlideOut(SlideDirection direction,
        float duration)
Slide out via one side of screen with specific duration 
 | 
| Modifier and Type | Method and Description | 
|---|---|
float | 
getDuration()  | 
float | 
getSpeed()  | 
boolean | 
isFinished()
True if the effect has completed and should be removed from the
  
UiElement | 
void | 
postEnd(UiElement element)
Called after the effect ends 
 | 
void | 
postRender(Graphics g)
Called after rendering the  
UiElement | 
void | 
preBegin(UiElement element)
Called before the effect begins 
 | 
void | 
preRender(Graphics g)
Called before rendering the  
UiElement | 
boolean | 
update(UiContainerRenderTree uiContainer,
      CollisionBox currentArea,
      Rectangle targetArea,
      float delta)
Updates the effect 
 | 
public static final float DEFAULT_DURATION
public SlideOut()
DEFAULT_DURATIONpublic SlideOut(float duration)
duration - The duration of the animationpublic SlideOut(SlideDirection direction)
DEFAULT_DURATIONdirection - The direction to slide out. Note that this is the direction that
            the UiElement will move.public SlideOut(SlideDirection direction, float duration)
direction - The direction to slide out. Note that this is the direction that
            the UiElement will move.duration - The duration of the animationpublic boolean update(UiContainerRenderTree uiContainer, CollisionBox currentArea, Rectangle targetArea, float delta)
UiEffectupdate in interface UiEffectuiContainer - The UiContainerRenderTree the UiElement
            belongs tocurrentArea - The current area that the UiElement is set to render
            in. Manipulate this to change where the element renders.targetArea - The target area that the UiElement is set to render in
            as specified by the render tree and layout.delta - The frame deltaUiElement should be renderedpublic void preBegin(UiElement element)
UiEffectpublic void postEnd(UiElement element)
UiEffectpublic void preRender(Graphics g)
UiEffectUiElementpublic void postRender(Graphics g)
UiEffectUiElementpostRender in interface UiEffectg - The Graphics contextpublic boolean isFinished()
UiEffectUiElementisFinished in interface UiEffectpublic float getDuration()
public float getSpeed()