com.stimulsoft.report.styles
Class StiTableStyle

java.lang.Object
  extended by com.stimulsoft.base.serializing.StiSerializedObject
      extended by com.stimulsoft.report.styles.StiBaseStyle
          extended by com.stimulsoft.report.styles.StiTableStyle
All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiName, java.lang.Cloneable

public class StiTableStyle
extends StiBaseStyle

Copyright Stimulsoft


Nested Class Summary
 
Nested classes/interfaces inherited from class com.stimulsoft.report.styles.StiBaseStyle
StiBaseStyle.StiStyleSaver
 
Field Summary
 StiColor dataColor
           
 StiColor dataForeground
           
 StiColor footerColor
           
 StiColor footerForeground
           
 StiColor gridColor
           
 StiColor headerColor
           
 StiColor headerForeground
           
 
Fields inherited from class com.stimulsoft.report.styles.StiBaseStyle
report
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiTableStyle()
           
StiTableStyle(java.lang.String name)
           
StiTableStyle(java.lang.String name, java.lang.String description)
           
 
Method Summary
 void DrawBox(java.awt.Graphics g, java.awt.Rectangle rect, boolean paintValue, boolean paintImage)
           
 void drawStyle(java.awt.Graphics g, StiRectangle rect, boolean paintValue, boolean paintImage)
           
 void drawStyleForGallery(StiGraphics g, StiRectangle rect)
           
 StiColor getDataColor()
           
 StiColor getDataForeground()
           
 StiColor getFooterColor()
           
 StiColor getFooterForeground()
           
 StiColor getGridColor()
           
 StiColor getHeaderColor()
           
 StiColor getHeaderForeground()
           
 void GetStyleFromComponent(StiComponent component, StiStyleElements styleElements)
          Gets a style from the component.
 void Load(java.io.InputStream stream)
           
 void LoadFromJsonObject(JSONObject jObject)
           
 void Save(java.io.OutputStream stream)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setDataColor(StiColor dataColor)
           
 void setDataForeground(StiColor dataForeground)
           
 void setFooterColor(StiColor footerColor)
           
 void setFooterForeground(StiColor footerForeground)
           
 void setGridColor(StiColor gridColor)
           
 void setHeaderColor(StiColor headerColor)
           
 void setHeaderForeground(StiColor headerForeground)
           
 void SetStyleToComponent(StiComponent component)
          Sets style to a component.
 
Methods inherited from class com.stimulsoft.report.styles.StiBaseStyle
clone, equals, getCollectionName, getConditions, getDescription, getName, getStyle, getStyle, getStyle, getStyle, GetStyleFromComponents, loadStyleFromString, saveToString, setCollectionName, setConditions, setDescription, setName, toString
 
Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

headerColor

public StiColor headerColor

headerForeground

public StiColor headerForeground

footerColor

public StiColor footerColor

footerForeground

public StiColor footerForeground

dataColor

public StiColor dataColor

dataForeground

public StiColor dataForeground

gridColor

public StiColor gridColor
Constructor Detail

StiTableStyle

public StiTableStyle(java.lang.String name,
                     java.lang.String description)

StiTableStyle

public StiTableStyle(java.lang.String name)

StiTableStyle

public StiTableStyle()
Method Detail

SaveToJsonObject

public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
                            throws JSONException
Specified by:
SaveToJsonObject in interface IStiJsonReportObject
Overrides:
SaveToJsonObject in class StiBaseStyle
Throws:
JSONException

LoadFromJsonObject

public void LoadFromJsonObject(JSONObject jObject)
                        throws JSONException
Specified by:
LoadFromJsonObject in interface IStiJsonReportObject
Overrides:
LoadFromJsonObject in class StiBaseStyle
Throws:
JSONException

getHeaderColor

public StiColor getHeaderColor()
Returns:
the headerColor

setHeaderColor

public void setHeaderColor(StiColor headerColor)
Parameters:
headerColor - the headerColor to set

getHeaderForeground

public StiColor getHeaderForeground()
Returns:
the headerForeground

setHeaderForeground

public void setHeaderForeground(StiColor headerForeground)
Parameters:
headerForeground - the headerForeground to set

getFooterColor

public StiColor getFooterColor()
Returns:
the footerColor

setFooterColor

public void setFooterColor(StiColor footerColor)
Parameters:
footerColor - the footerColor to set

getFooterForeground

public StiColor getFooterForeground()
Returns:
the footerForeground

setFooterForeground

public void setFooterForeground(StiColor footerForeground)
Parameters:
footerForeground - the footerForeground to set

getDataColor

public StiColor getDataColor()
Returns:
the dataColor

setDataColor

public void setDataColor(StiColor dataColor)
Parameters:
dataColor - the dataColor to set

getDataForeground

public StiColor getDataForeground()
Returns:
the dataForeground

setDataForeground

public void setDataForeground(StiColor dataForeground)
Parameters:
dataForeground - the dataForeground to set

getGridColor

public StiColor getGridColor()
Returns:
the gridColor

setGridColor

public void setGridColor(StiColor gridColor)
Parameters:
gridColor - the gridColor to set

drawStyleForGallery

public void drawStyleForGallery(StiGraphics g,
                                StiRectangle rect)

drawStyle

public void drawStyle(java.awt.Graphics g,
                      StiRectangle rect,
                      boolean paintValue,
                      boolean paintImage)

DrawBox

public void DrawBox(java.awt.Graphics g,
                    java.awt.Rectangle rect,
                    boolean paintValue,
                    boolean paintImage)

GetStyleFromComponent

public void GetStyleFromComponent(StiComponent component,
                                  StiStyleElements styleElements)
Description copied from class: StiBaseStyle
Gets a style from the component.

Specified by:
GetStyleFromComponent in class StiBaseStyle
Parameters:
component - Component.

SetStyleToComponent

public void SetStyleToComponent(StiComponent component)
Description copied from class: StiBaseStyle
Sets style to a component.

Specified by:
SetStyleToComponent in class StiBaseStyle
Parameters:
component - Component.

Save

public void Save(java.io.OutputStream stream)

Load

public void Load(java.io.InputStream stream)