lt.monarch.util
Class StyleWriter

java.lang.Object
  extended by lt.monarch.util.StyleWriter

public class StyleWriter
extends java.lang.Object

Saves chart styles to a a stream


Constructor Summary
Constructor and Description
StyleWriter()
           
 
Method Summary
Modifier and Type Method and Description
protected  java.util.List<java.lang.String> getClassHierarchyNames(java.lang.Object object)
           
protected  java.lang.String getClassName(java.lang.Class<?> type)
           
protected  java.lang.String getClassName(java.lang.Object object)
           
 void saveStyles(java.io.OutputStream fileOutputStream, ViewContainer chart)
          Serializes style properties of chart elements into file.
 void saveStyles(java.lang.String fileName, ViewContainer chart)
          Serializes style properties of chart elements into file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleWriter

public StyleWriter()
Method Detail

saveStyles

public void saveStyles(java.lang.String fileName,
                       ViewContainer chart)
Serializes style properties of chart elements into file.

Parameters:
fileName - file name
chart -

saveStyles

public void saveStyles(java.io.OutputStream fileOutputStream,
                       ViewContainer chart)
Serializes style properties of chart elements into file.

Parameters:
fileOutputStream - file output stream
chart -

getClassName

protected java.lang.String getClassName(java.lang.Class<?> type)

getClassName

protected java.lang.String getClassName(java.lang.Object object)

getClassHierarchyNames

protected java.util.List<java.lang.String> getClassHierarchyNames(java.lang.Object object)