public class MessageDirectLayer extends DirectLayer
| Modifier and Type | Field and Description |
|---|---|
static String |
X
Key used to store x position in getUserData().
|
static String |
Y
Key used to store y position in getUserData()
|
| Constructor and Description |
|---|
MessageDirectLayer(String message) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D graphics,
MapContent map,
MapViewport viewport)
Draw layer contents onto screen
|
ReferencedEnvelope |
getBounds()
Does not contribute a bounding box to the map.
|
addMapLayerListener, connectDataListener, dispose, finalize, fireMapLayerListenerLayerChanged, fireMapLayerListenerLayerDeselected, fireMapLayerListenerLayerHidden, fireMapLayerListenerLayerPreDispose, fireMapLayerListenerLayerSelected, fireMapLayerListenerLayerShown, getFeatureSource, getQuery, getStyle, getTitle, getUserData, isSelected, isVisible, preDispose, removeMapLayerListener, setSelected, setTitle, setVisible, toStringpublic static final String X
public static final String Y
public MessageDirectLayer(String message)
public void draw(Graphics2D graphics, MapContent map, MapViewport viewport)
DirectLayerdraw in class DirectLayergraphics - Graphics to draw intomap - Map being drawn; check map bounds and crsviewport - Area to draw the map into; including screen areapublic ReferencedEnvelope getBounds()
Copyright © 1996–2019 Geotools. All rights reserved.