org.vectomatic.dom.svg
Class OMSVGStyle

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.dom.client.Style
          extended by org.vectomatic.dom.svg.OMSVGStyle

@TagName(value="style")
public class OMSVGStyle
extends com.google.gwt.dom.client.Style

Class to represent a CSS style

Author:
laaglu

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.dom.client.Style
com.google.gwt.dom.client.Style.BorderStyle, com.google.gwt.dom.client.Style.Clear, com.google.gwt.dom.client.Style.Cursor, com.google.gwt.dom.client.Style.Display, com.google.gwt.dom.client.Style.Float, com.google.gwt.dom.client.Style.FontStyle, com.google.gwt.dom.client.Style.FontWeight, com.google.gwt.dom.client.Style.HasCssName, com.google.gwt.dom.client.Style.ListStyleType, com.google.gwt.dom.client.Style.OutlineStyle, com.google.gwt.dom.client.Style.Overflow, com.google.gwt.dom.client.Style.Position, com.google.gwt.dom.client.Style.TableLayout, com.google.gwt.dom.client.Style.TextAlign, com.google.gwt.dom.client.Style.TextDecoration, com.google.gwt.dom.client.Style.TextJustify, com.google.gwt.dom.client.Style.TextOverflow, com.google.gwt.dom.client.Style.TextTransform, com.google.gwt.dom.client.Style.Unit, com.google.gwt.dom.client.Style.VerticalAlign, com.google.gwt.dom.client.Style.Visibility, com.google.gwt.dom.client.Style.WhiteSpace
 
Field Summary
protected static CSSHelper cssHelper
           
 
Constructor Summary
protected OMSVGStyle()
          Constructor
 
Method Summary
 void clearSVGProperty(String name)
          Clears the value of a named property, causing it to revert to its default.
 String getSVGProperty(String name)
          Gets the value of a named property.
 OMCSSValue getSVGPropertyCSS(String name)
          Gets the value of a named property as a CSS value.
 void setSVGProperty(String name, String value)
          Sets the value of a named property.
 
Methods inherited from class com.google.gwt.dom.client.Style
clearBackgroundColor, clearBackgroundImage, clearBorderColor, clearBorderStyle, clearBorderWidth, clearBottom, clearClear, clearColor, clearCursor, clearDisplay, clearFloat, clearFontSize, clearFontStyle, clearFontWeight, clearHeight, clearLeft, clearLineHeight, clearListStyleType, clearMargin, clearMarginBottom, clearMarginLeft, clearMarginRight, clearMarginTop, clearOpacity, clearOutlineColor, clearOutlineStyle, clearOutlineWidth, clearOverflow, clearOverflowX, clearOverflowY, clearPadding, clearPaddingBottom, clearPaddingLeft, clearPaddingRight, clearPaddingTop, clearPosition, clearProperty, clearRight, clearTableLayout, clearTextAlign, clearTextDecoration, clearTextIndent, clearTextJustify, clearTextOverflow, clearTextTransform, clearTop, clearVisibility, clearWhiteSpace, clearWidth, clearZIndex, getBackgroundColor, getBackgroundImage, getBorderColor, getBorderStyle, getBorderWidth, getBottom, getClear, getColor, getCursor, getDisplay, getFontSize, getFontStyle, getFontWeight, getHeight, getLeft, getLineHeight, getListStyleType, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOpacity, getOverflow, getOverflowX, getOverflowY, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPosition, getProperty, getRight, getTableLayout, getTextAlign, getTextDecoration, getTextIndent, getTextJustify, getTextOverflow, getTextTransform, getTop, getVerticalAlign, getVisibility, getWhiteSpace, getWidth, getZIndex, setBackgroundColor, setBackgroundImage, setBorderColor, setBorderStyle, setBorderWidth, setBottom, setClear, setColor, setCursor, setDisplay, setFloat, setFontSize, setFontStyle, setFontWeight, setHeight, setLeft, setLineHeight, setListStyleType, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setOpacity, setOutlineColor, setOutlineStyle, setOutlineWidth, setOverflow, setOverflowX, setOverflowY, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPosition, setProperty, setProperty, setPropertyPx, setRight, setTableLayout, setTextAlign, setTextDecoration, setTextIndent, setTextJustify, setTextOverflow, setTextTransform, setTop, setVerticalAlign, setVerticalAlign, setVisibility, setWhiteSpace, setWidth, setZIndex
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cssHelper

protected static CSSHelper cssHelper
Constructor Detail

OMSVGStyle

protected OMSVGStyle()
Constructor

Method Detail

clearSVGProperty

public final void clearSVGProperty(String name)
Clears the value of a named property, causing it to revert to its default.

Parameters:
name - The property name

getSVGProperty

public final String getSVGProperty(String name)
Gets the value of a named property.

Parameters:
name - The property name
Returns:
The property name

setSVGProperty

public final void setSVGProperty(String name,
                                 String value)
Sets the value of a named property.

Parameters:
name - The property name
value - The property name

getSVGPropertyCSS

public final OMCSSValue getSVGPropertyCSS(String name)
Gets the value of a named property as a CSS value. This method can be applied to get the value of the 'fill' and 'paint' properties, which will be returned as OMSVGPaint values.

Parameters:
name - The name of CSS property
Returns:
The property value


Copyright © 2012. All Rights Reserved.