1
draw2d에서 연결선의 너비와 색상을 설정하려고합니다. "setLineWidth()"메소드를 찾았지만이 메소드를 호출해야합니다. 입력 포트 객체에서이 메서드를 호출하지만 작동하지 않습니다. Plz 도와주세요.draw2d에서 연결 선의 선 너비 및 색상을 설정하는 방법은 무엇입니까?
draw2d에서 연결선의 너비와 색상을 설정하려고합니다. "setLineWidth()"메소드를 찾았지만이 메소드를 호출해야합니다. 입력 포트 객체에서이 메서드를 호출하지만 작동하지 않습니다. Plz 도와주세요.draw2d에서 연결 선의 선 너비 및 색상을 설정하는 방법은 무엇입니까?
일부 코드는 게시 할 수 있습니까? 이것은 나를 위해 일하고있다 :
PolylineConnection connection = new PolylineConnection();
connection.setLineWidth(2);
connection.setSourceAnchor(new ChannelStartAnchor(this));
connection.setTargetAnchor(new ChannelEndAnchor(figure));
Display display = Display.getCurrent();
final Color connectionColorHoover = display.getSystemColor(SWT.COLOR_RED);
final Color connectionColor = new Color(display,54,82,111);
connection.setBackgroundColor(connectionColor);
connection.setForegroundColor(connectionColor);
? - 전화 할 때? - 어떤 개체 (포트 또는 연결)? 귀하의 질문은 나를 위해 명확하지 않습니다. –
포트 개체에서 호출하고 있습니다. –