Class WmsLayer

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

public class WmsLayer extends RasterLayer implements IWmsLayer
A class that represents a layer of raster data served by a Web Map Service (WMS) compatible system.
See Also:
  • Field Details

  • Constructor Details

    • WmsLayer

      protected WmsLayer()
      Empty constructor. Useful for subclasses.
    • WmsLayer

      public WmsLayer(WmsLayerInfo wmsLayerInfo)
  • Method Details

    • draw

      public void draw(GraphicsRef gr, ViewState vs, OrientedRectangle region, double scale, DrawParameters drawParameters)
      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.
      vs - 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.
      drawParameters - 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)
      NOT YET IMPLEMENTED
      Specified by:
      loadData in class Layer
      Parameters:
      bounds - the geometry used to delimit the bounds
      sync - whether his method is synchronized