@Api(allMethods=true) public class DefaultLegendGraphicMetadata extends Object implements LegendGraphicMetadata
LegendGraphicMetadata metadata object.DEFAULT_HEIGHT, DEFAULT_WIDTH| Constructor and Description |
|---|
DefaultLegendGraphicMetadata() |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Get the suggested height of the graphic, optional.
|
String |
getLayerId()
Get layer id, optional.
|
org.geomajas.sld.NamedStyleInfo |
getNamedStyle()
Get the named style, optional.
|
org.geomajas.sld.RuleInfo |
getRule()
Get the rule, optional.
|
double |
getScale()
Get the scale, optional.
|
org.geomajas.sld.UserStyleInfo |
getUserStyle()
Get the user style, optional.
|
int |
getWidth()
Get the suggested width of the graphic, optional.
|
void |
setHeight(int height)
Set the legend graphic height.
|
void |
setLayerId(String layerId)
Set the layer for the legend graphic.
|
void |
setNamedStyle(org.geomajas.sld.NamedStyleInfo namedStyle)
Set the named style for the legend graphic.
|
void |
setRuleInfo(org.geomajas.sld.RuleInfo rule)
Set the SLD rule for the legend graphic.
|
void |
setScale(double scale)
Set the scale for the legend graphic (can be used to determine the rule).
|
void |
setUserStyle(org.geomajas.sld.UserStyleInfo userStyle)
Set the user style for the legend graphic.
|
void |
setWidth(int width)
Set the legend graphic width.
|
public String getLayerId()
LegendGraphicMetadatagetLayerId in interface LegendGraphicMetadatapublic void setLayerId(String layerId)
layerId - layer idpublic org.geomajas.sld.UserStyleInfo getUserStyle()
LegendGraphicMetadatagetUserStyle in interface LegendGraphicMetadatapublic void setUserStyle(org.geomajas.sld.UserStyleInfo userStyle)
userStyle - user style or nullpublic org.geomajas.sld.NamedStyleInfo getNamedStyle()
LegendGraphicMetadatagetNamedStyle in interface LegendGraphicMetadatapublic void setNamedStyle(org.geomajas.sld.NamedStyleInfo namedStyle)
namedStyle - named style or nullpublic org.geomajas.sld.RuleInfo getRule()
LegendGraphicMetadatagetRule in interface LegendGraphicMetadatapublic void setRuleInfo(org.geomajas.sld.RuleInfo rule)
rule - SLD rulepublic double getScale()
LegendGraphicMetadatagetScale in interface LegendGraphicMetadatapublic void setScale(double scale)
scale - scalepublic int getWidth()
LegendGraphicMetadatagetWidth in interface LegendGraphicMetadatapublic void setWidth(int width)
width - width in pixelspublic int getHeight()
LegendGraphicMetadatagetHeight in interface LegendGraphicMetadatapublic void setHeight(int height)
height - height in pixelsCopyright © 2015 Geosparc. All Rights Reserved.