Jave Drawing Applet

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top