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, toString
public static final String X
public static final String Y
public MessageDirectLayer(String message)
public void draw(Graphics2D graphics, MapContent map, MapViewport viewport)
DirectLayer
draw
in class DirectLayer
graphics
- 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–2022 Geotools. All rights reserved.