This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository lima. See http://git.chorem.org/lima.git commit f852cfd1a4dd55479b4c99415f1c589cfcfad270 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Fri Jan 30 15:32:25 2015 +0100 fixes #1104 : déplacement du bandeau "BETA" --- .../main/java/org/chorem/lima/ui/BetaLayerUI.java | 26 +++++++++------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/lima-swing/src/main/java/org/chorem/lima/ui/BetaLayerUI.java b/lima-swing/src/main/java/org/chorem/lima/ui/BetaLayerUI.java index 744212f..473c89e 100644 --- a/lima-swing/src/main/java/org/chorem/lima/ui/BetaLayerUI.java +++ b/lima-swing/src/main/java/org/chorem/lima/ui/BetaLayerUI.java @@ -22,15 +22,14 @@ package org.chorem.lima.ui; +import org.jdesktop.jxlayer.JXLayer; +import org.jdesktop.jxlayer.plaf.AbstractLayerUI; + +import javax.swing.JComponent; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; -import javax.swing.JComponent; - -import org.jdesktop.jxlayer.JXLayer; -import org.jdesktop.jxlayer.plaf.AbstractLayerUI; - /** * Layer qui affiche "beta version". * @@ -50,24 +49,21 @@ public class BetaLayerUI extends AbstractLayerUI<JComponent> { super.paintLayer(g2, l); // position - //g2.translate(-35, 90); // top left - g2.translate(l.getBounds().getMaxX() - 140, l.getBounds().getMaxY()); // bottom right + g2.translate(l.getBounds().getMaxX() - 130, 0); // top right // yellow backgroung - g2.rotate(Math.PI * -42 / 180); g2.setColor(Color.YELLOW); - g2.fillRect(10, 10, 170, 30); + g2.fillOval(0, -35, 130, 70); + g2.fillRect(65, 0, 65, 35); // text - g2.translate(30, 15); g2.setFont(new Font("Dialog", Font.BOLD, 16)); g2.setColor(Color.BLACK); - g2.drawString("Beta version",10,10); - + g2.drawString("Beta version", 12, 14); + // for test only - g2.translate(15, 10); - g2.setFont(new Font("Dialog", Font.ITALIC, 10)); + g2.setFont(new Font("Dialog", Font.ITALIC, 12)); g2.setColor(Color.BLACK); - g2.drawString("(for test only)",10,10); + g2.drawString("(for test only)", 40, 29); } } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.