DisplayParameters.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.model;
import org.locationtech.jtstest.testbuilder.AppConstants;
public class DisplayParameters {
protected static boolean showingGrid = true;
protected static boolean showingCoordinates = true;
protected static boolean isMagnifyingTopology = false;
protected static double topologyStretchSize = AppConstants.TOPO_STRETCH_VIEW_DIST;
public static boolean isShowingGrid() {
return showingGrid;
}
public static void setShowingGrid(boolean show) {
showingGrid = show;
}
public static boolean isRevealingTopology() {
return isMagnifyingTopology;
}
public static void setRevealingTopology(boolean show) {
isMagnifyingTopology = show;
}
public static void setTopologyStretchSize(double pixels) {
topologyStretchSize = pixels;
}
public static double getTopologyStretchSize() {
return topologyStretchSize;
}
public static int MAX_DISPLAY_POINTS = 2000;
}