2013-11-27 48 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);