public void drawLine(int x1, int y1, int x2, int y2, int width){HSSFSimpleShape shape = escherGroup.createShape(new HSSFChildAnchor(x1, y1, x2, y2) );shape.setShapeType(HSSFSimpleShape.OBJECT_TYPE_LINE);shape.setLineWidth(width);shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());}
public void DrawLine(int x1, int y1, int x2, int y2, int width){HSSFSimpleShape shape = escherGroup.CreateShape(new HSSFChildAnchor(x1, y1, x2, y2));shape.ShapeType = (HSSFSimpleShape.OBJECT_TYPE_LINE);shape.LineWidth = (width);shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);}