Class StyleImpl


  • public class StyleImpl
    extends Object
    Author:
    Richard Gould
    • Constructor Detail

      • StyleImpl

        public StyleImpl()
      • StyleImpl

        public StyleImpl​(String name)
    • Method Detail

      • getFeatureStyles

        public List getFeatureStyles()
      • setFeatureStyles

        public void setFeatureStyles​(List featureStyles)
      • getGraphicStyles

        public List getGraphicStyles()
      • setGraphicStyles

        public void setGraphicStyles​(List graphicStyles)
      • getLegendURLs

        public List getLegendURLs()
      • setLegendURLs

        public void setLegendURLs​(List legendURLs)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getStyleSheetURL

        public URL getStyleSheetURL()
      • setStyleSheetURL

        public void setStyleSheetURL​(URL styleSheetURL)
      • getStyleURL

        public URL getStyleURL()
      • setStyleURL

        public void setStyleURL​(URL styleURL)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Because the style's name is declared as unique identifier in the interface javadocs, we will use that as our equals comparison.

        So if two Styles have the same name, they are considered equal.

        Overrides:
        equals in class Object
      • isDefault

        public boolean isDefault()
        Returns:
        the isDefault
      • setDefault

        public void setDefault​(boolean isDefault)
        Parameters:
        isDefault - the isDefault to set