D
David Whitehead
I'd like to find a good example of a simple drawing applet. What I
need is to draw simple shapes (circles, squares, rectangles, etc.) and
line segments onto a canvas. I do not want something that lets a user
draw in the canvas. I only want the part that lets the program say
"draw a shape (or line) at location (x,y) of size/length n". The
applet might be a class with method calls along these lines:
drawCircle(xCenter,yCenter,radius)
drawRectangle(xLeft,yTop,width,height)
drawLine(x0,y0,x1,y1)
or something like that. I want to implement something on top of that
something more like this:
drawSensor(type, xCenter, yCenter, orientation)
drawCamera(type, xCenter, yCenter, orientation)
etc.
Any suggestions on where to find an applet like this or advice in
general? -David
need is to draw simple shapes (circles, squares, rectangles, etc.) and
line segments onto a canvas. I do not want something that lets a user
draw in the canvas. I only want the part that lets the program say
"draw a shape (or line) at location (x,y) of size/length n". The
applet might be a class with method calls along these lines:
drawCircle(xCenter,yCenter,radius)
drawRectangle(xLeft,yTop,width,height)
drawLine(x0,y0,x1,y1)
or something like that. I want to implement something on top of that
something more like this:
drawSensor(type, xCenter, yCenter, orientation)
drawCamera(type, xCenter, yCenter, orientation)
etc.
Any suggestions on where to find an applet like this or advice in
general? -David