Class WmtsLayer

All Implemented Interfaces:
JMapEventDispatcher, ILayer, IRasterLayer, LayerConstants, LayerNode, Serializable, Cloneable, Comparable<Layer>

public class WmtsLayer extends RasterLayer implements IRasterLayer
See Also:
  • Field Details

  • Constructor Details

    • WmtsLayer

      protected WmtsLayer()
    • WmtsLayer

      public WmtsLayer(WmtsLayerInfo layerInfo)
  • Method Details

    • draw

      public void draw(GraphicsRef gr, ViewState viewState, OrientedRectangle region, double scale, int drawOptions)
      Draws layer contained in the specified region to the specified graphics object and applying the specified transformation.
      Overrides:
      draw in class Layer
      Parameters:
      gr - the graphics wrapper object to use.
      viewState - the view state that provides context information to draw the layer.
      region - the world coordinate region to redraw.
      scale - the scale of the current View.
      drawOptions - draw options to use. Options can be retrieved with bitwise operations using LayerManager.DRAW_* constants.
      See Also:
    • draw

      public void draw(GraphicsRef gr, ViewState viewState, OrientedRectangle region, double scale, DrawParameters parameters)
      Description copied from class: Layer
      Draws layer contained in the specified region to the specified graphics object and applying the specified transformation.
      Specified by:
      draw in class Layer
      Parameters:
      gr - the graphics wrapper object to use.
      viewState - the view state that provides context information to draw the layer.
      region - the world coordinate region to redraw.
      scale - the scale of the current View.
      parameters - draw parameters.
    • setRawImage

      protected void setRawImage(byte[] rawImage, Rectangle bounds, boolean fireEvent)
      Specified by:
      setRawImage in class RasterLayer
    • close

      public void close()
      Description copied from class: Layer
      Frees all resources used by the layer.
      Overrides:
      close in class RasterLayer
    • toLayerInfo

      public LayerInfo toLayerInfo()
      Specified by:
      toLayerInfo in class Layer
    • clone

      public Object clone()
      Returns a deep clone of the current LayerInfo instance.
      Specified by:
      clone in interface ILayer
      Specified by:
      clone in interface LayerNode
      Specified by:
      clone in class Layer
      Returns:
      a clone of the current instance.
    • clone

      protected void clone(ILayer layer)
      Description copied from class: Layer
      Implementation of the clone method.
      Overrides:
      clone in class RasterLayer
      Parameters:
      layer - the new layer instance.
    • getInfoReportParameters

      public Map getInfoReportParameters(JMapClientInfoReport infoReport, Point wcPoint, K2DTransform t)
      Specified by:
      getInfoReportParameters in class RasterLayer
    • loadData

      public void loadData(Geometry bounds, boolean sync)
      Description copied from class: Layer
      This method automatically loads the data intersecting with the specified geometry. For now, it is only implemented for VectorLayer, where it will load the intersecting tiles.
      Specified by:
      loadData in class Layer
      Parameters:
      bounds - the geometry used to delimit the bounds
      sync - whether his method is synchronized