Class TransitionOptions

java.lang.Object
com.trimblemaps.mapsdk.style.layers.TransitionOptions

public class TransitionOptions extends Object
Resembles transition property from the style specification.
  • 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 transition
      delay - 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 transition
      delay - the delay to start the transition
      enablePlacementTransitions - the flag that describes whether the fade in/out symbol placement transition should be enabled. Defaults to true.
  • Method Details

    • fromTransitionOptions

      @Deprecated public static TransitionOptions fromTransitionOptions(long duration, long delay)
      Deprecated.
      use fromTransitionOptions(long, long, boolean) instead
      Create a transition property based on duration and a delay.
      Parameters:
      duration - the duration of the transition
      delay - 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object