|
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.LegendFactory
public class LegendFactory
factory class for creating legend elements/images to be used with WMS GetLegendGraphic request
Constructor Summary | |
---|---|
LegendFactory()
|
Method Summary | |
---|---|
BufferedImage[] |
createAllThumbnails(StyledLayerDescriptor sld,
int width,
int height,
String mime)
|
LegendElement |
createLegendElement(AbstractStyle style,
int width,
int height,
String title)
creates a LegendElement from a SLD Style. |
LegendElement |
createLegendElement(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. |
String |
getLabel()
returns the label set to LegendElement. |
protected String |
getLegendTitle()
|
void |
setLabel(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(BufferedImage legendImage)
legendImage
- to build the legend from
public LegendElement createLegendElement(AbstractStyle style, int width, int height, String title) throws LegendException
style
- width
- height
- title
-
LegendException
public LegendElementCollection createLegendElementCollection()
public LegendElementCollection createLegendElementCollection(LegendElement[] legendElements)
legendElements
- to fill
public BufferedImage[] createAllThumbnails(StyledLayerDescriptor sld, int width, int height, String mime) throws LegendException
sld
- width
- height
- mime
- of the thumbs
LegendException
public void setLabel(String label)
label
- label of the LegendElementpublic String getLabel()
protected String getLegendTitle()
|
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