org.geotools.map
Class DirectLayer

Object
  extended by Layer
      extended by DirectLayer
Direct Known Subclasses:
MessageDirectLayer

public abstract class DirectLayer
extends Layer

A Layer directly responsible for its own rendering.

Direct layers are responsible for their own rendering and are useful for:

While any and all data sources could be wrapped up as a DirectLayer we encourage you to consider a separate data mode, style model and renderer.

Since:
2.7
Author:
Jody

Field Summary
 
Fields inherited from class Layer
listenerList, LOGGER, selected, title, userData, visible
 
Constructor Summary
protected DirectLayer()
           
 
Method Summary
abstract  void draw(Graphics2D graphics, MapContent map, MapViewport viewport)
          Draw layer contents onto screen
 
Methods inherited from class Layer
addMapLayerListener, connectDataListener, dispose, finalize, fireMapLayerListenerLayerChanged, fireMapLayerListenerLayerDeselected, fireMapLayerListenerLayerHidden, fireMapLayerListenerLayerPreDispose, fireMapLayerListenerLayerSelected, fireMapLayerListenerLayerShown, getBounds, getFeatureSource, getQuery, getStyle, getTitle, getUserData, isSelected, isVisible, preDispose, removeMapLayerListener, setSelected, setTitle, setVisible, toString
 
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectLayer

protected DirectLayer()
Method Detail

draw

public abstract void draw(Graphics2D graphics,
                          MapContent map,
                          MapViewport viewport)
Draw layer contents onto screen

Parameters:
map - Map being drawn; check map bounds and crs
graphics - Graphics to draw into
viewport - Area to draw the map into; including screen area


Copyright © 1996-2014 Geotools. All Rights Reserved.