de.lessvoid.nifty.effects
Class Falloff

java.lang.Object
  extended by de.lessvoid.nifty.effects.Falloff

public class Falloff
extends Object

The Falloff class.

Author:
void

Nested Class Summary
static class Falloff.HoverFalloffConstraint
          falloff constraint.
static class Falloff.HoverFalloffType
          falloff type.
 
Field Summary
static String HOVER_FALLOFF_CONSTRAINT
          falloff constraint.
static String HOVER_FALLOFF_TYPE
          fallofftype.
static String HOVER_HEIGHT
          hover height.
static String HOVER_WIDTH
          hover width.
 
Constructor Summary
Falloff()
           
Falloff(Properties parameter)
          Falloff constructor.
 
Method Summary
 void applyProperties(Properties parameter)
          apply properties.
 Falloff.HoverFalloffConstraint getFalloffConstraint()
           
 float getFalloffValue()
           
 boolean isInside(Element widget, int x, int y)
           
 void updateFalloffValue(Element element, int mouseX, int mouseY)
          calc falloff diszance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOVER_FALLOFF_TYPE

public static final String HOVER_FALLOFF_TYPE
fallofftype.

See Also:
Constant Field Values

HOVER_FALLOFF_CONSTRAINT

public static final String HOVER_FALLOFF_CONSTRAINT
falloff constraint.

See Also:
Constant Field Values

HOVER_WIDTH

public static final String HOVER_WIDTH
hover width.

See Also:
Constant Field Values

HOVER_HEIGHT

public static final String HOVER_HEIGHT
hover height.

See Also:
Constant Field Values
Constructor Detail

Falloff

public Falloff(Properties parameter)
Falloff constructor.

Parameters:
parameter - parameter properties

Falloff

public Falloff()
Method Detail

applyProperties

public void applyProperties(Properties parameter)
apply properties.

Parameters:
parameter - parameter

isInside

public final boolean isInside(Element widget,
                              int x,
                              int y)
Parameters:
widget -
x -
y -
Returns:

updateFalloffValue

public void updateFalloffValue(Element element,
                               int mouseX,
                               int mouseY)
calc falloff diszance.

Parameters:
element - the element to check
mouseX - the mouse position x
mouseY - the mouse position y

getFalloffValue

public float getFalloffValue()

getFalloffConstraint

public Falloff.HoverFalloffConstraint getFalloffConstraint()


Copyright © 2011. All Rights Reserved.