org.deegree.graphics.legend
Interface LegendElementCollection

All Superinterfaces:
LegendElement
All Known Implementing Classes:
LegendElementCollection_Impl

public interface LegendElementCollection
extends LegendElement

LegendElementCollection is a collection of LegendElements and is a LegendElement too. It can be used to group elements or to create more complex elements.

Version:
$Revision: 1.4 $ $Date: 2004/02/09 07:57:01 $
Author:
Andreas Poth

Field Summary
 
Fields inherited from interface org.deegree.graphics.legend.LegendElement
LP_BOTTOMCENTER, LP_BOTTOMLEFT, LP_BOTTOMRIGHT, LP_LEFT, LP_NOLABEL, LP_RIGHT, LP_TOPCENTER, LP_TOPLEFT, LP_TOPRIGHT
 
Method Summary
 void addLegendElement(LegendElement legendElement)
          adds a LegendElement to the collection.
 int getSize()
           
 java.lang.String getTitle()
          returns the title of the LegendElement
 void setTitle(java.lang.String title)
          sets the title of the LegendElement.
 
Methods inherited from interface org.deegree.graphics.legend.LegendElement
exportAsImage, getLabel, getLabelOrientation, getLabelPlacement, setActive, setLabel, setLabelOrientation, setLabelPlacement
 

Method Detail

addLegendElement

public void addLegendElement(LegendElement legendElement)
adds a LegendElement to the collection.

Parameters:
legendElement - to add

setTitle

public void setTitle(java.lang.String title)
sets the title of the LegendElement. The title will be displayed on top of the LegendElementCollection

Parameters:
title - title of the LegendElement

getTitle

public java.lang.String getTitle()
returns the title of the LegendElement

Returns:

getSize

public int getSize()
Returns: