<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Images_for_Java</title><link>https://sourceforge.net/p/openpatrician/wikimig/Images_for_Java/</link><description>Recent changes to Images_for_Java</description><atom:link href="https://sourceforge.net/p/openpatrician/wikimig/Images_for_Java/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 24 May 2014 07:22:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/openpatrician/wikimig/Images_for_Java/feed" rel="self" type="application/rss+xml"/><item><title>Images_for_Java modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/Images_for_Java/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="prepare-images-for-usages-in-java"&gt;Prepare images for usages in Java&lt;/h1&gt;
&lt;p&gt;Java uses images for different types. The first distinction is if the image contains text. If so there must be language specific images. All images to be used are initialized through an ImageLoader which reads a text file that specifies the image. Together with the image specific information are stored there. &lt;/p&gt;
&lt;h2 id="language-specific-images"&gt;Language specific images&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nx"&gt;l&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;fnm&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="bp"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ext&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;coords&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;     &lt;span class="c1"&gt;// a single language specific file&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The language specific files are looked up by replacing the the wildcard with the local string and then loading the image. If the image cannot be found the default image (without local extension) will be loaded. &lt;/p&gt;
&lt;p&gt;If the local is 'de_CH' and the filename specified is 'screenshot*.png' then the following files are tried to load: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;screenshot_de_CH.png &lt;/li&gt;
&lt;li&gt;screenshot_de.png &lt;/li&gt;
&lt;li&gt;screenshot.png &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The first file that can be loaded will be returned. &lt;/p&gt;
&lt;p&gt;The file name is followed by an optional list of points defining a polygon that can be used as a map for the image. The coordinates are entered in the form x-y. Multiple coordinates are separated by a space. &lt;/p&gt;
&lt;h2 id="common-images"&gt;Common images&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nx"&gt;o&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;fnm&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;                          &lt;span class="c1"&gt;// a single image file&lt;/span&gt;

&lt;span class="nb"&gt;n&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;fnm&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="bp"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ext&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;number&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;           &lt;span class="c1"&gt;// a series of numbered image files, whose&lt;/span&gt;
                                &lt;span class="c1"&gt;// filenames use the numbers 0 - &amp;lt;number&amp;gt;-1&lt;/span&gt;

&lt;span class="nb"&gt;s&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;fnm&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;number&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;                &lt;span class="c1"&gt;// a strip file (fnm) containing a single row&lt;/span&gt;
                                &lt;span class="c1"&gt;// of &amp;lt;number&amp;gt; images&lt;/span&gt;

&lt;span class="nx"&gt;g&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nb"&gt;name&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;fnm&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="err"&gt;[&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;fnm&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="cp"&gt;]&lt;/span&gt;*       // a group of files with different names;
                                // they are accessible via  
                                // &lt;span class="nt"&gt;&amp;lt;name&amp;gt;&lt;/span&gt; and position _or_ &lt;span class="nt"&gt;&amp;lt;fnm&amp;gt;&lt;/span&gt; prefix
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;and blank lines and comment lines. &lt;/p&gt;
&lt;p&gt;The numbered image files (n) can be accessed by the &amp;lt;fnm&amp;gt; prefix and &amp;lt;number&amp;gt;&lt;/p&gt;
&lt;p&gt;The strip file images can be accessed by the &amp;lt;fnm&amp;gt; prefix and their position inside the file (which is assumed to hold a single row of images). &lt;/p&gt;
&lt;p&gt;The images in group files can be accessed by the 'g' &amp;lt;name&amp;gt; and the &amp;lt;fnm&amp;gt; prefix of the particular file, or its position in the group. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Sat, 24 May 2014 07:22:25 -0000</pubDate><guid>https://sourceforge.net8b956c8cb7cb50315c17e98cb4f9256432c2726b</guid></item></channel></rss>