summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarMiddleButton.java
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarMiddleButton.java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarMiddleButton.java93
1 files changed, 0 insertions, 93 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarMiddleButton.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarMiddleButton.java
deleted file mode 100644
index 452f0a45..00000000
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarMiddleButton.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Copyright 2012 by A-SIT, Secure Information Technology Center Austria
- *
- * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by
- * the European Commission - subsequent versions of the EUPL (the "Licence");
- * You may not use this work except in compliance with the Licence.
- * You may obtain a copy of the Licence at:
- * http://joinup.ec.europa.eu/software/page/eupl
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the Licence is distributed on an "AS IS" basis,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the Licence for the specific language governing permissions and
- * limitations under the Licence.
- */
-package at.asit.pdfover.gui.controls;
-
-// Imports
-import org.eclipse.swt.events.PaintEvent;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.graphics.Region;
-import org.eclipse.swt.widgets.Composite;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- *
- */
-public class MainBarMiddleButton extends MainBarButton {
- /**
- * @param parent
- * @param style
- */
- public MainBarMiddleButton(Composite parent, int style) {
- super(parent, style);
- }
-
- /**
- * SLF4J Logger instance
- **/
- @SuppressWarnings("unused")
- private static final Logger log = LoggerFactory.getLogger(MainBarMiddleButton.class);
-
- /* (non-Javadoc)
- * @see at.asit.pdfover.gui.controls.MainBarButton#paintButton(org.eclipse.swt.events.PaintEvent)
- */
- @Override
- protected void paintButton(PaintEvent e) {
-
- Point size = this.getSize();
-
- int height = size.y - 3;
-
- int split = SplitFactor;
- int width = size.x - split;
-
- e.gc.drawLine(0, 0, width, 0);
- e.gc.drawLine(width, 0, width+split, (height) / 2);
- e.gc.drawLine(width+split, (height) / 2, width, height);
- e.gc.drawLine(width, height, 0, height);
- e.gc.drawLine(0, height, 0+split, (height) / 2);
- e.gc.drawLine(0+split, (height) / 2, 0, 0);
-
- }
-
-
- /* (non-Javadoc)
- * @see at.asit.pdfover.gui.controls.MainBarButton#getCustomRegion()
- */
- @Override
- protected Region getCustomRegion() {
- Point size = this.getSize();
-
- int height = size.y - 2;
-
- int split = SplitFactor;
-
- int width = size.x - split;
-
- Region reg = new Region();
- reg.add(new int[] {
- 0, 0,
- width, 0,
- width + split, (height) / 2,
- width, height,
- 0, height,
- 0+split, (height) / 2,
- 0, 0 });
-
- return reg;
- }
-
-}