1 /*
2  * Copyright (c) 2016 Vivid Solutions.
3  *
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * and Eclipse Distribution License v. 1.0 which accompanies this distribution.
7  * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v20.html
8  * and the Eclipse Distribution License is available at
9  *
10  * http://www.eclipse.org/org/documents/edl-v10.php.
11  */
12 
13 package org.locationtech.jtstest.testbuilder;
14 
15 import java.awt.Color;
16 import java.awt.Font;
17 
18 import org.locationtech.jts.awt.FontGlyphReader;
19 import org.locationtech.jtstest.testbuilder.ui.ColorUtil;
20 
21 
22 public class AppConstants
23 {
24   public static final int POINT_SIZE = 5;
25   public static final int VERTEX_SIZE = 4;
26   public static double HIGHLIGHT_SIZE = 50.0;
27   public static double VERTEX_SHADOW_SIZE = 100;
28 
29 	public static double TOPO_STRETCH_VIEW_DIST = 5;
30 
31 	public static double  MASK_WIDTH_FRAC = 0.3333;
32 	// a very light gray
33 	public static final Color MASK_CLR = new Color(230, 230, 230);
34 
35   public static final Color VERTEX_SHADOW_CLR = new Color(180,180,180);
36   public static final Color VERTEX_HIGHLIGHT_CLR = new Color(255, 255, 0);
37 
38   public static final Color HIGHLIGHT_CLR = new Color(255, 192, 0, 150);
39   public static final Color HIGHLIGHT_FILL_CLR = new Color(255, 240, 192, 200);
40 
41 	public static final Color BAND_CLR = new Color(255, 0, 0, 255);
42 	public static final Color INDICATOR_FILL_CLR = GeometryDepiction.GEOM_RESULT_FILL_CLR;
43 	//public static final Color INDICATOR_LINE_COLOR = new Color(255, 0, 0, 255);
44 	//public static final Color INDICATOR_FILL_COLOR = new Color(255, 200, 200, 200);
45 	public static final Color INDICATOR_LINE_CLR = GeometryDepiction.GEOM_RESULT_LINE_CLR;
46 
47 	public static final int AXIS_WIDTH = 3;
48 	public static final Color AXIS_CLR = Color.lightGray;
49 
50 	public static final Color GRID_CLR = Color.lightGray;
51 
52 	public static final Color GRID_MAJOR_CLR = ColorUtil.gray(240);
53 	public static final Color GRID_MINOR_CLR = ColorUtil.gray(190);
54   public static int TOLERANCE_PIXELS = 5;
55 
56   public final static Font FONT_LABEL = new Font(FontGlyphReader.FONT_SANSSERIF, Font.BOLD, 12);
57 
58 
59 }
60