Class BasicStyle

    • Constructor Detail

      • BasicStyle

        public BasicStyle​(Color fillColor)
      • BasicStyle

        public BasicStyle()
    • Method Detail

      • isRenderingFillPattern

        public boolean isRenderingFillPattern()
      • setRenderingFillPattern

        public BasicStyle setRenderingFillPattern​(boolean renderingFillPattern)
      • getFillPattern

        public Paint getFillPattern()
      • setFillPattern

        public BasicStyle setFillPattern​(Paint fillPattern)
        Remember to call #setRenderingFillPattern(true).
      • getLinePattern

        public String getLinePattern()
      • setLinePattern

        public BasicStyle setLinePattern​(String linePattern)
        The actual dash pattern used internally will be the given dash pattern multiplied by the line length. Remember to call #setRenderingLinePattern(true).
        Parameters:
        linePattern - e.g. "5,2,3,2"
      • initialize

        public void initialize​(Layer layer)
        Description copied from interface: Style
        Called before #paint is applied to each Feature.
        Specified by:
        initialize in interface Style
      • setEnabled

        public void setEnabled​(boolean enabled)
        Specified by:
        setEnabled in interface Style
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface Style
      • isRenderingFill

        public boolean isRenderingFill()
      • isRenderingLine

        public boolean isRenderingLine()
      • isRenderingLinePattern

        public boolean isRenderingLinePattern()
      • setRenderingFill

        public void setRenderingFill​(boolean renderingFill)
      • setRenderingLine

        public void setRenderingLine​(boolean renderingLine)
      • setRenderingLinePattern

        public BasicStyle setRenderingLinePattern​(boolean renderingLinePattern)
      • setFillColor

        public void setFillColor​(Color fillColor)
      • setLineColor

        public void setLineColor​(Color lineColor)
      • setLineWidth

        public void setLineWidth​(int lineWidth)
      • toArray

        public static float[] toArray​(String linePattern,
                                      float lineWidth)
      • getAlpha

        public int getAlpha()
        Returns:
        0-255 (255 is opaque)
      • getFillColor

        public Color getFillColor()
      • getLineColor

        public Color getLineColor()
      • getLineWidth

        public int getLineWidth()
      • setAlpha

        public void setAlpha​(int alpha)
        Parameters:
        alpha - 0-255 (255 is opaque)