1 /*******************************************************************************
\r
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
\r
3 * in Industry THTH ry.
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.scenegraph.g2d;
\r
14 import java.awt.Component;
\r
15 import java.awt.RenderingHints.Key;
\r
16 import java.awt.geom.Rectangle2D;
\r
19 * @author Tuukka Lehtonen
\r
20 * See {@link G2DPDFRenderingHints}
\r
22 public final class G2DRenderingHints {
\r
25 * A rendering hint for storing the boundaries of the control area within a
\r
26 * Graphics2D instance.
\r
28 public static final Key KEY_CONTROL_BOUNDS = new Key(1000) {
\r
30 public boolean isCompatibleValue(Object val) {
\r
31 return val instanceof Rectangle2D;
\r
36 * A rendering hint for storing the root AWT Component on which the scene
\r
37 * graph is rendered within a Graphics2D instance.
\r
39 public static final Key KEY_COMPONENT = new Key(1001) {
\r
41 public boolean isCompatibleValue(Object val) {
\r
42 return val instanceof Component;
\r