com.stimulsoft.report.components.indicators
Class StiDataBarIndicator

java.lang.Object
  extended by com.stimulsoft.report.components.indicators.StiIndicator
      extended by com.stimulsoft.report.components.indicators.StiDataBarIndicator
All Implemented Interfaces:
IStiCanCreateSerializableInstance, IStiSerializable, IStiSerializableToString, IStiDataBarIndicator

public class StiDataBarIndicator
extends StiIndicator
implements IStiDataBarIndicator


Constructor Summary
StiDataBarIndicator()
          Creates a new object of the type StiDataBarIndicator.
StiDataBarIndicator(StiBrushType brushType, StiColor positiveColor, StiColor negativeColor, boolean showBorder, StiColor positiveBorderColor, StiColor negativeBorderColor, StiDataBarDirection direction, float value, float minimum, float maximum)
          Creates a new object of the type StiDataBarIndicator.
 
Method Summary
 void deserialize(java.lang.String strObject)
          Десериализация объекта из строки.
 StiDataBarIndicator deserializeString(java.lang.String stringValue)
           
 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.
 float getMaximum()
          Gets or sets minimum amount.
 float getMinimum()
          Gets or sets minimum amount.
 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.
 float getValue()
          Gets or sets value from maximum or minimum amount.
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 java.lang.String serialize()
          Сериализация объекта в строку.
 void setBrushType(StiBrushType value)
           
 void setDirection(StiDataBarDirection value)
           
 void setMaximum(float value)
           
 void setMinimum(float value)
           
 void setNegativeBorderColor(StiColor value)
           
 void setNegativeColor(StiColor value)
           
 void setPositiveBorderColor(StiColor value)
           
 void setPositiveColor(StiColor value)
           
 void setShowBorder(boolean value)
           
 void setValue(float value)
           
 
Methods inherited from class com.stimulsoft.report.components.indicators.StiIndicator
deserializeFromString, getInstance, LoadFromJsonObjectInternal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiDataBarIndicator

public StiDataBarIndicator()
Creates a new object of the type StiDataBarIndicator.


StiDataBarIndicator

public StiDataBarIndicator(StiBrushType brushType,
                           StiColor positiveColor,
                           StiColor negativeColor,
                           boolean showBorder,
                           StiColor positiveBorderColor,
                           StiColor negativeBorderColor,
                           StiDataBarDirection direction,
                           float value,
                           float minimum,
                           float maximum)
Creates a new object of the type StiDataBarIndicator.

Method Detail

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

getValue

public final float getValue()
Gets or sets value from maximum or minimum amount.


setValue

public final void setValue(float value)

getMinimum

public final float getMinimum()
Gets or sets minimum amount.


setMinimum

public final void setMinimum(float value)

getMaximum

public final float getMaximum()
Gets or sets minimum amount.


setMaximum

public final void setMaximum(float value)

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

deserialize

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

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

serialize

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

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

deserializeString

public StiDataBarIndicator deserializeString(java.lang.String stringValue)

SaveToJsonObject

public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
                            throws JSONException
Overrides:
SaveToJsonObject in class StiIndicator
Throws:
JSONException

LoadFromJsonObject

public void LoadFromJsonObject(JSONObject jObject)
                        throws JSONException
Overrides:
LoadFromJsonObject in class StiIndicator
Throws:
JSONException