Sign in to follow this  

[java] Specifying Java Mappy (x,y) position

This topic is 2392 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've have some code that uses javamappy to load and display a map made with Mappy (Mapwin32) and I want to specify the x,y cordinates (realitive to the window) of where the map is drawn. Mostly this has been unsuccesfull. I have for the time being created a workaround using the translate function of the supplied Graphics2D in my draw function. But this isn't really what I want as I want to specify the true (x, y) and Java Mappy's documentation has been less then helpful.

Does anyone know to do to set the (x,y) of the top left corner of the map is basically I'm asking?

Share this post


Link to post
Share on other sites
[quote name='ssdko2009' timestamp='1306539461' post='4816614']
Does anyone know to do to set the (x,y) of the top left corner of the map is basically I'm asking?
[/quote]


[size="2"]I found this [url="http://www.tilemap.co.uk/zipfiles/mapjvr6.zip"]http://www.tilemap.co.uk/zipfiles/mapjvr6.zip[/url] on this site [url="http://www.tilemap.co.uk/mappy.php"]http://www.tilemap.co.uk/mappy.php[/url] If you lookup the class Mappy in the Java doc, it seems to have just the methods you are looking for: setX() and setY().. Also[font="Arial"] [color="#000000"]setScreenDimensions[/color]() looks like some thing, that could help increase performance, by only drawing the visible parts of the map.[/font][/size]
[size="2"][font="Arial"]
[/font][/size]
[size="2"][font="Arial"]Also who puts a background like that on a website.[/font][/size]

Share this post


Link to post
Share on other sites

This topic is 2392 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this