]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.trend/src/org/simantics/trend/impl/TrendLayout.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.trend / src / org / simantics / trend / impl / TrendLayout.java
diff --git a/bundles/org.simantics.trend/src/org/simantics/trend/impl/TrendLayout.java b/bundles/org.simantics.trend/src/org/simantics/trend/impl/TrendLayout.java
new file mode 100644 (file)
index 0000000..19607db
--- /dev/null
@@ -0,0 +1,43 @@
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2011 Association for Decentralized Information Management in\r
+ * Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ *     VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.trend.impl;\r
+\r
+import java.awt.Font;\r
+\r
+import org.simantics.g2d.utils.GridUtil;\r
+\r
+public interface TrendLayout {\r
+\r
+    public static final Font RULER_FONT = GridUtil.RULER_FONT;    \r
+    public static final Font RULER_FONT_BOLD = GridUtil.RULER_FONT_BOLD;    \r
+       \r
+       public static final double VERT_MARGIN = 10;\r
+       public static final double HORIZ_MARGIN = 30;\r
+       public static final double TITLE_HEIGHT = 40;\r
+       public static final double TITLE_FONT = 30;\r
+       public static final double MILESTONE_HEIGHT = 20;\r
+\r
+       public static final double[] BINARY = new double[] {/*false y*/26., /*true y*/ 9., /*bottom y*/32., /*Height*/40.};\r
+       public static final double BINARY_LABEL_WIDTH = 50;\r
+       \r
+       public static final double HORIZ_RULER_HEIGHT = 26;\r
+       public static final double VERT_RULER_WIDTH = 55;\r
+       public static final double MINOR_TICK = 4;\r
+       public static final double MAJOR_TICK = 7;\r
+\r
+       /**\r
+        * The pixel distance on both sides of the vertical value tip line that is\r
+        * still considered as hovering on top of the value tip line.\r
+        */\r
+       public static final double VALUE_TIP_HOVER_SENSITIVITY = 3;\r
+\r
+}\r