| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.graphics.legend.LegendElement
org.deegree.graphics.legend.LegendElementCollection
public class LegendElementCollection
LegendElementCollection is a collection of LegendElements and is a LegendElement too. It can be used to group elements or to create more complex elements.
| Field Summary | |
|---|---|
(package private)  ArrayList<LegendElement> | 
collection
 | 
(package private)  String | 
title
 | 
| Fields inherited from class org.deegree.graphics.legend.LegendElement | 
|---|
active, bi, bufferBetweenLegendAndLabel, height, label, labelPosition, orientation, ruleslist, width | 
| Constructor Summary | |
|---|---|
LegendElementCollection()
empty constructor  | 
|
LegendElementCollection(String title)
 | 
|
| Method Summary | |
|---|---|
 void | 
addLegendElement(LegendElement legendElement)
adds a LegendElement to the collection.  | 
 BufferedImage | 
exportAsImage(String mime)
exports the LegendElement as BufferedImage  | 
 LegendElement[] | 
getLegendElements()
 | 
 int | 
getSize()
returns the number of legend elements as an int  | 
 String | 
getTitle()
returns the title of the LegendElement  | 
 void | 
setTitle(String title)
sets the title of the LegendElement.  | 
| Methods inherited from class org.deegree.graphics.legend.LegendElement | 
|---|
addRule, calculateFontMetrics, drawLineStringLegend, drawPointLegend, drawPolygonLegend, getBufferBetweenLegendAndLabel, getHeight, getLabel, getLabelOrientation, getLabelPlacement, getRules, getWidth, isActive, setActive, setBufferBetweenLegendAndLabel, setHeight, setLabel, setLabelOrientation, setLabelPlacement, setRules, setWidth | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
ArrayList<LegendElement> collection
String title
| Constructor Detail | 
|---|
public LegendElementCollection()
public LegendElementCollection(String title)
title - | Method Detail | 
|---|
public void addLegendElement(LegendElement legendElement)
legendElement - to addpublic LegendElement[] getLegendElements()
public void setTitle(String title)
title - title of the LegendElementpublic String getTitle()
public int getSize()
public BufferedImage exportAsImage(String mime)
                            throws LegendException
LegendElement
exportAsImage in class LegendElementmime - the mime type of the requested legend (like image/png, etc)
LegendException
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org