net.sf.latexdraw.generators.svg
Class CSSStylesGenerator

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

final class CSSStylesGenerator
extends java.lang.Object

Defines method to get/set CSS style from/to a LaTeXDraw shape.

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.

10/24/07

Version:
3.0
Author:
Arnaud BLOUIN

Field Summary
static CSSStylesGenerator INSTANCE
          The singleton.
 
Constructor Summary
private CSSStylesGenerator()
           
 
Method Summary
 void setCSSStyles(IShape shape, CSSStyleList styles, SVGDefsElement defs)
          Sets the CSS styles of the given list to the given LaTeXDraw shape.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final CSSStylesGenerator INSTANCE
The singleton.

Constructor Detail

CSSStylesGenerator

private CSSStylesGenerator()
Method Detail

setCSSStyles

public void setCSSStyles(IShape shape,
                         CSSStyleList styles,
                         SVGDefsElement defs)
Sets the CSS styles of the given list to the given LaTeXDraw shape.

Parameters:
shape - The shape to set.
styles - The styles to set to the shape.
defs - The definitions, may be null.
Since:
2.0.0