Finished Java blind box version, blind box system Java language development @ Luming Technology @鹿鸣科技 #APP开发#小程序开发#盲盒源码#java盲盒@鹿鸣科技 #java开发的盲盒系统(1) Design an easy-to-understand interface that can be accessed through the mouse, menus, dialog box and other ways to enter the drawing information to be drawn.
(2) The length, area, perimeter and other properties of the drawing can be calculated, and have been displayed in or next to the drawing in dialog boxes, panels or directly through text.
(3) Able to deal with two-dimensional graphics such as line segments, multi-segmented polyline segments, triangles, rectangles, ordinary N-sides, circles, ellipses, etc.
(4) Design an abstract base class Shape that is common to all graphics, and all other graphics classes inherit from the abstract base class or its linear abstract subclass LineShape or regional graphic abstraction subclass
requirements
AreaShape
(5) Each specific graph (line segment, triangle, etc.) has static variables to count the total number of the graph in the system.
(6) Each type of graph has a name, color, and line type data member; And there are functions such as the move function Move/MoveTo, the calculated length Length, etc., wherein the calculated length of the regional graph is the calculated perimeter; A line graph has a function to calculate vertex data and a member function to calculate the number of vertices, and a regional graph has a member function to calculate the area.
(7) Other extra functions: a) Modify line type, color, etc. b) Drag and drop the mouse to move and modify the shape. c) Save the drawing to a file and load the drawing. d) Rotation of the figure.
The specific operation process of the program is in the project report in the file