]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictRenderingHints.java
Optimization of district scene graph node rendering
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / nodes / DistrictRenderingHints.java
1 package org.simantics.district.network.ui.nodes;
2
3 import java.awt.RenderingHints.Key;
4
5 import org.simantics.scenegraph.g2d.G2DRenderingHints;
6
7 /**
8  * @author Tuukka Lehtonen
9  * See {@link G2DRenderingHints}
10  */
11 public final class DistrictRenderingHints {
12
13     public static final Key KEY_VIEW_SCALE_UNDER_SPATIAL_ROOT = new Key(3001) {
14         @Override
15         public boolean isCompatibleValue(Object val) {
16             return val instanceof Double;
17         }
18     };
19
20     public static final Key KEY_VIEW_SCALE_RECIPROCAL_UNDER_SPATIAL_ROOT = new Key(3002) {
21         @Override
22         public boolean isCompatibleValue(Object val) {
23             return val instanceof Double;
24         }
25     };
26
27     public static final Key KEY_VIEW_ZOOM_LEVEL = new Key(3003) {
28         @Override
29         public boolean isCompatibleValue(Object val) {
30             return val instanceof Integer;
31         }
32     };
33
34 }