public void defineLineStyle(double width,Color color2){
  Color color=color2;
  if (color == null) {
    color=new Color(0,0,0);
  }
  LineStyle style=new LineStyle(width,color);
  if (maxLineWidth < width) {
    maxLineWidth=width;
  }
  if (color instanceof AlphaColor) {
    hasAlpha=true;
  }
  elements.add(style);
}

public void defineLineStyle ( double width , Color color2 ) { Color color = color2 ; if ( color == null ) { color = new Color ( 0 , 0 , 0 ) ; } LineStyle style = new LineStyle ( width , color ) ; if ( maxLineWidth < width ) { maxLineWidth = width ; } if ( color instanceof AlphaColor ) { hasAlpha = true ; } elements . add ( style ) ; }
define a line style
