diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 18:59:56 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 18:59:56 +0000 |
commit | 4954819108391618913054fab7d50e5abd158fb2 (patch) | |
tree | 05956f306174302c0c5dad9ce902c75f15e6470b /pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls | |
parent | d0509c99b2332c434ee2e92b2ecf811562725595 (diff) | |
download | mocca-4954819108391618913054fab7d50e5abd158fb2.tar.gz mocca-4954819108391618913054fab7d50e5abd158fb2.tar.bz2 mocca-4954819108391618913054fab7d50e5abd158fb2.zip |
+ Implemented behavior with set default output folder
+ centralized font sizes
+ added comments for documentation
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@72 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java index e0e33427..4992ef1a 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java @@ -32,12 +32,23 @@ import org.eclipse.swt.widgets.Listener; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import at.asit.pdfover.gui.composites.StateComposite; + /** * Main Bar Button implementation */ public abstract class MainBarButton extends Canvas { + /** + * If borders are drawn with a gradient effect this sets the size + */ public static final int GradientFactor = 4; + + /** + * Number of pixel of the altitude of the triangle representing the arrow within the button shapes + * + * This should be a multiple of 2! + */ public static final int SplitFactor = 10; /** @@ -73,7 +84,7 @@ public abstract class MainBarButton extends Canvas { this.textColor = this.getForeground(); this.borderColor = new Color(getDisplay(), 0x7E, 0x9F, 0xA5); this.inactiveText = new Color(getDisplay(), 0x6E, 0x6C, 0x6E); - this.textsize = 12; + this.textsize = StateComposite.TEXT_SIZE_BUTTON; } @@ -98,7 +109,7 @@ public abstract class MainBarButton extends Canvas { /** * the text size */ - protected int textsize = 12; + protected int textsize = StateComposite.TEXT_SIZE_BUTTON; /** * @return the textsize @@ -236,8 +247,8 @@ public abstract class MainBarButton extends Canvas { int width = size.x; - e.gc.setForeground(activeBackground); - e.gc.setBackground(inactiveBackground); + e.gc.setForeground(this.activeBackground); + e.gc.setBackground(this.inactiveBackground); e.gc.fillGradientRectangle(0, height, width, -1 * height, true); |