|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
code to umlhow to convert this java code to uml diagrams.i want to know whether any
software is available to do this reverse engineering import java.applet.*; import java.awt.*; import java.awt.event.*; public class KeyCars1 extends Applet implements KeyListener { int width, height; int x=250, y=0,a=200,b=0,f=275,d=0; boolean start=false; String s=" "; public void init() { width = getSize().width; height = getSize().height; setBackground( Color.orange); addKeyListener( this ); } public void keyPressed( KeyEvent e ) { start=true; } public void keyReleased( KeyEvent e ) { } public void keyTyped( KeyEvent e ) { char c = e.getKeyChar(); if ( c!= KeyEvent.CHAR_UNDEFINED ) { if(c=='w') //directions w,s,a,d; { if(y!=0) { y=y-10; } } if(c=='s') { if( y!=800) { y=y+10; } } if(c=='a') { if(x!=200) { x=x-10; } if(a!=275) { a=a+5; } else { a=a-5; } } if(c=='d') { if(x!=300) { x=x+10; } if(f!=200) { f=f-5; } else { f=f+5; } } repaint(); e.consume(); } } public void paint( Graphics g ) { System.out.println("in paint function!"); if(start) { System.out.println("im working"); if(b<800) { b=b+8; System.out.println(b) ; } if(d<800) { d=d+6; System.out.println(d); } } g.setColor( Color.black ); //road; g.fillRect( 200, 0, 100,800); g.setColor( Color.white); //divider g.drawLine(250,800,250,0); g.setColor( Color.red ); // red car g.drawRect( x,y,20,25 ); g.setColor( Color.pink); //pink car g.drawRect(a,b ,25,50 ); g.setColor( Color.blue ); //blue car g.drawRect(f,d ,25,50 ); } } [Non-text portions of this message have been removed] |
|
|
Re: code to umlOn Tue, 28 Jul 2009, pawan"jai ho rahman" wrote:
> how to convert this java code to uml diagrams.i want to know whether any > software is available to do this reverse engineering > The code can be parsed and loaded into UML logical diagram components using Umbrello 2.x thanks Saifi. |
|
|
Re: code to umlhi all,
how about converting a Python code to UML diagrams, are there any reverse engineering tools available..? On Wed, Jul 29, 2009 at 9:09 AM, Saifi Khan <saifi.khan@...>wrote: > > > On Tue, 28 Jul 2009, pawan"jai ho rahman" wrote: > > > how to convert this java code to uml diagrams.i want to know whether any > > software is available to do this reverse engineering > > > > The code can be parsed and loaded into UML logical diagram > components using Umbrello 2.x > > thanks > Saifi. > > > [Non-text portions of this message have been removed] |
|
|
Re: code to umltry pynsource from andypatterns.com
On Wed, Jul 29, 2009 at 8:34 PM, anvesh reddy <anveshreddy154@...>wrote: > > > hi all, > how about converting a Python code to UML diagrams, are there any reverse > engineering tools available..? > |
| Free embeddable forum powered by Nabble | Forum Help |