It is difficult to find various drawings for reporting on the Internet. Here is my recent new work. A little bit of small things, share with you, if you have any questions, please send it to dengzi725@sohu.com
Applet origin, open with jcreator.
Import java.awt. *; import java.applet. *;
Public class curve extends applet {private int data [], i; public curve () {} // the init function; public void init () {data = new int [12];
DATA [0] = 100; DATA [1] = 150; DATA [2] = 60; Data [3] = 30; Data [4] = 20; DATA [5] = 60; Data [6] = 200; DATA [7] = 600; DATA [8] = 210; Data [9] = 10; Data [10] = 210; Data [11] = 10;} file: //1 body of pressure;
Public Void Paint (Graphics G) {Font F1 = New Font ("Verdana", Font.Bold, 25); G.SetFont (F1);
g.drawstring ("THE PRODUCT OF LAST YEAR", 150, 25); Font F2 = New Font ("Verdana", Font.Bold, 10); G.SetFont (F2); for (i = 0; i <= 7; i ) {g.drawstring (700-i * 100 "", 0, 52 i * 25);} g.drawline (8, 30, 10, 224); g.drawline (8, 224, 650, 224); for (i = 0; i <12; i ) {g.drawline (50 i * 50, 30, 50 i * 50, 224);
} For (i = 0; i <12; i ) {g.setcolor (color.black); g.drawstring (i 1 "m", 50 i * 50, 240);} for (i = 0; i <12; i ) {g.setcolor (color.blue); g.drawline (50 i * 50, 225-data [i] / 4, 50 (i 1) * 50, 225-data [i 1] / 4 ); G.drawstring (Data [i] ", 50 i * 50, 220-data [i] / 4);}}}
HTML original code is as follows: