Class LayerStyleUtil


  • public class LayerStyleUtil
    extends Object
    Convenience functions for setting and working with Layer Styles. The convention for methods which change a layer style is that the layerChanged event is not fired. This allows further modification of the style by the caller.
    • Constructor Detail

      • LayerStyleUtil

        public LayerStyleUtil()
    • Method Detail

      • setLinearStyle

        public static void setLinearStyle​(Layer lyr,
                                          Color lineColor,
                                          int lineWidth,
                                          int vertexSize)
        Sets the style for a linear layer.
        Parameters:
        vertexSize - 0 if vertices are not to be shown