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 floatgetFadeInDuration()com.badlogic.gdx.math.InterpolationgetFadeInInterpolation()floatgetFadeOutDuration()com.badlogic.gdx.math.InterpolationgetFadeOutInterpolation()booleanhide(com.badlogic.gdx.scenes.scene2d.Event event, Popup popup)voidsetFadeInDuration(float fadeInDuration)voidsetFadeInInterpolation(com.badlogic.gdx.math.Interpolation fadeInInterpolation)voidsetFadeOutDuration(float fadeOutDuration)voidsetFadeOutInterpolation(com.badlogic.gdx.math.Interpolation fadeOutInterpolation)booleanshow(com.badlogic.gdx.scenes.scene2d.Event event, Popup popup)Methods inherited from class net.dermetfan.gdx.scenes.scene2d.ui.Popup.Behavior.Adapter
handleMethods 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- thefadeInDurationand#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- thefadeInDurationandfadeOutDurationfadeInterpolation- thefadeInInterpolationandfadeOutInterpolation
-
FadeBehavior
public FadeBehavior(float fadeInDuration, float fadeOutDuration)- Parameters:
fadeInDuration- thefadeInDurationfadeOutDuration- thefadeOutDuration
-
FadeBehavior
public FadeBehavior(com.badlogic.gdx.math.Interpolation fadeInInterpolation, com.badlogic.gdx.math.Interpolation fadeOutInterpolation)- Parameters:
fadeInInterpolation- thefadeInInterpolationfadeOutInterpolation- thefadeOutInterpolation
-
FadeBehavior
public FadeBehavior(float fadeInDuration, float fadeOutDuration, com.badlogic.gdx.math.Interpolation fadeInInterpolation, com.badlogic.gdx.math.Interpolation fadeOutInterpolation)- Parameters:
fadeInDuration- thefadeInDurationfadeOutDuration- thefadeOutDurationfadeInInterpolation- thefadeInInterpolationfadeOutInterpolation- thefadeOutInterpolation
-
-
Method Details
-
show
- Specified by:
showin interfacePopup.Behavior- Overrides:
showin classPopup.Behavior.Adapter- Parameters:
event- the Event to handlepopup- the Popup this Behavior is attached to- Returns:
true
-
hide
- Specified by:
hidein interfacePopup.Behavior- Overrides:
hidein 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- thefadeInDurationto set
-
getFadeOutDuration
public float getFadeOutDuration()- Returns:
- the
fadeOutDuration
-
setFadeOutDuration
public void setFadeOutDuration(float fadeOutDuration)- Parameters:
fadeOutDuration- thefadeOutDurationto set
-
getFadeInInterpolation
public com.badlogic.gdx.math.Interpolation getFadeInInterpolation()- Returns:
- the
fadeInDuration
-
setFadeInInterpolation
public void setFadeInInterpolation(com.badlogic.gdx.math.Interpolation fadeInInterpolation)- Parameters:
fadeInInterpolation- thefadeInInterpolationto set
-
getFadeOutInterpolation
public com.badlogic.gdx.math.Interpolation getFadeOutInterpolation()- Returns:
- the
fadeOutInterpolation
-
setFadeOutInterpolation
public void setFadeOutInterpolation(com.badlogic.gdx.math.Interpolation fadeOutInterpolation)- Parameters:
fadeOutInterpolation- thefadeOutInterpolationto set
-