Class LegendLayer

java.lang.Object
be.tarsos.dsp.ui.layers.LegendLayer
All Implemented Interfaces:
Layer

public class LegendLayer
extends java.lang.Object
implements Layer
Adds a legend to the upper right corner of the map.
Author:
Joren Six
  • Constructor Summary

    Constructors 
    Constructor Description
    LegendLayer​(CoordinateSystem cs, int pixelsFromRight)  
  • Method Summary

    Modifier and Type Method Description
    void addEntry​(java.lang.String string, java.awt.Color blue)  
    void draw​(java.awt.Graphics2D graphics)  
    java.lang.String getName()  
    void removeAllEntries()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • draw

      public void draw​(java.awt.Graphics2D graphics)
      Specified by:
      draw in interface Layer
    • getName

      public java.lang.String getName()
      Specified by:
      getName in interface Layer
    • addEntry

      public void addEntry​(java.lang.String string, java.awt.Color blue)
    • removeAllEntries

      public void removeAllEntries()