File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Location Finder(Urgent)!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Location Finder(Urgent)!!!" Watch "Location Finder(Urgent)!!!" New topic
Author

Location Finder(Urgent)!!!

amit malhotra
Ranch Hand

Joined: Aug 06, 2001
Posts: 30
Dear Freinds,
We are developing an application in which when you enter the name of an employee(in a text box) it will list out his details and when you click on the location(that's one of the columns of a table), you can find out about his exact location (ie a graphics view of as to where he is located at a particular floor).Could some suggest a way to do it.We have 6 floors in our building with employees sitting on each floor. and i have gif images of each floor.could some one give a logical solution to this problem
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Save the images of the floor plan of the building in a 6 member array. In the employee object, save the floor they are on ( 0-5 ) and the x and y location they are located at on the appropriate floor plan image... then, when a user clicks to see the employee's location, just display the image specified in the employee object, and then draw a dot at the x,y location specified.

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
amit malhotra
Ranch Hand

Joined: Aug 06, 2001
Posts: 30
How do I find out the X and Y postion of the employee and how do i store and retrive the images in an array could you be more specific please.......my email id is amitkumar_j_malhotra@ril.com
is there any other way i can do this(i mean client side scripting)
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You'll have to do the x,y mapping of employees to locations yourself... if you know Bob sits in cubicle 47A you'll have to find cubical 47A on your map image and note the x,y location you should mark. ( Personally, I would make a little program that displayed the image and had a mouse listener returning x and y position to help me with this... ) You could also have a translation method that translated coordinates from whatever the company uses to x,y locations on the image depending on if the companys coordinate system makes sense...

To store and retrieve images in an array...


HTH,
-Nate
amit malhotra
Ranch Hand

Joined: Aug 06, 2001
Posts: 30
Thanx a lot for the answer,I will try out the same in a small way and then post my answer again....
bye
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Location Finder(Urgent)!!!