draw

Document Actions
last edited 4 years ago by mika

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

inpins

  1. geom(int, int, int, int) - ID = 1 - Frame size and coordinates
    • int - X location coordinate
    • int - Y location coordinate
    • int - Frame width
    • int - Frame height
  2. drawLine(double,double,double,double,int,int,int) - ID = 2 - Draws line
    • double - X coordinate of first point
    • double - Y coordinate of first point
    • double - X coordinate of second point
    • double - Y coordinate of second point
    • int - line color
    • int - line thickness
    • int - line type(solid, dashed)
  3. drawArc2D(double,double,double,double,double,double,int,int,int,int) - ID = 3 - Draws arc
    • double - X coordinate of the upper left corner of the arc.
    • double - Y coordinate of the upper left corner of the arc.
    • double - The overall width of the full ellipse
    • double - The overall height of the full ellipse
    • double - The starting angle of the arc in degrees.
    • double - The angular extent of the arc in degrees.
    • int - The closure type for the arc
    • int - arc color
    • int - arc thickness
    • int - arc linetype(solid,dashed)
  4. drawOval(double,double,double,double,int,int,int,int) - ID = 4 - Draws oval
    • double - X coordinate of the upper left corner of the ellipse.
    • double - Y coordinate of the upper left corner of the ellipse.
    • double - The overall width of the full ellipse
    • double - The overall height of the full ellipse
    • int - ellipse linecolor
    • int - ellipse fillcolor
    • int - ellipse thickness
    • int - ellipse type(solid,dashed)
  5. drawOval(double,double,double,double,int,int,int,int) - ID = 5 - Draws text
    • int - X coordinate of the upper left corner of the text.
    • int - Y coordinate of the upper left corner of the text.
    • String - The text to be drawn
    • int - Font size
    • String - Font name
    • int - Text color
  6. drawImage(int,int,int,int,String,int) - ID = 6 - Draws text
    • int - X coordinate of the upper left corner of the image.
    • int - Y coordinate of the upper left corner of the image.
    • int - The widht of the image
    • int - The height of the image
    • String - The file path of the image
    • 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
    • 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 at sourceforge.net

configuration file revision 1.0 draw.vcb at sourceforge.net