net.sf.latexdraw.parsers.svg
Class CSSStyleList

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.String>
          extended by net.sf.latexdraw.parsers.svg.CSSStyleList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>, CSSStyleHandler

public class CSSStyleList
extends java.util.HashMap<java.lang.String,java.lang.String>
implements CSSStyleHandler

Defines a list of CSS styles.

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
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
private static long serialVersionUID
           
 
Constructor Summary
CSSStyleList()
           
 
Method Summary
 void addCSSStyle(java.lang.String name, java.lang.String value)
          Adds a CSS style to the list.
 java.lang.String getCSSValue(java.lang.String styleName)
           
 void onCSSStyle(java.lang.String name, java.lang.String value)
          Actions to do when a CSS style is parsed.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

CSSStyleList

public CSSStyleList()
Method Detail

addCSSStyle

public void addCSSStyle(java.lang.String name,
                        java.lang.String value)
Adds a CSS style to the list.

Parameters:
name - The name of the style.
value - The value of the style.
Since:
0.1

getCSSValue

public java.lang.String getCSSValue(java.lang.String styleName)
Parameters:
styleName - The name of the style.
Returns:
The value of the given CSS style name or null.

onCSSStyle

public void onCSSStyle(java.lang.String name,
                       java.lang.String value)
Description copied from interface: CSSStyleHandler
Actions to do when a CSS style is parsed.

Specified by:
onCSSStyle in interface CSSStyleHandler
Parameters:
name - The name of the style.
value - The value of the style.