com.stimulsoft.report.components.conditions
Class StiDataBarCondition

java.lang.Object
  extended by com.stimulsoft.report.components.conditions.StiFilter
      extended by com.stimulsoft.report.components.conditions.StiBaseCondition
          extended by com.stimulsoft.report.components.conditions.StiDataBarCondition
All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableToString, IStiDataBarIndicator, IStiIndicatorCondition, java.lang.Cloneable

public class StiDataBarCondition
extends StiBaseCondition
implements IStiDataBarIndicator, IStiIndicatorCondition

The class describes the condition with Data Bar indicator.


Field Summary
 
Fields inherited from class com.stimulsoft.report.components.conditions.StiFilter
column
 
Constructor Summary
StiDataBarCondition()
           
StiDataBarCondition(java.lang.String column, StiBrushType brushType, StiColor positiveColor, StiColor negativeColor, boolean showBorder, StiColor positiveBorderColor, StiColor negativeBorderColor, StiDataBarDirection direction, StiMinimumType minimumType, float minimumValue, StiMaximumType maximumType, float maximumValue)
          Creates a new object of the type StiDataBarCondition.
 
Method Summary
 StiIndicator CreateIndicator(StiText component)
          Creates new indicator for specified condition.
 void deserialize(java.lang.String strObject)
          Десериализация объекта из строки.
 boolean equals(java.lang.Object obj)
           
 StiBrushType getBrushType()
          Gets or sets value which indicates which type of brush will be used for Data Bar indicator drawing.
 StiDataBarDirection getDirection()
          Gets or sets value which direction data bar will be filled by brush, from left to right or from right to left.
 StiMaximumType getMaximumType()
          Gets or sets processing type of maximal values for data bar indicator.
 float getMaximumValue()
          Gets or sets minimal value for data bar indicator.
 StiMinimumType getMinimumType()
          Gets or sets processing type of minimal values for data bar indicator.
 float getMinimumValue()
          Gets or sets minimal value for data bar indicator.
 StiColor getNegativeBorderColor()
          Gets or sets a border color of negative values for Data Bar indicator.
 StiColor getNegativeColor()
          Gets or sets a color of negative values for data bar indicator.
 StiColor getPositiveBorderColor()
          Gets or sets a border color of positive values for Data Bar indicator.
 StiColor getPositiveColor()
          Gets or sets a color of positive values for data bar indicator.
 boolean getShowBorder()
          Gets or sets value which indicates that border is drawing.
 int hashCode()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 void Reset()
          Reset condition to base state.
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 java.lang.String serialize()
          Сериализация объекта в строку.
 void setBrushType(StiBrushType value)
           
 void setDirection(StiDataBarDirection value)
           
 void setMaximumType(StiMaximumType value)
           
 void setMaximumValue(float value)
           
 void setMinimumType(StiMinimumType value)
           
 void setMinimumValue(float value)
           
 void setNegativeBorderColor(StiColor value)
           
 void setNegativeColor(StiColor value)
           
 void setPositiveBorderColor(StiColor value)
           
 void setPositiveColor(StiColor value)
           
 void setShowBorder(boolean value)
           
 
Methods inherited from class com.stimulsoft.report.components.conditions.StiBaseCondition
getTag, setTag
 
Methods inherited from class com.stimulsoft.report.components.conditions.StiFilter
getColumn, getCondition, getDataType, getExpression, getItem, getValue1, getValue2, setColumn, setCondition, setDataType, setExpression, setItem, setValue1, setValue2
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiDataBarCondition

public StiDataBarCondition()

StiDataBarCondition

public StiDataBarCondition(java.lang.String column,
                           StiBrushType brushType,
                           StiColor positiveColor,
                           StiColor negativeColor,
                           boolean showBorder,
                           StiColor positiveBorderColor,
                           StiColor negativeBorderColor,
                           StiDataBarDirection direction,
                           StiMinimumType minimumType,
                           float minimumValue,
                           StiMaximumType maximumType,
                           float maximumValue)
