org.pentaho.reporting.engine.classic.core.style
Class ImmutableStyleSheet

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.style.AbstractStyleSheet
      extended by org.pentaho.reporting.engine.classic.core.style.ImmutableStyleSheet
All Implemented Interfaces:
Serializable, StyleSheet

Deprecated. This class is not used anywhere. It will be removed in 0.8.11.

public class ImmutableStyleSheet
extends AbstractStyleSheet
implements Serializable

Creation-Date: 26.06.2006, 11:25:02

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
ImmutableStyleSheet(ElementStyleSheet styleSheet)
          Deprecated.  
 
Method Summary
 boolean getBooleanStyleProperty(StyleKey key)
          Deprecated. Returns a boolean style (defaults to false if the style is not found).
 boolean getBooleanStyleProperty(StyleKey key, boolean defaultValue)
          Deprecated. Returns a boolean style.
 double getDoubleStyleProperty(StyleKey key, double def)
          Deprecated. Returns an double style.
 FontDefinition getFontDefinitionProperty()
          Deprecated. Returns the font for this style-sheet.
 int getIntStyleProperty(StyleKey key, int def)
          Deprecated. Returns an integer style.
 Object getStyleProperty(StyleKey key)
          Deprecated. Returns the value of a style.
 Object getStyleProperty(StyleKey key, Object defaultValue)
          Deprecated.  
 Object[] toArray()
          Deprecated.  
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.style.AbstractStyleSheet
derive, getChangeTracker, getId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableStyleSheet

public ImmutableStyleSheet(ElementStyleSheet styleSheet)
Deprecated. 
Method Detail

getBooleanStyleProperty

public boolean getBooleanStyleProperty(StyleKey key)
Deprecated. 
Description copied from class: AbstractStyleSheet
Returns a boolean style (defaults to false if the style is not found).

Specified by:
getBooleanStyleProperty in interface StyleSheet
Overrides:
getBooleanStyleProperty in class AbstractStyleSheet
Parameters:
key - the style key.
Returns:
true or false.

getBooleanStyleProperty

public boolean getBooleanStyleProperty(StyleKey key,
                                       boolean defaultValue)
Deprecated. 
Description copied from class: AbstractStyleSheet
Returns a boolean style.

Specified by:
getBooleanStyleProperty in interface StyleSheet
Overrides:
getBooleanStyleProperty in class AbstractStyleSheet
Parameters:
key - the style key.
defaultValue - the default value.
Returns:
true or false.

getFontDefinitionProperty

public FontDefinition getFontDefinitionProperty()
Deprecated. 
Description copied from class: AbstractStyleSheet
Returns the font for this style-sheet.

Overrides:
getFontDefinitionProperty in class AbstractStyleSheet
Returns:
the font.

getIntStyleProperty

public int getIntStyleProperty(StyleKey key,
                               int def)
Deprecated. 
Returns an integer style.

Specified by:
getIntStyleProperty in interface StyleSheet
Overrides:
getIntStyleProperty in class AbstractStyleSheet
Parameters:
key - the style key.
def - the default value.
Returns:
the style value.

getDoubleStyleProperty

public double getDoubleStyleProperty(StyleKey key,
                                     double def)
Deprecated. 
Returns an double style.

Specified by:
getDoubleStyleProperty in interface StyleSheet
Overrides:
getDoubleStyleProperty in class AbstractStyleSheet
Parameters:
key - the style key.
def - the default value.
Returns:
the style value.

getStyleProperty

public Object getStyleProperty(StyleKey key)
Deprecated. 
Description copied from class: AbstractStyleSheet
Returns the value of a style. If the style is not found in this style-sheet, the code looks in the parent style-sheets. If the style is not found in any of the parent style-sheets, then null is returned.

Specified by:
getStyleProperty in interface StyleSheet
Overrides:
getStyleProperty in class AbstractStyleSheet
Parameters:
key - the style key.
Returns:
the value.

getStyleProperty

public Object getStyleProperty(StyleKey key,
                               Object defaultValue)
Deprecated. 
Specified by:
getStyleProperty in interface StyleSheet

toArray

public Object[] toArray()
Deprecated. 
Specified by:
toArray in interface StyleSheet