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 Details

  • Constructor Details

    • MessageDirectLayer

      public MessageDirectLayer(String message)
  • Method Details

    • 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 into
      map - Map being drawn; check map bounds and crs
      viewport - 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