AppConstants.java

/*
 * Copyright (c) 2016 Vivid Solutions.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * and Eclipse Distribution License v. 1.0 which accompanies this distribution.
 * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v20.html
 * and the Eclipse Distribution License is available at
 *
 * http://www.eclipse.org/org/documents/edl-v10.php.
 */

package org.locationtech.jtstest.testbuilder;

import java.awt.Color;
import java.awt.Font;

import org.locationtech.jts.awt.FontGlyphReader;
import org.locationtech.jtstest.testbuilder.ui.ColorUtil;


public class AppConstants 
{
  public static final int POINT_SIZE = 5;
  public static final int VERTEX_SIZE = 4;
  public static final double HIGHLIGHT_SIZE = 50.0;
  public static final double VERTEX_SHADOW_SIZE = 100;
  
	public static final double TOPO_STRETCH_VIEW_DIST = 5;
	
	public static final double  MASK_WIDTH_FRAC = 0.3333;
	// a very light gray
	public static final Color MASK_CLR = new Color(230, 230, 230);
	
  public static final Color VERTEX_SHADOW_CLR = new Color(180,180,180);
  public static final Color VERTEX_HIGHLIGHT_CLR = new Color(255, 255, 0);
  
  public static final Color HIGHLIGHT_CLR = new Color(255, 192, 0, 150);
  public static final Color HIGHLIGHT_FILL_CLR = new Color(255, 240, 192, 200);
  
	public static final Color BAND_CLR = new Color(255, 0, 0, 255);
	public static final Color INDICATOR_FILL_CLR = new Color(255, 200, 255, 100);
	public static final Color INDICATOR_LINE_CLR = new Color(150, 0, 150);
	//public static final Color INDICATOR_LINE_COLOR = new Color(255, 0, 0, 255);
	//public static final Color INDICATOR_FILL_COLOR = new Color(255, 200, 200, 200);

	public static final int AXIS_WIDTH = 3;
	public static final Color AXIS_CLR = Color.lightGray;

	public static final Color GRID_CLR = Color.lightGray;

	public static final Color GRID_MAJOR_CLR = ColorUtil.gray(240);
	public static final Color GRID_MINOR_CLR = ColorUtil.gray(190);
  public static int TOLERANCE_PIXELS = 5;

  public final static Font FONT_LABEL = new Font(FontGlyphReader.FONT_SANSSERIF, Font.BOLD, 12);


}