org.deegree.rendering.r2d.legends
Class StandardLegendItem

java.lang.Object
  extended by org.deegree.rendering.r2d.legends.StandardLegendItem
All Implemented Interfaces:
LegendItem

public class StandardLegendItem
extends Object
implements LegendItem

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
StandardLegendItem(LinkedList<Styling> stylings, Continuation<LinkedList<Symbolizer<?>>> rule, Class<?> ruleType, String text, Renderer renderer, TextRenderer textRenderer)
           
 
Method Summary
 int getHeight()
           
 int getMaxWidth(LegendOptions opts)
           
 void paint(int origin, LegendOptions opts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardLegendItem

public StandardLegendItem(LinkedList<Styling> stylings,
                          Continuation<LinkedList<Symbolizer<?>>> rule,
                          Class<?> ruleType,
                          String text,
                          Renderer renderer,
                          TextRenderer textRenderer)
Method Detail

getHeight

public int getHeight()
Specified by:
getHeight in interface LegendItem
Returns:
the number of legend items this item occupies

paint

public void paint(int origin,
                  LegendOptions opts)
Specified by:
paint in interface LegendItem
Parameters:
origin - y coordinate of origin point (x origin is always 0)

getMaxWidth

public int getMaxWidth(LegendOptions opts)
Specified by:
getMaxWidth in interface LegendItem
Returns:
the maximum width of the legend row(s)


Copyright © 2011. All Rights Reserved.