tiles

Internationalization using Tiles

Hi everyone I want to implement internationalization in tiles. I have made 3 definition files-layout-defs_en.xml,layout-defs_fr.xml and layout-defs.xml. By default it is going with the layout-defs_en.xml definition file. I want to know how will it switch the tiles definition files. I got to know a session attribute Locale, by which it ...

How to tile a 30000 x 6000 image for a 480 x 320 screen?

(this is related to another question about implementation on iPhone) I have a large image, size around 30000 (w) x 6000 (h) pixels. You may consider it's like a big map. I assume I need to crop it up into smaller tiles. Questions: what is the tile strategy? Requirements: whole image (though cropped) can be scrolled up/down/left/r...

How to scroll and zoom in/out large images on iPhone?

I have a large image, size around 30000 (w) x 6000 (h) pixels. You may consider it's like a big map. I assume I need to crop it up into smaller tiles. Questions: what are the right ViewControllers to use? (link) what is the tile strategy? (I put this in another question, as it's not iPhone specific) Requirements: whole image (thoug...

C#: 2D sub-Tile Line intersection

Hi, I have some problems getting an algorithm for my game to work and hope someone here can help me. Google didn't seem to be a good help as most solutions just work for full tiles. In the game units can occupy different positions inside a tile, i.e. they can be in the upper left corner, center, bottom right, ... position of tile (2/3),...

Rotating A Tile In A BufferedImage

I have created a a bufferedImage of 6 tiles of 2 rows and 3 columns and i want to rotate the last tile of the second row. This tile serves as a crossing for my animation. My problems are : How can i get access to that specifc tile alone and rotate it alone without affecting others. I have googled for a while but no answer. ...

tiled images in swing

I have task to prepare two windows with swing. One contains grid of squares, with random numbers in them. In second I need to load pieces of tiled image and then show them in the correct order, forming tiled image. Windows should look like this : Okay so how to bite this ? I've used swing only few times to draw some 2d polylines, so ...

How can i integrate jsf 1.2 with tiles?

How can i integrate jsf 1.2 with tiles? ...

Getting the path name of a page who inserts a Struts tile from the inserted Struts tile

Hi! I've got a JSP which inserts a Struts tile, which is another JSP. Now I want to get from inside the inserted Struts tile the (path) name of the JSP which inserted that tile. I want to get the (path) name of the "uber" or "parent" JSP. If it is, in which way is this doable? ...

Good ways to map a 2D side shooter (somewhat like liero, or soldat)

I'm wondering what way would be best to render a 2D map for a shooter (these will be static maps) similar to Soldat. Multiple options I've considered are a tile based map (stored in txt files), or just creating different classes for the different terrains I plan to use and creating a data structure to read/store them in a file. (I want t...

Accessing Spring beans from a Tiles view (JSP)

In Spring MVC I can access my beans in JSP using JstlView's exposedContextBeanNames (or exposeContextBeansAsAttributes). For example, then, in my JSP I can write (${properties.myProperty). But when the same JSP is a part of a tiles view, these properties aren't accessible. Is possible to configure Tiles properly or access these propertie...

Inserting Struts Tiles attribute into a JavaScript function

Hi, I'm trying to insert a Struts Tiles attribute into a JavaScript function. The JS function is called on load and certain JSP pages should be allowed to append additional code to that function. The template looks like this: <html> <head> <script> function onLoad(){ ... <tiles:insert attribute="html.head.onLoad" ignore="tru...

sitemesh and tiles 2.1 integration with spring MVC

Is posible to integrate sitemesh and tiles 2.1 with spring mvc ? I want to composite the layout with tiles and then decorate with sitemesh. I was using tiles like that. <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer"> <property name="definitions"> <list> ...

Glueing tile images together using imagemagick's montage command

This seems like it might be a reasonably common question, so I'm going to ask it using as many keywords as I can think of! I have a bunch of (well, nine) tile jpegs, with standard tile filenames. Each jpeg is 220x175 pixels: (top row) tile_1_0_0.jpg tile_1_1_0.jpg tile_1_2_0.jpg (middle row) tile_1_0_1.jpg tile_1_1_1.jpg tile_1_2_1.jpg...

MapView tile coordinates

Is it possible to determine the coordinates of the tiles that are visible in a MapView, relative to the first tile in the upper left corner of the entire map (including the invisible part)? I can't seem to find a way to get the tile coordinates ... ...

How to send exceptions to exceptionController?

<bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver"> <property name="mappedHandlers"> <set> <ref bean="exceptionController" /> </set> </property> <property name="defaultErrorView" value="tiles/content/error" /> </bean> I'm trying to send exceptions to a contro...

How do I add an overlay to my OpenStreetMap

I currently use a google map and create tiles for it by using a PHP script to generate the required PNG images var myTileLayer = new GTileLayerOverlay( new GTileLayer(null, null, null, { //tileUrlTemplate: 'Overlays/Overlay_{Z}_{X}_{Y}.png', ...

Tiling rectangles seamlessly in WPF while maintaing subpixel accuracy?

I have had the problem described in the question Tiling rectangles seamlessly in WPF, but am not really happy with the answers given there. I am painting a bar chart by painting lots of rectangles right next to each other. Depending on the scale of the canvas containing them, there are small gaps visible between some of them as a result...

Tiles 2 And No mapping found for HTTP request with URI - Spring-MVC

I want to use Spring-Tiles intergration. Here you can see how my app looks like. So my question is: why Spring-MVC dispatcher Servlet can not resolve my Target page ??? ...

Map tiles for Openstreetmaps (OSM) and Google Maps (satellite view)

Are tiles from Openstreetmap (OSM) compatible with tiles of Google Maps (satellite view)? By compatible I mean - is it possible to use the code/logic that is written to read Openstreetmaps tiles to load tiles from Google maps ? Can someone point to good resources that can explain more on this topic. Thanks. ...

problem in export data to excel using displaytag in Struts

I load data to jsp page in Struts framework. And then export that data to excel using displaytag .It 's ok without using tiles. But I 'm using tiles in my project. So when I export data to excel , blank page is shown and nothing happen.Please help me. Thanks in advance. ...