blob: ed98ec557857b53749f44c4534b7e2ef918ab57c [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2003, 2006 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
****************************************************************************/
package org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.metafile;
import org.apache.batik.transcoder.TranscoderException;
import org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.metafile.DeviceContext;
/**
* This interface is implemented by IEmf2SvgConverter's that support rendering to a 'path'.
* This is used for generating fillable paths (See Windows 'BeginPath'/'EndPath'/etc functions).
*
* @author dhabib
*/
public interface IRenderToPath
{
/**
* Called to render the Converter's data into a path.
*
* @param g GeneralPath to render this shape into.
* @param context Current device context.
* @throws TranscoderException Throws this exception if rendering cannot be completed for any reason.
*/
public void render( DeviceContext context ) throws TranscoderException;
}