net.sf.latexdraw.generators.svg
Class LCircleArcSVGGenerator

java.lang.Object
  extended by net.sf.latexdraw.generators.svg.LShapeSVGGenerator<S>
      extended by net.sf.latexdraw.generators.svg.LEllipseSVGGenerator<ICircleArc>
          extended by net.sf.latexdraw.generators.svg.LCircleArcSVGGenerator

 class LCircleArcSVGGenerator
extends LEllipseSVGGenerator<ICircleArc>

Defines a SVG generator for an arc.

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.

11/11/07

Version:
3.0
Author:
Arnaud BLOUIN

Field Summary
 
Fields inherited from class net.sf.latexdraw.generators.svg.LShapeSVGGenerator
shape, SVG_URL_TOKEN_BEGIN
 
Constructor Summary
protected LCircleArcSVGGenerator(ICircleArc shape)
          Creates a generator of SVG arc.
protected LCircleArcSVGGenerator(SVGGElement elt)
          Creates an arc from a G SVG element.
protected LCircleArcSVGGenerator(SVGGElement elt, boolean withTransformation)
          Creates an arc from a latexdraw-SVG element.
 
Method Summary
protected  SVGGElement getShowPointsElement(SVGDocument doc)
          Creates an SVG g element that contains the 'show points' plotting.
 SVGElement toSVG(SVGDocument doc)
          Creates an SVG element from the current latexdraw shape.
 
Methods inherited from class net.sf.latexdraw.generators.svg.LEllipseSVGGenerator
setEllipseParameters
 
Methods inherited from class net.sf.latexdraw.generators.svg.LShapeSVGGenerator
applyTransformation, applyTransformations, getGradientPoints, getLaTeXDrawElement, getPositionGap, getShape, getShowPointsDot, getShowPointsLine, getSVGHatchingsPath, getSVGID, homogeniseArrowFrom, homogeniseArrows, setDashedDotted, setDashedDotted, setFill, setLineColour, setNumber, setSVGArrow, setSVGArrow, setSVGAttributes, setSVGBorderBackground, setSVGDbleBordersParameters, setSVGDoubleBordersAttributes, setSVGLatexdrawParameters, setSVGParameters, setSVGRotationAttribute, setSVGShadowAttributes, setSVGShadowParameters, setThickness, setThickness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LCircleArcSVGGenerator

protected LCircleArcSVGGenerator(ICircleArc shape)
Creates a generator of SVG arc.

Parameters:
shape - The arc shape used for the generation.
Throws:
java.lang.IllegalArgumentException - If arc is null.
Since:
2.0

LCircleArcSVGGenerator

protected LCircleArcSVGGenerator(SVGGElement elt)
Creates an arc from a G SVG element.

Parameters:
elt - The G SVG element used for the creation of an arc.
Throws:
java.lang.IllegalArgumentException - If the given element is null.
Since:
2.0

LCircleArcSVGGenerator

protected LCircleArcSVGGenerator(SVGGElement elt,
                                 boolean withTransformation)
Creates an arc from a latexdraw-SVG element.

Parameters:
elt - The source element.
withTransformation - If true, the SVG transformations will be applied.
Since:
2.0.0
Method Detail

toSVG

public SVGElement toSVG(SVGDocument doc)
Description copied from class: LShapeSVGGenerator
Creates an SVG element from the current latexdraw shape.

Overrides:
toSVG in class LEllipseSVGGenerator<ICircleArc>
Parameters:
doc - The SVG document.
Returns:
The created SVGElement or null.

getShowPointsElement

protected SVGGElement getShowPointsElement(SVGDocument doc)
Creates an SVG g element that contains the 'show points' plotting.

Parameters:
doc - The owner document.
Returns:
The created g element or null if the shape has not the 'show points' option activated.
Since:
2.0.0