Water environment supervision system includes several modules, such as automatic collecting of the hydrological data, control of strobes, information management system, decision support, news publishing etc.Drawing system is an important part of water environment configurable supervision system. It provides users a direct, convenient, safe and stable human machine interface (HMI) through drawing configuration . This HMI makes users observe real-time data and state which are relative to configurable objects such as rivers, control stations, pumps and gates, etc. Furthermore, it makes remote control available.This article desighed a vector drawing class based Java2D, implement Some functioning of vector drawing such as paintting, moving, scaling and saving. It provided tools to paint the special complicated drawing of water environment supervision system.Designing a set of arithmetic for cutting the shape. Firstly get points of intersection between the shape been cut and cut line. Secondly devide up the point list of the shape been cut. Lastly structure the new shape based it.
|