Interface AnimationPropertyKey
-
- All Superinterfaces:
AnimationCollectionKey
,IsTypedAnimationKey
,Key
- All Known Implementing Classes:
DefaultAnimationPropertyKey
,StandardAnimationProperty
public interface AnimationPropertyKey extends AnimationCollectionKey
Represents the property id to set to the configure animation collection items.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
Static Methods Modifier and Type Method Description static AnimationPropertyKey
checkAndGetIfValid(AnimationPropertyKey property)
Checks if property passed as argument is notnull
and its value is notnull
as well.
If not, throw aIllegalArgumentException
, otherwise it returns the key.static void
checkIfValid(AnimationPropertyKey property)
Checks if type passed as argument is notnull
and its type is notnull
as well.
If not, throw aIllegalArgumentException
.static AnimationPropertyKey
create(String property, AnimationType type)
Returns a animation property instance by its string value.static boolean
isValid(AnimationPropertyKey property)
Returnstrue
if type passed as argument is notnull
and its type is notnull
as well.-
Methods inherited from interface org.pepstock.charba.client.options.AnimationCollectionKey
properties
-
Methods inherited from interface org.pepstock.charba.client.options.IsTypedAnimationKey
type
-
-
-
-
Method Detail
-
create
static AnimationPropertyKey create(String property, AnimationType type)
Returns a animation property instance by its string value.- Parameters:
property
- string value to usetype
- type related to the typeof property- Returns:
- new property instance
-
isValid
static boolean isValid(AnimationPropertyKey property)
Returnstrue
if type passed as argument is notnull
and its type is notnull
as well.- Parameters:
property
- animation property to be checked- Returns:
true
if type passed as argument is notnull
and its type is notnull
as well.
-
checkIfValid
static void checkIfValid(AnimationPropertyKey property)
Checks if type passed as argument is notnull
and its type is notnull
as well.
If not, throw aIllegalArgumentException
.- Parameters:
property
- animation property to be checked
-
checkAndGetIfValid
static AnimationPropertyKey checkAndGetIfValid(AnimationPropertyKey property)
Checks if property passed as argument is notnull
and its value is notnull
as well.
If not, throw aIllegalArgumentException
, otherwise it returns the key.- Parameters:
property
- property to be checked- Returns:
- the same property passed as argument
-
-