Class SymbolizerWrapper

    • Field Detail

      • externalGraphic

        protected org.geotools.styling.ExternalGraphic externalGraphic
        The ExternalGraphic of the Symbolizer.

        Currently just one is supported.

      • strokeExternalGraphicStroke

        protected org.geotools.styling.ExternalGraphic strokeExternalGraphicStroke
        The stroke's ExternalGraphic stroke of the Symbolizer.
      • strokeExternalGraphicFill

        protected org.geotools.styling.ExternalGraphic strokeExternalGraphicFill
        The stroke's ExternalGraphic fill of the Symbolizer.

        This is not used at the moment.

      • fillExternalGraphicStroke

        protected org.geotools.styling.ExternalGraphic fillExternalGraphicStroke
        The fill's ExternalGraphic stroke of the Symbolizer.

        This is not used at the moment.

      • fillExternalGraphicFill

        protected org.geotools.styling.ExternalGraphic fillExternalGraphicFill
        The fill's ExternalGraphic fill of the Symbolizer.

        Currently just one is supported.

      • xOffset

        protected String xOffset
      • yOffset

        protected String yOffset
    • Constructor Detail

      • SymbolizerWrapper

        protected SymbolizerWrapper​(org.geotools.styling.Symbolizer symbolizer,
                                    RuleWrapper parent)
    • Method Detail

      • getSymbolizer

        public org.geotools.styling.Symbolizer getSymbolizer()
      • isTextSymbolizer

        public boolean isTextSymbolizer()
      • isRasterSymbolizer

        public boolean isRasterSymbolizer()
      • adapt

        public <T> T adapt​(Class<T> adaptee)
      • hasExternalGraphic

        public boolean hasExternalGraphic()
        Tests if the SymbolizerWrapper bases on an ExternalGraphic.

        This is used for point styles.

        Returns:
        true if the ExternalGraphic is != null.
      • hasStrokeExternalGraphicStroke

        public boolean hasStrokeExternalGraphicStroke()
        Tests if the stroke's SymbolizerWrapper bases on an ExternalGraphic.

        This is used for lines.

        Returns:
        true if the ExternalGraphic is != null.
      • hasFillExternalGraphicFill

        public boolean hasFillExternalGraphicFill()
        Tests if the fill's SymbolizerWrapper bases on an ExternalGraphic.

        This is used for polygon fills.

        Returns:
        true if the ExternalGraphic is != null.
      • getExternalGraphicPath

        public String getExternalGraphicPath()
                                      throws MalformedURLException
        Get the ExternalGraphic's path.

        Currently one ExternalGraphic per Symbolizer is supported.

        This is used for point styles.

        Returns:
        the graphic's path.
        Throws:
        MalformedURLException
      • getStrokeExternalGraphicStrokePath

        public String getStrokeExternalGraphicStrokePath()
                                                  throws MalformedURLException
        Get the stroke's ExternalGraphic stroke path.

        Currently one stroke ExternalGraphic per Symbolizer is supported.

        This is used for lines.

        Returns:
        the graphic's path.
        Throws:
        MalformedURLException
      • getFillExternalGraphicFillPath

        public String getFillExternalGraphicFillPath()
                                              throws MalformedURLException
        Get the fill's ExternalGraphic fill path. Currently one fill ExternalGraphic per Symbolizer is supported.

        This is used for polygon fills.

        Returns:
        the graphic's path.
        Throws:
        MalformedURLException
      • setExternalGraphicPath

        public void setExternalGraphicPath​(String externalGraphicPath)
                                    throws MalformedURLException
        Set the ExternalGraphic's path.

        Currently one ExternalGraphic per Symbolizer is supported.

        This is used for point styles.

        Parameters:
        externalGraphicPath - the path to set.
        Throws:
        MalformedURLException
      • setStrokeExternalGraphicStrokePath

        public void setStrokeExternalGraphicStrokePath​(String externalGraphicPath)
                                                throws MalformedURLException
        Set the stroke's ExternalGraphic path.

        Currently one ExternalGraphic per Symbolizer is supported.

        This is used for lines.

        Parameters:
        externalGraphicPath - the path to set.
        Throws:
        MalformedURLException
      • setFillExternalGraphicFillPath

        public void setFillExternalGraphicFillPath​(String externalGraphicPath,
                                                   double size)
                                            throws MalformedURLException
        Set the fill's ExternalGraphic path.

        Currently one ExternalGraphic per Symbolizer is supported.

        This is used for polygons.

        Parameters:
        externalGraphicPath - the path to set.
        Throws:
        MalformedURLException
      • expressionToString

        protected String expressionToString​(org.opengis.filter.expression.Expression expression)
      • setOffset

        public void setOffset​(String xOffset,
                              String yOffset)
      • setOffset

        public void setOffset​(String offset)
      • getxOffset

        public String getxOffset()
      • getyOffset

        public String getyOffset()