]> gerrit.simantics Code Review - simantics/platform.git/blob - 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
1 /*******************************************************************************\r
2  * Copyright (c) 2007, 2011 Association for Decentralized Information Management in\r
3  * Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.trend.impl;\r
13 \r
14 import java.awt.Font;\r
15 \r
16 import org.simantics.g2d.utils.GridUtil;\r
17 \r
18 public interface TrendLayout {\r
19 \r
20     public static final Font RULER_FONT = GridUtil.RULER_FONT;    \r
21     public static final Font RULER_FONT_BOLD = GridUtil.RULER_FONT_BOLD;    \r
22         \r
23         public static final double VERT_MARGIN = 10;\r
24         public static final double HORIZ_MARGIN = 30;\r
25         public static final double TITLE_HEIGHT = 40;\r
26         public static final double TITLE_FONT = 30;\r
27         public static final double MILESTONE_HEIGHT = 20;\r
28 \r
29         public static final double[] BINARY = new double[] {/*false y*/26., /*true y*/ 9., /*bottom y*/32., /*Height*/40.};\r
30         public static final double BINARY_LABEL_WIDTH = 50;\r
31         \r
32         public static final double HORIZ_RULER_HEIGHT = 26;\r
33         public static final double VERT_RULER_WIDTH = 55;\r
34         public static final double MINOR_TICK = 4;\r
35         public static final double MAJOR_TICK = 7;\r
36 \r
37         /**\r
38          * The pixel distance on both sides of the vertical value tip line that is\r
39          * still considered as hovering on top of the value tip line.\r
40          */\r
41         public static final double VALUE_TIP_HOVER_SENSITIVITY = 3;\r
42 \r
43 }\r