|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.graphics.legend.LegendElement_Impl
org.deegree_impl.graphics.legend.LegendElementCollection_Impl
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 |
collection
|
(package private) java.lang.String |
title
|
Fields inherited from class org.deegree_impl.graphics.legend.LegendElement_Impl |
active, bi, bufferBetweenLegendAndLabel, height, label, labelPosition, orientation, ruleslist, width |
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 |
Constructor Summary | |
LegendElementCollection_Impl()
empty constructor |
|
LegendElementCollection_Impl(java.lang.String title)
empty constructor |
Method Summary | |
void |
addLegendElement(LegendElement legendElement)
adds a LegendElement to the collection. |
java.awt.image.BufferedImage |
exportAsImage()
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_impl.graphics.legend.LegendElement_Impl |
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 |
Methods inherited from interface org.deegree.graphics.legend.LegendElement |
getLabel, getLabelOrientation, getLabelPlacement, setActive, setLabel, setLabelOrientation, setLabelPlacement |
Field Detail |
java.util.ArrayList collection
java.lang.String title
Constructor Detail |
public LegendElementCollection_Impl()
public LegendElementCollection_Impl(java.lang.String title)
Method Detail |
public void addLegendElement(LegendElement legendElement)
addLegendElement
in interface LegendElementCollection
legendElement
- to addpublic LegendElement[] getLegendElements()
public void setTitle(java.lang.String title)
setTitle
in interface LegendElementCollection
title
- title of the LegendElementpublic java.lang.String getTitle()
getTitle
in interface LegendElementCollection
public int getSize()
getSize
in interface LegendElementCollection
public java.awt.image.BufferedImage exportAsImage() throws LegendException
LegendElement
exportAsImage
in interface LegendElement
exportAsImage
in class LegendElement_Impl
LegendException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |