org.geotools.map
Class WMSMapLayer

Object
  extended by DefaultMapLayer
      extended by WMSMapLayer
All Implemented Interfaces:
ComponentListener, EventListener, MapBoundsListener, MapLayer

public class WMSMapLayer
extends DefaultMapLayer
implements MapLayer, MapBoundsListener, ComponentListener


Field Summary
static Logger LOGGER
          The logger for the map module.
 
Fields inherited from class DefaultMapLayer
featureSource, listenerList, query, selected, sourceListener, style, title, visible
 
Constructor Summary
WMSMapLayer(WebMapServer wms, Layer layer)
           
 
Method Summary
 void componentHidden(ComponentEvent e)
           
 void componentMoved(ComponentEvent e)
           
 void componentResized(ComponentEvent e)
           
 void componentShown(ComponentEvent e)
           
 String getBgColour()
           
 ReferencedEnvelope getBounds()
          find out the bounds of the layer
 String getExceptions()
           
 GridCoverage2D getGrid()
           
 int getHeight()
           
 int getWidth()
           
 boolean isTransparent()
           
 void mapBoundsChanged(MapBoundsEvent event)
          Invoked when the area of interest or the coordinate system changes
 void setBgColour(String bgColour)
           
 void setDefaultStyle()
           
 void setExceptions(String exceptions)
          Set the type of exception reports.
 void setHeight(int height)
           
 void setTransparent(boolean transparent)
           
 void setWidth(int width)
           
 
Methods inherited from class DefaultMapLayer
addMapLayerListener, fireMapLayerListenerLayerChanged, fireMapLayerListenerLayerDeselected, fireMapLayerListenerLayerHidden, fireMapLayerListenerLayerSelected, fireMapLayerListenerLayerShown, getFeatureSource, getQuery, getSource, getStyle, getTitle, isSelected, isVisible, removeMapLayerListener, setQuery, setSelected, setStyle, setTitle, setVisible, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface MapLayer
addMapLayerListener, getFeatureSource, getQuery, getSource, getStyle, getTitle, isSelected, isVisible, removeMapLayerListener, setQuery, setSelected, setStyle, setTitle, setVisible
 

Field Detail

LOGGER

public static final Logger LOGGER
The logger for the map module.

Constructor Detail

WMSMapLayer

public WMSMapLayer(WebMapServer wms,
                   Layer layer)
Method Detail

setDefaultStyle

public void setDefaultStyle()

mapBoundsChanged

public void mapBoundsChanged(MapBoundsEvent event)
Description copied from interface: MapBoundsListener
Invoked when the area of interest or the coordinate system changes

Specified by:
mapBoundsChanged in interface MapBoundsListener
Parameters:
event - The change event.

getHeight

public int getHeight()

setHeight

public void setHeight(int height)

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

getGrid

public GridCoverage2D getGrid()

isTransparent

public boolean isTransparent()

setTransparent

public void setTransparent(boolean transparent)

componentHidden

public void componentHidden(ComponentEvent e)
Specified by:
componentHidden in interface ComponentListener

componentMoved

public void componentMoved(ComponentEvent e)
Specified by:
componentMoved in interface ComponentListener

componentResized

public void componentResized(ComponentEvent e)
Specified by:
componentResized in interface ComponentListener

componentShown

public void componentShown(ComponentEvent e)
Specified by:
componentShown in interface ComponentListener

getBgColour

public String getBgColour()

setBgColour

public void setBgColour(String bgColour)

getExceptions

public String getExceptions()

setExceptions

public void setExceptions(String exceptions)
Set the type of exception reports. Valid values are: "application/vnd.ogc.se_xml" (the default) "application/vnd.ogc.se_inimage" "application/vnd.ogc.se_blank"

Parameters:
exceptions -

getBounds

public ReferencedEnvelope getBounds()
Description copied from interface: MapLayer
find out the bounds of the layer

Specified by:
getBounds in interface MapLayer
Overrides:
getBounds in class DefaultMapLayer
Returns:
- the layer's bounds


Copyright © 1996-2009 Geotools. All Rights Reserved.