Class Popup.FadeBehavior
java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.Popup.Behavior.Adapter
net.dermetfan.gdx.scenes.scene2d.ui.Popup.FadeBehavior
- All Implemented Interfaces:
Popup.Behavior
public static class Popup.FadeBehavior extends Popup.Behavior.Adapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dermetfan.gdx.scenes.scene2d.ui.Popup.Behavior
Popup.Behavior.Adapter
-
Constructor Summary
Constructors Constructor Description FadeBehavior()
creates a FadeBehavior with the default valuesFadeBehavior(float fadeDuration)
FadeBehavior(float fadeInDuration, float fadeOutDuration)
FadeBehavior(float fadeInDuration, float fadeOutDuration, com.badlogic.gdx.math.Interpolation fadeInInterpolation, com.badlogic.gdx.math.Interpolation fadeOutInterpolation)
FadeBehavior(float fadeDuration, com.badlogic.gdx.math.Interpolation fadeInterpolation)
FadeBehavior(com.badlogic.gdx.math.Interpolation fadeInterpolation)
FadeBehavior(com.badlogic.gdx.math.Interpolation fadeInInterpolation, com.badlogic.gdx.math.Interpolation fadeOutInterpolation)
-
Method Summary
Modifier and Type Method Description float
getFadeInDuration()
com.badlogic.gdx.math.Interpolation
getFadeInInterpolation()
float
getFadeOutDuration()
com.badlogic.gdx.math.Interpolation
getFadeOutInterpolation()
boolean
hide(com.badlogic.gdx.scenes.scene2d.Event event, Popup popup)
void
setFadeInDuration(float fadeInDuration)
void
setFadeInInterpolation(com.badlogic.gdx.math.Interpolation fadeInInterpolation)
void
setFadeOutDuration(float fadeOutDuration)
void
setFadeOutInterpolation(com.badlogic.gdx.math.Interpolation fadeOutInterpolation)
boolean
show(com.badlogic.gdx.scenes.scene2d.Event event, Popup popup)
Methods inherited from class net.dermetfan.gdx.scenes.scene2d.ui.Popup.Behavior.Adapter
handle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FadeBehavior
public FadeBehavior()creates a FadeBehavior with the default values -
FadeBehavior
public FadeBehavior(float fadeDuration)- Parameters:
fadeDuration
- thefadeInDuration
and#fadeOutDuration
-
FadeBehavior
public FadeBehavior(com.badlogic.gdx.math.Interpolation fadeInterpolation)- Parameters:
fadeInterpolation
- the
-
FadeBehavior
public FadeBehavior(float fadeDuration, com.badlogic.gdx.math.Interpolation fadeInterpolation)- Parameters:
fadeDuration
- thefadeInDuration
andfadeOutDuration
fadeInterpolation
- thefadeInInterpolation
andfadeOutInterpolation
-
FadeBehavior
public FadeBehavior(float fadeInDuration, float fadeOutDuration)- Parameters:
fadeInDuration
- thefadeInDuration
fadeOutDuration
- thefadeOutDuration
-
FadeBehavior
public FadeBehavior(com.badlogic.gdx.math.Interpolation fadeInInterpolation, com.badlogic.gdx.math.Interpolation fadeOutInterpolation)- Parameters:
fadeInInterpolation
- thefadeInInterpolation
fadeOutInterpolation
- thefadeOutInterpolation
-
FadeBehavior
public FadeBehavior(float fadeInDuration, float fadeOutDuration, com.badlogic.gdx.math.Interpolation fadeInInterpolation, com.badlogic.gdx.math.Interpolation fadeOutInterpolation)- Parameters:
fadeInDuration
- thefadeInDuration
fadeOutDuration
- thefadeOutDuration
fadeInInterpolation
- thefadeInInterpolation
fadeOutInterpolation
- thefadeOutInterpolation
-
-
Method Details
-
show
- Specified by:
show
in interfacePopup.Behavior
- Overrides:
show
in classPopup.Behavior.Adapter
- Parameters:
event
- the Event to handlepopup
- the Popup this Behavior is attached to- Returns:
true
-
hide
- Specified by:
hide
in interfacePopup.Behavior
- Overrides:
hide
in classPopup.Behavior.Adapter
- Parameters:
event
- the Event to handlepopup
- the Popup this Behavior is attached to- Returns:
false
-
getFadeInDuration
public float getFadeInDuration()- Returns:
- the
fadeInDuration
-
setFadeInDuration
public void setFadeInDuration(float fadeInDuration)- Parameters:
fadeInDuration
- thefadeInDuration
to set
-
getFadeOutDuration
public float getFadeOutDuration()- Returns:
- the
fadeOutDuration
-
setFadeOutDuration
public void setFadeOutDuration(float fadeOutDuration)- Parameters:
fadeOutDuration
- thefadeOutDuration
to set
-
getFadeInInterpolation
public com.badlogic.gdx.math.Interpolation getFadeInInterpolation()- Returns:
- the
fadeInDuration
-
setFadeInInterpolation
public void setFadeInInterpolation(com.badlogic.gdx.math.Interpolation fadeInInterpolation)- Parameters:
fadeInInterpolation
- thefadeInInterpolation
to set
-
getFadeOutInterpolation
public com.badlogic.gdx.math.Interpolation getFadeOutInterpolation()- Returns:
- the
fadeOutInterpolation
-
setFadeOutInterpolation
public void setFadeOutInterpolation(com.badlogic.gdx.math.Interpolation fadeOutInterpolation)- Parameters:
fadeOutInterpolation
- thefadeOutInterpolation
to set
-