org.geotools.map.direct
Class MessageDirectLayer
Object
Layer
DirectLayer
MessageDirectLayer
public class MessageDirectLayer
- extends DirectLayer
This is a simple watermark used to place a message (such as copyright information) onto a map.
- Author:
- Jody
Field Summary |
static String |
X
Key used to store x position in getUserData(). |
static String |
Y
Key used to store y position in getUserData() |
Methods inherited from class Layer |
addMapLayerListener, connectDataListener, dispose, finalize, fireMapLayerListenerLayerChanged, fireMapLayerListenerLayerDeselected, fireMapLayerListenerLayerHidden, fireMapLayerListenerLayerPreDispose, fireMapLayerListenerLayerSelected, fireMapLayerListenerLayerShown, getFeatureSource, getQuery, getStyle, getTitle, getUserData, isSelected, isVisible, preDispose, removeMapLayerListener, setSelected, setTitle, setVisible, toString |
X
public static final String X
- Key used to store x position in getUserData().
- See Also:
- Constant Field Values
Y
public static final String Y
- Key used to store y position in getUserData()
- See Also:
- Constant Field Values
MessageDirectLayer
public MessageDirectLayer(String message)
draw
public void draw(Graphics2D graphics,
MapContent map,
MapViewport viewport)
- Description copied from class:
DirectLayer
- Draw layer contents onto screen
- Specified by:
draw
in class DirectLayer
- Parameters:
graphics
- Graphics to draw intomap
- Map being drawn; check map bounds and crsviewport
- Area to draw the map into; including screen area
getBounds
public ReferencedEnvelope getBounds()
- Does not contribute a bounding box to the map.
- Specified by:
getBounds
in class Layer
- Returns:
- null
Copyright © 1996-2014 Geotools. All Rights Reserved.