1 package org.simantics.district.network.ui.nodes;
3 import java.awt.RenderingHints.Key;
5 import org.simantics.scenegraph.g2d.G2DRenderingHints;
8 * @author Tuukka Lehtonen
9 * See {@link G2DRenderingHints}
11 public final class DistrictRenderingHints {
13 public static final Key KEY_VIEW_SCALE_UNDER_SPATIAL_ROOT = new Key(3001) {
15 public boolean isCompatibleValue(Object val) {
16 return val instanceof Double;
20 public static final Key KEY_VIEW_SCALE_RECIPROCAL_UNDER_SPATIAL_ROOT = new Key(3002) {
22 public boolean isCompatibleValue(Object val) {
23 return val instanceof Double;
27 public static final Key KEY_VIEW_ZOOM_LEVEL = new Key(3003) {
29 public boolean isCompatibleValue(Object val) {
30 return val instanceof Integer;