History for draw
changed: - description This part creates a frame within which one can draw different type of shapes by firing corresponding inpins. Also it allwos loading images and saving the content of the frame in jpeg format. figure <img src="draw.bmp" /> inpins 1 geom(int, int, int, int) - ID = 1 - Frame size and coordinates o int - X location coordinate o int - Y location coordinate o int - Frame width o int - Frame height 2 drawLine(double,double,double,double,int,int,int) - ID = 2 - Draws line o double - X coordinate of first point o double - Y coordinate of first point o double - X coordinate of second point o double - Y coordinate of second point o int - line color o int - line thickness o int - line type(solid, dashed) 3 drawArc2D(double,double,double,double,double,double,int,int,int,int) - ID = 3 - Draws arc o double - X coordinate of the upper left corner of the arc. o double - Y coordinate of the upper left corner of the arc. o double - The overall width of the full ellipse o double - The overall height of the full ellipse o double - The starting angle of the arc in degrees. o double - The angular extent of the arc in degrees. o int - The closure type for the arc o int - arc color o int - arc thickness o int - arc linetype(solid,dashed) 4 drawOval(double,double,double,double,int,int,int,int) - ID = 4 - Draws oval o double - X coordinate of the upper left corner of the ellipse. o double - Y coordinate of the upper left corner of the ellipse. o double - The overall width of the full ellipse o double - The overall height of the full ellipse o int - ellipse linecolor o int - ellipse fillcolor o int - ellipse thickness o int - ellipse type(solid,dashed) 5 drawOval(double,double,double,double,int,int,int,int) - ID = 5 - Draws text o int - X coordinate of the upper left corner of the text. o int - Y coordinate of the upper left corner of the text. o String - The text to be drawn o int - Font size o String - Font name o int - Text color 6 drawImage(int,int,int,int,String,int) - ID = 6 - Draws text o int - X coordinate of the upper left corner of the image. o int - Y coordinate of the upper left corner of the image. o int - The widht of the image o int - The height of the image o String - The file path of the image o int - Type of the image(transparency) 7 show() - ID = 7 - Shows the frame 8 hide() - ID = 8 - Hides the frame 9 show() - ID = 9 - Clears the frame 10 save(String) - ID = 10 - Shows the frame o String - The file in which the contents of the frame to be saved no outpins links to cvs source - revision 1.0 "org.vcb.parts.ui.Draw.java":http://cvs.sourceforge.net/viewcvs.py/vcb/VCB/libraries/src/org/vcb/parts/ui/Draw.java at sourceforge.net configuration file revision 1.0 "draw.vcb":http://cvs.sourceforge.net/viewcvs.py/vcb/VCB/libraries/configs/ui/draw.vcb at sourceforge.net