UML을 소스 코드로 작성하기 PlantUML
다른 방법을 찾고 있었는데 PlantUML되는 것을 발견.
소스 코드로 UML을 쓸 수 있기 때문에, 조속히 도입한다.
PlantUML을 Atom에서 사용할 수 있도록 한다.
~추기~
Atom을 도입하는 이유는, 리얼타임 프리뷰가 편리하기 때문입니다만,
내 환경에서는 작동이 안정되지 않았습니다.
없어도, 문제 없기 때문에, 아래와 같이『추기:Atom 없이 실시간 프리뷰를 실현』을 확인해 주세요.
PlantUML 설치
아래에서 plantuml.jar 다운로드
PlantUML

jar의 저장 위치는 원하는 곳에서 좋다.
Graphviz 설치
Graphviz는 그래프 데이터 구조의 시각화 도구
1. 아래에서 다운로드
Graphviz
2. 「Windows」의 곳에 있는 「Stable」판을 선택한다

3. 「*.msi」를 선택한다

4. "*.msi"실행
5. Next를 클릭

6. "Everyone"을 선택하고 "Next"를 클릭 (설치 대상은 원하는 곳으로)

7. Next를 클릭

8. Next를 클릭

9. "Close"에서 완료

10. 제대로 사용할 수 있게 되어 있는지 확인
다음 명령을 실행합니다.
결과가 표시되면 확인
``
java -jar "plantuml.jar의 경로"-testdot
The environment variable GRAPHVIZ_DOT has not been set
Dot executable is c:\Program Files\Graphviz2.38\bin\dot.exe
Dot version: dot - graphviz version 2.38.0 (20140413.2041)
Installation seems OK. File generation OK
``
Atom 플러그인 설치
다음을 설치합니다.
Graphviz는 그래프 데이터 구조의 시각화 도구
1. 아래에서 다운로드
Graphviz
2. 「Windows」의 곳에 있는 「Stable」판을 선택한다

3. 「*.msi」를 선택한다

4. "*.msi"실행
5. Next를 클릭

6. "Everyone"을 선택하고 "Next"를 클릭 (설치 대상은 원하는 곳으로)

7. Next를 클릭

8. Next를 클릭

9. "Close"에서 완료

10. 제대로 사용할 수 있게 되어 있는지 확인
다음 명령을 실행합니다.
결과가 표시되면 확인
``
java -jar "plantuml.jar의 경로"-testdot
The environment variable GRAPHVIZ_DOT has not been set
Dot executable is c:\Program Files\Graphviz2.38\bin\dot.exe
Dot version: dot - graphviz version 2.38.0 (20140413.2041)
Installation seems OK. File generation OK
``
Atom 플러그인 설치
다음을 설치합니다.
plantuml-viewer 설정

추가: Atom없이 실시간 미리보기 실현
plantuml.jar에는 GUI 기능이 있으며 이를 활용합니다.
다음을 수행합니다.
- 옵션 GUI는 GUI 기능 실행
- 옵션 charset은 문자 코드 선택
> java -jar "plantuml.jarのパス" -gui -charset utf-8
GUI가 시작됩니다.

Change Directory 버튼에서 PlantUML 소스가있는 디렉토리를 선택하십시오.
이번에는 다음을 준비
sample.puml
@startuml{sample.png}
title sample
actor ユーザ as user
left to right direction
user -d-> (物を買う)
@enduml
디렉토리를 선택하면 자동으로 sample.png를 출력하므로 sample.png를 엽니다.
파일을 변경하고 덮어쓰기 저장하면 자동으로 sample.png도 다시 씁니다.
참고
감사합니다.
PlantUML을 Atom에서 사용 in Windows7
이상!
Reference
이 문제에 관하여(UML을 소스 코드로 작성하기 PlantUML), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/tonosama/items/9df2c305312a9ca6b89e
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
> java -jar "plantuml.jarのパス" -gui -charset utf-8
@startuml{sample.png}
title sample
actor ユーザ as user
left to right direction
user -d-> (物を買う)
@enduml
감사합니다.
PlantUML을 Atom에서 사용 in Windows7
이상!
Reference
이 문제에 관하여(UML을 소스 코드로 작성하기 PlantUML), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/tonosama/items/9df2c305312a9ca6b89e텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)