2013-11-27 29 views

回答

3

愿这可以帮助您:

LineAndPointFormatter lineAndPointFormatter = new LineAndPointFormatter(Color.rgb(0, 0, 0), null, null); 

    //change the line width 
    Paint paint = lineAndPointFormatter.getLinePaint(); 
    paint.setStrokeWidth(3); 
    lineAndPointFormatter.setLinePaint(paint); 
+0

谢谢..它工作正常。 – Anandhu

+0

@Anandhu:欢迎好友.... –

1

的喷漆的对象是可变的,所以你不需要做它的副本设置它。

LineAndPointFormatter lineAndPointFormatter = new LineAndPointFormatter(Color.rgb(0, 0, 0), null, null); 

// Set the line (stroke) width. 
lineAndPointFormatter.getLinePaint().setStrokeWidth(3);