org.deegree.rendering.r2d.legends
Class RasterLegendItem

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

public class RasterLegendItem
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
RasterLegendItem(RasterStyling styling, Renderer renderer, RasterRenderer rasterRenderer, 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

RasterLegendItem

public RasterLegendItem(RasterStyling styling,
                        Renderer renderer,
                        RasterRenderer rasterRenderer,
                        TextRenderer textRenderer)
Method Detail

getHeight

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

getMaxWidth

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

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)


Copyright © 2011. All Rights Reserved.