net.sf.latexdraw.generators.svg
Class IShapeSVGFactory

java.lang.Object
  extended by net.sf.latexdraw.generators.svg.IShapeSVGFactory

public final class IShapeSVGFactory
extends java.lang.Object

Creates IShape instances according to the given SVG element.

This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

09/21/07

Version:
3.0
Author:
Arnaud BLOUIN

Field Summary
static IShapeSVGFactory INSTANCE
          The singleton.
 
Constructor Summary
private IShapeSVGFactory()
           
 
Method Summary
 IShape createShape(SVGElement elt)
          Creates a IShape instance using the given SVGElement.
 IShape createShape(SVGElement elt, boolean withTransformations)
          Creates a IShape instance using the given SVGElement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final IShapeSVGFactory INSTANCE
The singleton.

Constructor Detail

IShapeSVGFactory

private IShapeSVGFactory()
Method Detail

createShape

public IShape createShape(SVGElement elt)
Creates a IShape instance using the given SVGElement.

Parameters:
elt - The SVGElement to parse.
Returns:
The created IShape instance or null.
Since:
3.0

createShape

public IShape createShape(SVGElement elt,
                          boolean withTransformations)
Creates a IShape instance using the given SVGElement.

Parameters:
elt - The SVGElement to parse.
withTransformations - True: the set of transformations that concerned the given SVG element will be applied to the shape.
Returns:
The created IShape instance or null.
Since:
3.0