|
From: R.T.H.Chin <r.t...@tb...> - 2005-10-28 15:22:13
|
Hi, Images in the animation panel usually extend Renderable2D (in the dsol project). You should overwrite the abstract paint method in this class to draw an image on the animation panel. The only argument of this method is a Graphics2D - object, which you can use to draw a line: graphics.drawLine(x1,y1,x2,y2) The coordinates are in world coordinates relative to the object's location which is represented by the renderable (see the constructor of Renderable2D). The coordinates are automatically scaled by the Renderable2D before the line is drawn on the animation panel. See the javadoc of Graphics2D to find out more about drawing images in Java2D (just Google for Graphics2D). Greetings, Roy fhe...@is... wrote: >Hi, >Can you tell me how to draw a line in the Animation Panel? >The line should represent a Vector of Directed points. > >How can I change the size of an image to scale it according to reality size? > > > >Thank you, > >Francisco > > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. >Get Certified Today * Register for a JBoss Training Course >Free Certification Exam for All Training Attendees Through End of 2005 >Visit http://www.jboss.com/services/certification for more information >_______________________________________________ >Dsol-java mailing list >Dso...@li... >https://lists.sourceforge.net/lists/listinfo/dsol-java > > > |