โปรแกรม dia วาดภาพแล้วได้ source code

dia และ java
dia และ java

22 มิ.ย.2556 ใช้ dia 0.97.2 ปี 2556 ที่สามารถเรียกใช้ผ่าน flash drive โดยไม่ต้อง install ลงเครื่องก่อน พบว่าใช้งานไม่ต่างกับรุ่นก่อนหน้านี้  ที่ทดสอบเมื่อปี 2006 เป็น dia 0.95 + gtk+ ที่ใช้วาด class diagram แล้วจัดเก็บเป็น .code และ .java ซึ่งแฟ้ม .java สามารถนำมา compile ผ่าน Java compiler ได้ หากวาด class diagram 2 ภาพ ก็จะได้แฟ้ม .java จำนวน 2 แฟ้มตามชื่อคลาส โดยมีตัวอย่าง code ดังต่อไปนี้

grandf.java
/*
*/
class grandf {
public String g = 5;
public final int grand() {
}
}

father.java
/*
*/
class Father {
public double f;
private final String ma() {
}
public final fa() {
}
}

http://www.thaiall.com/uml/dia.htm
http://www.thaiall.com/flowchart
http://www.thaiall.com/article/chantra.htm

Author: บุรินทร์ รุจจนพันธุ์

I am Lecturer, Developer, Researcher, Columnist, Writer, Photographer, and Webmaster - L@mpang man

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.