org.deegree.rendering.r2d.legends
Class Legends

java.lang.Object
  extended by org.deegree.rendering.r2d.legends.Legends

public class Legends
extends Object

Version:
$Revision: 32005 $, $Date: 2011-09-26 11:35:20 +0200 (Mon, 26 Sep 2011) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Constructor Summary
Legends()
          New legend renderer with default legend options
Legends(LegendOptions opts)
           
 
Method Summary
 LegendOptions getLegendOptions()
           
 Pair<Integer,Integer> getLegendSize(Style style)
           
 void paintLegend(Style style, int width, int height, Graphics2D g)
           
static void paintLegendText(int origin, LegendOptions opts, String text, TextRenderer textRenderer)
           
 List<LegendItem> prepareLegend(Style style, Graphics2D g, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Legends

public Legends()
New legend renderer with default legend options


Legends

public Legends(LegendOptions opts)
Parameters:
opts -
Method Detail

getLegendOptions

public LegendOptions getLegendOptions()

paintLegendText

public static void paintLegendText(int origin,
                                   LegendOptions opts,
                                   String text,
                                   TextRenderer textRenderer)

prepareLegend

public List<LegendItem> prepareLegend(Style style,
                                      Graphics2D g,
                                      int width,
                                      int height)

paintLegend

public void paintLegend(Style style,
                        int width,
                        int height,
                        Graphics2D g)
Parameters:
style -
width -
height -
g -

getLegendSize

public Pair<Integer,Integer> getLegendSize(Style style)


Copyright © 2011. All Rights Reserved.