Interface MTLayerTypeHeader

All Superinterfaces:
Comparable<MTNamedObject>, MTNamedObject
All Known Subinterfaces:
MTLayerType

public interface MTLayerTypeHeader extends MTNamedObject
Header interface for layer types. Each model type can have zero or more layer types connected to it. Each layer type defines object types that will automatically be added to layers of this type.
Since:
3.0
  • Method Details

    • getModelType

      ModelType getModelType()
      Returns the model type that this layer type is defined for.
      Returns:
      The model type.
      Since:
      3.0
    • getZOrder

      int getZOrder()
      Returns the Z order of the layer type. Layer types with a higher Z value will be shown above others.
      Returns:
      The layer type Z order.
      Since:
      3.0
    • getSymbolTypes

      Set<SymbolType> getSymbolTypes()
      Returns the set of object types that should automatically be placed in this layer.
      Returns:
      A set of object types.
      Since:
      3.0
    • getIconURL

      URL getIconURL()
      Returns the icon URL for the layer type.
      Returns:
      The layer type icon URL.
      Since:
      3.0
    • isTranslated

      boolean isTranslated(MTLanguage language)
      Returns true if this layer's title is translated in the given language, false otherwise.
      Parameters:
      language - The language
      Returns:
      true if this layer's title is translated in the given language, false otherwise.
    • isBackgroundLayerType

      boolean isBackgroundLayerType()
      Returns true if this is the background layer type. All models will always have this layer type associated with them. The background layer type is not editable and will not react to any setters when expanded. It can however be treated as any other layer type without any unexpected behaviour.
      Returns:
      True if this is the background layer type, false otherwise.
    • expand

      Returns a MTLayerType for this layer type. Beware that this might require querying the storage layer for more data.
      Returns:
      A MTLayerType representing this layer type.
      Throws:
      MTAccessException
      Since:
      3.0