2013-03-01 4 views
3

제목이 공식화되었습니다. 세부 사항 :JFree 차트의 전설 테두리 설정 색상

전설 프레임 테두리에 특정 기본 색 이외의 색을 설정하는 클래스 테마의 코드가 있습니다. 내가 전설의 테두리 색상을 설정해야이 후

LegendTitle legend = jFreeChart.getLegend(); 
legend.setWidth(100); 

, 아무것도하지만 내가 발견하지 못했습니다

legend.setBorderColor(Color.green) 

있다.

도와주세요.

답장을 보내 주셔서 감사합니다. 범례의 경계를 교체 할 때

답변

3

당신은 새로운 색상을 지정할 수 있습니다

LegendTitle legend = chart.getLegend(); 
legend.setFrame(new BlockBorder(Color.green)); 

enter image description here

+0

감사합니다 많이! Realy, 당신은 jasper report와 jfreechart에서 인터넷에서 만난 최고의 전문가입니다. 귀하의 도움은 저에게는 매우 소중합니다. –

+0

다른 질문을 확인하십시오. http://stackoverflow.com/questions/15254385/setting-currency-format-for-labels-of-vertical-axis-in-jfreechart –