org.jopendocument.dom
Class StyleProperties

java.lang.Object
  extended by org.jopendocument.dom.StyleProperties
Direct Known Subclasses:
ColumnStyle.StyleTableColumnProperties, GraphicStyle.StyleGraphicProperties, ParagraphStyle.StyleParagraphProperties, RowStyle.StyleTableRowProperties, SideStyleProperties, TextStyle.StyleTextProperties

public abstract class StyleProperties
extends java.lang.Object


Field Summary
static java.awt.Color TRANSPARENT
           
static java.lang.String TRANSPARENT_NAME
           
 
Constructor Summary
StyleProperties(Style style, java.lang.String propPrefix)
           
 
Method Summary
 java.awt.Color getBackgroundColor()
           
 org.jdom.Element getElement()
           
 Style getParentStyle()
           
 java.lang.String getRawBackgroundColor()
           
static boolean parseBoolean(java.lang.String s, boolean def)
           
static int parseInt(java.lang.String s, int def)
           
static java.lang.Integer parseInteger(java.lang.String s)
           
 void setBackgroundColor(java.awt.Color color)
           
 void setBackgroundColor(java.lang.String color)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSPARENT

public static final java.awt.Color TRANSPARENT

TRANSPARENT_NAME

public static final java.lang.String TRANSPARENT_NAME
See Also:
Constant Field Values
Constructor Detail

StyleProperties

public StyleProperties(Style style,
                       java.lang.String propPrefix)
Method Detail

parseBoolean

public static final boolean parseBoolean(java.lang.String s,
                                         boolean def)

parseInt

public static final int parseInt(java.lang.String s,
                                 int def)

parseInteger

public static final java.lang.Integer parseInteger(java.lang.String s)

getParentStyle

public final Style getParentStyle()

getElement

public final org.jdom.Element getElement()

getRawBackgroundColor

public final java.lang.String getRawBackgroundColor()

getBackgroundColor

public final java.awt.Color getBackgroundColor()

setBackgroundColor

public final void setBackgroundColor(java.awt.Color color)

setBackgroundColor

public final void setBackgroundColor(java.lang.String color)