Class DefaultGlyphFactory

    • Constructor Detail

      • DefaultGlyphFactory

        public DefaultGlyphFactory()
    • Method Detail

      • icon

        public Icon icon​(Layer layer)
        Glyph for the provided layer.

        At a minimum the icon will be based on:

        • layer schema, will be considered a generic geometry if not recognized
        • layer style, defaults will be used if not recognized
        Specified by:
        icon in interface GlyphFactory
        Returns:
        Icon For the provided layer
      • line

        public Icon line​(Color line,
                         int width)
        Description copied from interface: GlyphFactory
        Produces a simple Icon representing a line.
        Specified by:
        line in interface GlyphFactory
        Parameters:
        line - Line colour
        width - Line width
      • line

        public Icon line​(Rule rule)
        Description copied from interface: GlyphFactory
        Produce a simple Icon representing a point.

        At a minimum this code is the same as:

        
         LineSymbolizer symbolizer = SLD.lineSymbolizer( rule );
         return glyphFactory.point( SLD.lineColor( symbolizer ), SLD.lineWidth( symbolizer ) );
         

        Implementations have the option of going into greater detail, picking up on TextSymbolizers and so on.

        Specified by:
        line in interface GlyphFactory
        Parameters:
        rule - Rule used to render a Point
        Returns:
        Icon representing a Point
      • point

        public Icon point​(Color point,
                          Color fill)
        Description copied from interface: GlyphFactory
        Produce a simple Icon representing a point.
        Specified by:
        point in interface GlyphFactory
        Parameters:
        point - Color of the Point
        fill - Color inside the Point
        Returns:
        Icon representing a Point
      • point

        public Icon point​(Rule rule)
        Description copied from interface: GlyphFactory
        Produce a simple Icon representing a point.

        At a minimum this code is the same as:

        
         PointSymbolizer symbolizer = SLD.pointSymbolizer( rule );
         return glyphFactory.point( SLD.pointColor( symbolizer ), SLD.fillColor( symbolizer ) );
         

        Implementations have the option of going into greater detail, picking up on TextSymbolizers and so on.

        Specified by:
        point in interface GlyphFactory
        Parameters:
        rule - Rule used to render a Point
        Returns:
        Icon representing a Point