|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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) java.util.ArrayList<LegendElement> |
collection
|
(package private) java.lang.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(java.lang.String title)
|
Method Summary | |
---|---|
void |
addLegendElement(LegendElement legendElement)
adds a LegendElement to the collection. |
java.awt.image.BufferedImage |
exportAsImage(java.lang.String mime)
exports the LegendElement as BufferedImage |
LegendElement[] |
getLegendElements()
|
int |
getSize()
returns the number of legend elements as an int |
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 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 |
---|
java.util.ArrayList<LegendElement> collection
java.lang.String title
Constructor Detail |
---|
public LegendElementCollection()
public LegendElementCollection(java.lang.String title)
title
- Method Detail |
---|
public void addLegendElement(LegendElement legendElement)
legendElement
- to addpublic LegendElement[] getLegendElements()
public void setTitle(java.lang.String title)
title
- title of the LegendElementpublic java.lang.String getTitle()
public int getSize()
public java.awt.image.BufferedImage exportAsImage(java.lang.String mime) throws LegendException
LegendElement
exportAsImage
in class LegendElement
mime
- the mime type of the requested legend (like image/png, etc)
LegendException
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
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