Class EditableStyleSheet

  • All Implemented Interfaces:
    Serializable, Cloneable, org.pentaho.reporting.engine.classic.core.style.StyleSheet

    public class EditableStyleSheet
    extends org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearEdits()  
      void copyParentValues​(org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet parent)  
      static EditableStyleSheet create​(List<org.pentaho.reporting.engine.classic.core.Element> visualElements)  
      static EditableStyleSheet create​(org.pentaho.reporting.engine.classic.core.Element... visualElements)  
      org.pentaho.reporting.engine.classic.core.style.StyleKey[] getDefinedPropertyNamesArray()  
      Object getStyleProperty​(org.pentaho.reporting.engine.classic.core.style.StyleKey key, Object defaultValue)
      Returns the value of a style.
      void setStyleProperty​(org.pentaho.reporting.engine.classic.core.style.StyleKey key, Object value)
      Sets a style property (or removes the style if the value is null).
      • Methods inherited from class org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet

        addAll, addDefault, addInherited, addInherited, addListener, clear, clone, copyFrom, derive, getChangeTracker, getChangeTrackerHash, getModificationCount, getPropertyKeyList, getPropertyKeys, isLocalKey, removeListener, setBooleanStyleProperty, setChangeTrackerHash, setModificationCount, toArray
      • Methods inherited from class org.pentaho.reporting.engine.classic.core.style.AbstractStyleSheet

        getBooleanStyleProperty, getBooleanStyleProperty, getDoubleStyleProperty, getId, getIntStyleProperty, getStyleProperty, setId
    • Constructor Detail

      • EditableStyleSheet

        public EditableStyleSheet()
    • Method Detail

      • copyParentValues

        public void copyParentValues​(org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet parent)
      • clearEdits

        public void clearEdits()
      • create

        public static EditableStyleSheet create​(List<org.pentaho.reporting.engine.classic.core.Element> visualElements)
      • create

        public static EditableStyleSheet create​(org.pentaho.reporting.engine.classic.core.Element... visualElements)
      • setStyleProperty

        public void setStyleProperty​(org.pentaho.reporting.engine.classic.core.style.StyleKey key,
                                     Object value)
        Sets a style property (or removes the style if the value is null).
        Overrides:
        setStyleProperty in class org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
        Parameters:
        key - the style key (null not permitted).
        value - the value.
        Throws:
        NullPointerException - if the given key is null.
        ClassCastException - if the value cannot be assigned with the given key.
      • getStyleProperty

        public Object getStyleProperty​(org.pentaho.reporting.engine.classic.core.style.StyleKey key,
                                       Object defaultValue)
        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 the default value (possibly null) is returned.
        Specified by:
        getStyleProperty in interface org.pentaho.reporting.engine.classic.core.style.StyleSheet
        Overrides:
        getStyleProperty in class org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
        Parameters:
        key - the style key.
        defaultValue - the default value (null permitted).
        Returns:
        the value.
      • getDefinedPropertyNamesArray

        public org.pentaho.reporting.engine.classic.core.style.StyleKey[] getDefinedPropertyNamesArray()
        Overrides:
        getDefinedPropertyNamesArray in class org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet