X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scenegraph%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Fg2d%2FG2DRenderingHints.java;h=00c7a6d0c8c516ead3e619f6edc8b8bb0070c9db;hp=2e017b21fa8b6342db9eb6488e5b24d84b461ed0;hb=refs%2Fchanges%2F38%2F238%2F2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DRenderingHints.java b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DRenderingHints.java index 2e017b21f..00c7a6d0c 100644 --- a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DRenderingHints.java +++ b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DRenderingHints.java @@ -1,46 +1,46 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.scenegraph.g2d; - -import java.awt.Component; -import java.awt.RenderingHints.Key; -import java.awt.geom.Rectangle2D; - -/** - * @author Tuukka Lehtonen - * See {@link G2DPDFRenderingHints} - */ -public final class G2DRenderingHints { - - /** - * A rendering hint for storing the boundaries of the control area within a - * Graphics2D instance. - */ - public static final Key KEY_CONTROL_BOUNDS = new Key(1000) { - @Override - public boolean isCompatibleValue(Object val) { - return val instanceof Rectangle2D; - } - }; - - /** - * A rendering hint for storing the root AWT Component on which the scene - * graph is rendered within a Graphics2D instance. - */ - public static final Key KEY_COMPONENT = new Key(1001) { - @Override - public boolean isCompatibleValue(Object val) { - return val instanceof Component; - } - }; - +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.scenegraph.g2d; + +import java.awt.Component; +import java.awt.RenderingHints.Key; +import java.awt.geom.Rectangle2D; + +/** + * @author Tuukka Lehtonen + * See {@link G2DPDFRenderingHints} + */ +public final class G2DRenderingHints { + + /** + * A rendering hint for storing the boundaries of the control area within a + * Graphics2D instance. + */ + public static final Key KEY_CONTROL_BOUNDS = new Key(1000) { + @Override + public boolean isCompatibleValue(Object val) { + return val instanceof Rectangle2D; + } + }; + + /** + * A rendering hint for storing the root AWT Component on which the scene + * graph is rendered within a Graphics2D instance. + */ + public static final Key KEY_COMPONENT = new Key(1001) { + @Override + public boolean isCompatibleValue(Object val) { + return val instanceof Component; + } + }; + } \ No newline at end of file