com.vividsolutions.jump.workbench.model
Class LayerStyleUtil

java.lang.Object
  extended by com.vividsolutions.jump.workbench.model.LayerStyleUtil

public class LayerStyleUtil
extends java.lang.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 Summary
LayerStyleUtil()
           
 
Method Summary
static void setLinearStyle(Layer lyr, java.awt.Color lineColor, int lineWidth, int vertexSize)
          Sets the style for a linear layer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerStyleUtil

public LayerStyleUtil()
Method Detail

setLinearStyle

public static void setLinearStyle(Layer lyr,
                                  java.awt.Color lineColor,
                                  int lineWidth,
                                  int vertexSize)
Sets the style for a linear layer.

Parameters:
vertexSize - 0 if vertices are not to be shown