Creates a new object of the type StiDataBarCondition.

Method Detail

CreateIndicator

public final StiIndicator CreateIndicator(StiText component)
Creates new indicator for specified condition.

Specified by:
CreateIndicator in interface IStiIndicatorCondition

Reset

public final void Reset()
Reset condition to base state.

Specified by:
Reset in interface IStiIndicatorCondition

getBrushType

public final StiBrushType getBrushType()
Gets or sets value which indicates which type of brush will be used for Data Bar indicator drawing.

Specified by:
getBrushType in interface IStiDataBarIndicator

setBrushType

public final void setBrushType(StiBrushType value)
Specified by:
setBrushType in interface IStiDataBarIndicator

getPositiveColor

public final StiColor getPositiveColor()
Gets or sets a color of positive values for data bar indicator.

Specified by:
getPositiveColor in interface IStiDataBarIndicator

setPositiveColor

public final void setPositiveColor(StiColor value)
Specified by:
setPositiveColor in interface IStiDataBarIndicator

getNegativeColor

public final StiColor getNegativeColor()
Gets or sets a color of negative values for data bar indicator.

Specified by:
getNegativeColor in interface IStiDataBarIndicator

setNegativeColor

public final void setNegativeColor(StiColor value)
Specified by:
setNegativeColor in interface IStiDataBarIndicator

getPositiveBorderColor

public final StiColor getPositiveBorderColor()
Gets or sets a border color of positive values for Data Bar indicator.

Specified by:
getPositiveBorderColor in interface IStiDataBarIndicator

setPositiveBorderColor

public final void setPositiveBorderColor(StiColor value)
Specified by:
setPositiveBorderColor in interface IStiDataBarIndicator

getNegativeBorderColor

public final StiColor getNegativeBorderColor()
Gets or sets a border color of negative values for Data Bar indicator.

Specified by:
getNegativeBorderColor in interface IStiDataBarIndicator

setNegativeBorderColor

public final void setNegativeBorderColor(StiColor value)
Specified by:
setNegativeBorderColor in interface IStiDataBarIndicator

getShowBorder

public final boolean getShowBorder()
Gets or sets value which indicates that border is drawing.

Specified by:
getShowBorder in interface IStiDataBarIndicator

setShowBorder

public final void setShowBorder(boolean value)
Specified by:
setShowBorder in interface IStiDataBarIndicator

getDirection

public final StiDataBarDirection getDirection()
Gets or sets value which direction data bar will be filled by brush, from left to right or from right to left.

Specified by:
getDirection in interface IStiDataBarIndicator

setDirection

public final void setDirection(StiDataBarDirection value)
Specified by:
setDirection in interface IStiDataBarIndicator

getMinimumType

public final StiMinimumType getMinimumType()
Gets or sets processing type of minimal values for data bar indicator.


setMinimumType

public final void setMinimumType(StiMinimumType value)

getMinimumValue

public final float getMinimumValue()
Gets or sets minimal value for data bar indicator.


setMinimumValue

public final void setMinimumValue(float value)

getMaximumType

public final StiMaximumType getMaximumType()
Gets or sets processing type of maximal values for data bar indicator.


setMaximumType

public final void setMaximumType(StiMaximumType value)

getMaximumValue

public final float getMaximumValue()
Gets or sets minimal value for data bar indicator.


setMaximumValue

public final void setMaximumValue(float value)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

serialize

public java.lang.String serialize()
Description copied from interface: IStiSerializableToString
Сериализация объекта в строку.

Specified by:
serialize in interface IStiSerializableToString
Overrides:
serialize in class StiFilter
Returns:
строковое представление объекта

deserialize

public void deserialize(java.lang.String strObject)
Description copied from interface: IStiSerializableToString
Десериализация объекта из строки. Все свойства объекта устанавливаются за счет распарсивания строки.

Specified by:
deserialize in interface IStiSerializableToString
Overrides:
deserialize in class StiFilter

SaveToJsonObject

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

LoadFromJsonObject

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