Class StiDataBarIndicator
java.lang.Object
com.stimulsoft.report.components.indicators.StiIndicator
com.stimulsoft.report.components.indicators.StiDataBarIndicator
- All Implemented Interfaces:
IStiCanCreateSerializableInstance,IStiSerializable,IStiSerializableToString,IStiDataBarIndicator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionvoiddeserialize(String strObject) deserializeString(String stringValue) final StiBrushTypeGets or sets value which indicates which type of brush will be used for Data Bar indicator drawing.intfinal StiDataBarDirectionGets or sets value which direction data bar will be filled by brush, from left to right or from right to left.final floatGets or sets minimum amount.final floatGets or sets minimum amount.final StiColorGets or sets a border color of negative values for Data Bar indicator.final StiColorGets or sets a color of negative values for data bar indicator.intfinal StiColorGets or sets a border color of positive values for Data Bar indicator.final StiColorGets or sets a color of positive values for data bar indicator.final StiDataBarShapegetShape()Gets or sets the shape used to draw the data bar indicator.final booleanGets or sets value which indicates that border is drawing.final floatgetValue()Gets or sets value from maximum or minimum amount.voidLoadFromJsonObject(JSONObject jObject) final voidsetBrushType(StiBrushType value) voidsetCornerRadius(int cornerRadius) final voidsetDirection(StiDataBarDirection value) final voidsetMaximum(float value) final voidsetMinimum(float value) final voidsetNegativeBorderColor(StiColor value) final voidsetNegativeColor(StiColor value) voidsetPadding(int padding) final voidsetPositiveBorderColor(StiColor value) final voidsetPositiveColor(StiColor value) final voidsetShape(StiDataBarShape value) final voidsetShowBorder(boolean value) voidsetTextPlacement(StiDataBarTextPlacement textPlacement) final voidsetValue(float value) Methods inherited from class com.stimulsoft.report.components.indicators.StiIndicator
deserializeFromString, getInstance, LoadFromJsonObjectInternal
-
Field Details
-
shape
-
-
Constructor Details
-
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 Details
-
getBrushType
Gets or sets value which indicates which type of brush will be used for Data Bar indicator drawing.- Specified by:
getBrushTypein interfaceIStiDataBarIndicator
-
setBrushType
- Specified by:
setBrushTypein interfaceIStiDataBarIndicator
-
getPositiveColor
Gets or sets a color of positive values for data bar indicator.- Specified by:
getPositiveColorin interfaceIStiDataBarIndicator
-
setPositiveColor
- Specified by:
setPositiveColorin interfaceIStiDataBarIndicator
-
getNegativeColor
Gets or sets a color of negative values for data bar indicator.- Specified by:
getNegativeColorin interfaceIStiDataBarIndicator
-
setNegativeColor
- Specified by:
setNegativeColorin interfaceIStiDataBarIndicator
-
getPositiveBorderColor
Gets or sets a border color of positive values for Data Bar indicator.- Specified by:
getPositiveBorderColorin interfaceIStiDataBarIndicator
-
setPositiveBorderColor
- Specified by:
setPositiveBorderColorin interfaceIStiDataBarIndicator
-
getNegativeBorderColor
Gets or sets a border color of negative values for Data Bar indicator.- Specified by:
getNegativeBorderColorin interfaceIStiDataBarIndicator
-
setNegativeBorderColor
- Specified by:
setNegativeBorderColorin interfaceIStiDataBarIndicator
-
getShowBorder
public final boolean getShowBorder()Gets or sets value which indicates that border is drawing.- Specified by:
getShowBorderin interfaceIStiDataBarIndicator
-
setShowBorder
public final void setShowBorder(boolean value) - Specified by:
setShowBorderin interfaceIStiDataBarIndicator
-
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
Gets or sets value which direction data bar will be filled by brush, from left to right or from right to left.- Specified by:
getDirectionin interfaceIStiDataBarIndicator
-
setDirection
- Specified by:
setDirectionin interfaceIStiDataBarIndicator
-
getShape
Gets or sets the shape used to draw the data bar indicator. Arrow and Banner shapes are mirrored horizontally depending on the value sign (pointing right for positive, left for negative).- Specified by:
getShapein interfaceIStiDataBarIndicator
-
setShape
- Specified by:
setShapein interfaceIStiDataBarIndicator
-
getPadding
public int getPadding()- Specified by:
getPaddingin interfaceIStiDataBarIndicator
-
setPadding
public void setPadding(int padding) - Specified by:
setPaddingin interfaceIStiDataBarIndicator
-
getCornerRadius
public int getCornerRadius()- Specified by:
getCornerRadiusin interfaceIStiDataBarIndicator
-
setCornerRadius
public void setCornerRadius(int cornerRadius) - Specified by:
setCornerRadiusin interfaceIStiDataBarIndicator
-
getTextPlacement
- Specified by:
getTextPlacementin interfaceIStiDataBarIndicator
-
setTextPlacement
- Specified by:
setTextPlacementin interfaceIStiDataBarIndicator
-
deserialize
- Specified by:
deserializein interfaceIStiSerializableToString- Overrides:
deserializein classStiIndicator
-
serialize
- Specified by:
serializein interfaceIStiSerializableToString- Overrides:
serializein classStiIndicator
-
deserializeString
-
SaveToJsonObject
- Overrides:
SaveToJsonObjectin classStiIndicator- Throws:
JSONException
-
LoadFromJsonObject
- Overrides:
LoadFromJsonObjectin classStiIndicator- Throws:
JSONException
-