public class Falloff extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Falloff.HoverFalloffConstraint
falloff constraint.
|
static class |
Falloff.HoverFalloffType
falloff type.
|
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Falloff() |
Falloff(Properties parameter)
Falloff constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String HOVER_FALLOFF_TYPE
public static final String HOVER_FALLOFF_CONSTRAINT
public static final String HOVER_WIDTH
public static final String HOVER_HEIGHT
public Falloff(Properties parameter)
parameter - parameter propertiespublic Falloff()
public void applyProperties(Properties parameter)
parameter - parameterpublic final boolean isInside(Element widget, int x, int y)
widget - x - y - public void updateFalloffValue(Element element, int mouseX, int mouseY)
element - the element to checkmouseX - the mouse position xmouseY - the mouse position ypublic float getFalloffValue()
public Falloff.HoverFalloffConstraint getFalloffConstraint()
Copyright © 2013. All Rights Reserved.