X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scenegraph%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Fg2d%2FG2DPDFRenderingHints.java;h=ffdcc32ab31a09e8316b180b592e076ab7b31f38;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=43ff50b2fe636cd5d0a941708aeb25e7469d9fa9;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DPDFRenderingHints.java b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DPDFRenderingHints.java index 43ff50b2f..ffdcc32ab 100644 --- a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DPDFRenderingHints.java +++ b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DPDFRenderingHints.java @@ -1,67 +1,67 @@ -/******************************************************************************* - * 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.RenderingHints.Key; - -import com.lowagie.text.pdf.FontMapper; -import com.lowagie.text.pdf.PdfContentByte; -import com.lowagie.text.pdf.PdfWriter; - -/** - * @author Toni Kalajainen - */ -public final class G2DPDFRenderingHints { - - /** A rendering hint for storing the ExportPdfWriter object. */ - public static final Key KEY_EXPORT_PDF_WRITER = new Key(2003) { - @Override - public boolean isCompatibleValue(Object val) { - return val.getClass().getName().equals("org.simantics.export.core.pdf.ExportPdfWriter"); - } - }; - - /** - * A rendering hint for storing the root PDF ByteContent on which the scene - * graph is rendered within a Graphics2D instance. - */ - public static final Key KEY_PDF_BYTECONTENT = new Key(2000) { - @Override - public boolean isCompatibleValue(Object val) { - return val instanceof PdfContentByte; - } - }; - - /** - * A rendering hint for storing the root PDF writer on which the scene - * graph is rendered within a Graphics2D instance. - */ - public static final Key KEY_PDF_WRITER = new Key(2001) { - @Override - public boolean isCompatibleValue(Object val) { - return val instanceof PdfWriter; - } - }; - - /** - * A rendering hint for storing the root PDF Font Mapper on which the scene - * graph is rendered within a Graphics2D instance. - */ - public static final Key KEY_PDF_FONTMAPPER = new Key(2002) { - @Override - public boolean isCompatibleValue(Object val) { - return val instanceof FontMapper; - } - }; - - +/******************************************************************************* + * 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.RenderingHints.Key; + +import com.lowagie.text.pdf.FontMapper; +import com.lowagie.text.pdf.PdfContentByte; +import com.lowagie.text.pdf.PdfWriter; + +/** + * @author Toni Kalajainen + */ +public final class G2DPDFRenderingHints { + + /** A rendering hint for storing the ExportPdfWriter object. */ + public static final Key KEY_EXPORT_PDF_WRITER = new Key(2003) { + @Override + public boolean isCompatibleValue(Object val) { + return val.getClass().getName().equals("org.simantics.export.core.pdf.ExportPdfWriter"); + } + }; + + /** + * A rendering hint for storing the root PDF ByteContent on which the scene + * graph is rendered within a Graphics2D instance. + */ + public static final Key KEY_PDF_BYTECONTENT = new Key(2000) { + @Override + public boolean isCompatibleValue(Object val) { + return val instanceof PdfContentByte; + } + }; + + /** + * A rendering hint for storing the root PDF writer on which the scene + * graph is rendered within a Graphics2D instance. + */ + public static final Key KEY_PDF_WRITER = new Key(2001) { + @Override + public boolean isCompatibleValue(Object val) { + return val instanceof PdfWriter; + } + }; + + /** + * A rendering hint for storing the root PDF Font Mapper on which the scene + * graph is rendered within a Graphics2D instance. + */ + public static final Key KEY_PDF_FONTMAPPER = new Key(2002) { + @Override + public boolean isCompatibleValue(Object val) { + return val instanceof FontMapper; + } + }; + + } \ No newline at end of file