Revision 47816
trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/resources-application/theme/andami-theme.xml | ||
---|---|---|
29 | 29 |
<Splash |
30 | 30 |
path="splash.png" |
31 | 31 |
timer="10000" |
32 |
x="225" y="50"
|
|
33 |
fontsize="16" color="80,170,240"
|
|
32 |
x="-5" y="50"
|
|
33 |
fontsize="16" color="40,130,200"
|
|
34 | 34 |
version="${version}.${buildNumber} ${state}"/> |
35 | 35 |
</SplashImages> |
36 | 36 |
<!-- |
trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/ui/splash/MultiSplashWindow.java | ||
---|---|---|
38 | 38 |
import java.awt.event.ActionListener; |
39 | 39 |
import java.awt.event.MouseEvent; |
40 | 40 |
import java.awt.event.MouseListener; |
41 |
import java.awt.font.FontRenderContext; |
|
42 |
import java.awt.geom.Rectangle2D; |
|
41 | 43 |
|
42 | 44 |
import javax.swing.BorderFactory; |
43 | 45 |
import javax.swing.ImageIcon; |
... | ... | |
183 | 185 |
p=points[current]; |
184 | 186 |
} |
185 | 187 |
|
186 |
g.drawString(PluginServices.getText(this,ver),(int)p.getX(),(int)p.getY()); |
|
188 |
int xx = (int) p.getX(); |
|
189 |
String s = PluginServices.getText(this,ver); |
|
190 |
if( xx<0 ) { |
|
191 |
FontRenderContext context = g.getFontMetrics().getFontRenderContext(); |
|
192 |
Rectangle2D bounds = font.getStringBounds(s, context); |
|
193 |
xx = splashDimension.width - (int)bounds.getWidth() + xx; |
|
194 |
if( xx < 1 ) { |
|
195 |
xx = 1; |
|
196 |
} |
|
197 |
} |
|
198 |
g.drawString(s,xx,(int)p.getY()); |
|
187 | 199 |
|
188 | 200 |
lastIndex = current; |
189 | 201 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/resources-plugin/theme/andami-theme.xml | ||
---|---|---|
29 | 29 |
<Splash |
30 | 30 |
path="splash.png" |
31 | 31 |
timer="10000" |
32 |
x="225" y="50"
|
|
33 |
fontsize="16" color="80,170,240"
|
|
32 |
x="-5" y="50"
|
|
33 |
fontsize="16" color="40,130,200"
|
|
34 | 34 |
version="${version}.${buildNumber} ${state}"/> |
35 | 35 |
</SplashImages> |
36 | 36 |
<!-- |
Also available in: Unified diff