Class TransitionOptions
java.lang.Object
com.trimblemaps.mapsdk.style.layers.TransitionOptions
Resembles transition property from the style specification.
-
Constructor Summary
ConstructorsConstructorDescriptionTransitionOptions(long duration, long delay) Create a transition property based on duration and a delay.TransitionOptions(long duration, long delay, boolean enablePlacementTransitions) Create a transition property. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TransitionOptionsfromTransitionOptions(long duration, long delay) Deprecated.longgetDelay()Get the transition delay.longGet the transition duration.inthashCode()booleanGet the flag that describes whether the fade in/out symbol placement transition should be enabled.toString()
-
Constructor Details
-
TransitionOptions
public TransitionOptions(long duration, long delay) Create a transition property based on duration and a delay.- Parameters:
duration- the duration of the transitiondelay- the delay to start the transition
-
TransitionOptions
public TransitionOptions(long duration, long delay, boolean enablePlacementTransitions) Create a transition property.- Parameters:
duration- the duration of the transitiondelay- the delay to start the transitionenablePlacementTransitions- the flag that describes whether the fade in/out symbol placement transition should be enabled. Defaults to true.
-
-
Method Details
-
fromTransitionOptions
Deprecated.usefromTransitionOptions(long, long, boolean)insteadCreate a transition property based on duration and a delay.- Parameters:
duration- the duration of the transitiondelay- the delay to start the transition- Returns:
- a new transition property object
-
getDuration
public long getDuration()Get the transition duration.- Returns:
- the transition duration
-
getDelay
public long getDelay()Get the transition delay.- Returns:
- the transition delay
-
isEnablePlacementTransitions
public boolean isEnablePlacementTransitions()Get the flag that describes whether the fade in/out symbol placement transition should be enabled.- Returns:
- true if the fade in/out symbol placement transition should be enabled, false otherwise
-
equals
-
hashCode
public int hashCode() -
toString
-
fromTransitionOptions(long, long, boolean)instead