public class

VectorTileDecoder

extends Object
java.lang.Object
   ↳ com.carto.vectortiles.VectorTileDecoder
Known Direct Subclasses

Class Overview

Abstract base class for vector tile decoders.

Summary

Public Methods
void addFallbackFont(BinaryData fontData)
Adds a fallback font.
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
int getMaxZoom()
Returns maximum zoom level supported for by the decoder (or style).
int getMinZoom()
Returns minimum zoom level supported for by the decoder (or style).
int hashCode()
Returns the hash value of this object.
void notifyDecoderChanged()
Notifies listeners that the decoder parameters have changed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void addFallbackFont (BinaryData fontData)

Adds a fallback font. The font should be TTF or OTF font. It is used for glyphs not found in style defined fonts.

Parameters
fontData The font binary.

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public int getMaxZoom ()

Returns maximum zoom level supported for by the decoder (or style).

Returns
  • Maximum supported zoom level.

public int getMinZoom ()

Returns minimum zoom level supported for by the decoder (or style).

Returns
  • Minimum supported zoom level.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.

public void notifyDecoderChanged ()

Notifies listeners that the decoder parameters have changed. Action taken depends on the implementation of the
listeners, but generally all cached tiles will be reloaded.