Class MapStyle
java.lang.Object
com.vividsolutions.wms.MapStyle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidintLoad the legend icon at first request, not beforegetName()getTitle()intgetWidth()booleanvoidsetFormatLegend(String formatLegend) voidvoidvoidsetSelected(boolean selected, boolean check) voidvoidsetUrlLegend(String newURLLegend) toString()
-
Constructor Details
-
MapStyle
-
MapStyle
- Parameters:
name- name of this MapStyletitle- title of this MapStyleurlLegend- url String of the legend for this MapStyleformatLegend- image format of the legendw- width of the image containing the legendh- height of the image containing the legend
-
-
Method Details
-
getWidth
public int getWidth()- Returns:
- the width of the legend image
-
getHeight
public int getHeight()- Returns:
- the height of the image legend
-
getName
- Returns:
- the name of the style
-
setName
- Parameters:
name- name of the style
-
getTitle
- Returns:
- the legend title
-
setTitle
- Parameters:
title- the legend title
-
getUrlLegend
- Returns:
- url legend as a String
-
setUrlLegend
- Parameters:
newURLLegend- the URL of the legend
-
getFormatLegend
- Returns:
- the image format of the legend
-
setFormatLegend
- Parameters:
formatLegend- image format of the legend
-
toString
-
getLegendIcon
Load the legend icon at first request, not before- Returns:
- an Icon containing the legend
-
isSelected
public boolean isSelected()- Returns:
- true if this MapStyle is selected
-
setSelected
public void setSelected(boolean selected, boolean check) - Parameters:
selected- whether this MapStyle is selected or notcheck- if check, don't unselect the style if the layer has only one style
-
fireStyleChanged
public void fireStyleChanged() -
equals
-
setLayer
- Parameters:
layer- MapLayer associated to this MapStyle
-