|
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.LegendFactory
public class LegendFactory
factory class for creating legend elements/images to be used with WMS GetLegendGraphic request
Constructor Summary | |
---|---|
LegendFactory()
|
Method Summary | |
---|---|
java.awt.image.BufferedImage[] |
createAllThumbnails(StyledLayerDescriptor sld,
int width,
int height,
java.lang.String mime)
|
LegendElement |
createLegendElement(AbstractStyle style,
int width,
int height,
java.lang.String title)
creates a LegendElement from a SLD Style. |
LegendElement |
createLegendElement(java.awt.image.BufferedImage legendImage)
creates a LegendElement using the passed BufferedImage |
LegendElementCollection |
createLegendElementCollection()
creates an empty LegendElementCollection |
LegendElementCollection |
createLegendElementCollection(LegendElement[] legendElements)
creates a LegendElementCollection and fills it with the passed LegendElements. |
java.lang.String |
getLabel()
returns the label set to LegendElement. |
protected java.lang.String |
getLegendTitle()
|
void |
setLabel(java.lang.String label)
sets the label of the LegendElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LegendFactory()
Method Detail |
---|
public LegendElement createLegendElement(java.awt.image.BufferedImage legendImage)
legendImage
- to build the legend from
public LegendElement createLegendElement(AbstractStyle style, int width, int height, java.lang.String title) throws LegendException
style
- width
- height
- title
-
LegendException
public LegendElementCollection createLegendElementCollection()
public LegendElementCollection createLegendElementCollection(LegendElement[] legendElements)
legendElements
- to fill
public java.awt.image.BufferedImage[] createAllThumbnails(StyledLayerDescriptor sld, int width, int height, java.lang.String mime) throws LegendException
sld
- width
- height
- mime
- of the thumbs
LegendException
public void setLabel(java.lang.String label)
label
- label of the LegendElementpublic java.lang.String getLabel()
protected java.lang.String getLegendTitle()
|
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