My Java Vector Drawing Procedure Road

xiaoxiao2021-03-06  91

1. Reprinted. In July 2003, I left the company for 6 years and started a new life. I have already started, and I have made some JSP / servlet applications with Java. I have worked mainly under Delphi, 8 years Delphi experience, and the development department manager.

2. Idea. A friend has developed a vector control with Delphi, selling it, touch me. I also want to do one, use my spare time, what? Java, I didn't think of swings / AWT, I started preparing. It is also possible to think that the language is different from the experience in Delphi vector programs, the same method is the same.

3. Select.

1) JBuilder, Eclipse These two things, one to pay, one is free. However, in the hands of the country, it is basically free. Which? I have been trying for a long time. The former did not dare to use because of the lawyer's letter of Borland, and the speed is slow, the configuration is high, and there is no Pure Sun Java, so it is not. The latter is the thing of IBM (there is no mistake), and it is good, but it is still useless. Because I have seen it for a long time, I didn't think they were better than UltraEdit. Speaking of this, the official may think that I am stupid, I also think so. However, UltraEdit and UNIX VI were finally selected as the main development tool.

2) What can java2D do? I saw a long time, maybe JGraph's open source project is a classic. I summed up JGRPAH: The design is very good, it is easy, at least many people say this. I think so. The disadvantage is that it is very strange, the speed is very slow. The program is very favored, and the power is confident, can't do it, this is Team Job.

Java2D is too good, a lot of features, but according to the previous experience, it often has insufficient, where is it? It is no complete vector application. Later, I saw Java2D to do SVG and flash, I realized that it was not bad, but I misunderstood it. But considering possible product porting, such as other locale, I still abandon most Java2D features. Decide that you can implement yourself such as INTERSECT, Contains, and so on. That is, rewriting Rectangle2D, Line2D, Point2D. It may be stupid, and the official should not joke.

3) I haven't seen something swings / awt carefully, and I am really not familiar with MVC. is it possible. I don't want to think, first design the design, the New Year's Day is designed. No matter how much it is. In fact, I came here, and I went smoothly. Just have a lot of places to refactoring. Here, thank you Google.

4. Opening.

1) I have seen UML early, I also learned OO. I have also gave a lessap to my colleagues. However, I still don't understand oo. When designing, a lot of interfaces defined have become AbstractClass, I don't know why, just because After IMPLEMENTS, you must write something, even if there is no thing, you have to write, and later replaced with AbstractClass, annoying. 2) Before writing vector programs, it is no already, this time is self-found, then make a few lessons, bought a lot of geometries, nothing, and finally look at the foreign mathforum, said very good . I remember that there is an article saying this. After reading these things, you return to a high level.

3) Write into English version, it is not difficult to change to Chinese, but it is troublesome. All Comments / API Documents must be written in English, and Chinese can't go. English is really good, but it will be.

4) Implementing all class libraries, it is really tired, and a total of 6 months of spare time. In the middle, it is also responsible for two months of bowls, and family support is most important. At the beginning, UltraEdit was originally treated, but the debugging process was really painful. But now I feel much. 5) Start from Point, Rectangle, Ellipse, Bezier Curve, Arc / Chord / Pie, has been writing in front. I don't think it's not as good as Point2D, Rectangle2D, Curve2D .. but later runs it, it can be used because it does not need to bear too much pressure because of inheriting Java2D. 6) In the program, it is inevitable to use XML. I chose JDOM. In my 1.0.0 version, Jdom made my JAR file into 1.5MB, I am full, I wrote a miniDom, and the JAR file is reduced. 380kb, happy.

5. Published.

1) Get a name, although Java defines Package Name, but I don't have it. I will change it again, it is JFDRAW (now you can check it out in Google); it is a bit mixed with JDRAW, but not a matter.

2) First release a free version and say, for Java, write ShareWare to take a point of risk, so I will release a FREEWARE. JFDRAW Free Version 1.0.0.

3) Made a webpage, I have been published on the domestic and foreign website. After a few days, a friend with an england gives me a reply: ... My First Impression is this it's The Best Vector Draw FreeWare Program I've com across, And i'll no doubt be selfing what on the details page ... It is not bad, a bit of exaggeration, but give me confidence. 4) There is also a friend to say that it is good to run in Linux, but in fact, I have not tried it (no time conditioning) in Linux, I am very happy. 5) Then it is required to improve the letter, huh, huh, think, this can be done, there are friends to support it. Finally, there is no white fee. 6. Continue efforts.

The matter is far from the end, this program has only opened a head, but there is still a lot of ideas, I hope friends support, I will try to thank you.

转载请注明原文地址:https://www.9cbs.com/read-121571.html

New Post(0)