Class StiBarBase
java.lang.Object
com.stimulsoft.report.infographics.gauge.primitives.base.StiElementBase
com.stimulsoft.report.infographics.gauge.primitives.base.StiGaugeElement
com.stimulsoft.report.infographics.gauge.primitives.indicators.StiIndicatorBase
com.stimulsoft.report.infographics.gauge.primitives.indicators.StiBarBase
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiApplyStyleGauge,Cloneable
- Direct Known Subclasses:
StiLinearBar,StiRadialBar
Copyright Stimulsoft
-
Field Summary
Fields inherited from class com.stimulsoft.report.infographics.gauge.primitives.base.StiGaugeElement
animation, scaleFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidclone()Creates a new object that is a copy of the current instance.protected abstract StiBarRangeListTypethe border brush for the empty part of the bar indicator.doublethe border width for the empty part of the bar indicator.Gets or sets the brush for the empty part of the bar indicator.doubleend width of the bar indicator.doublethe offset ratio of an item.doublestart width of the bar indicator.booleanvalue which indicates whether we should use Brush property of the StiIndicatorBase class as brush for this indicator.voidLoadFromJsonObject(JSONObject jObject) protected abstract voidprotected voidvoidsetEmptyBorderBrush(StiBrush emptyBorderBrush) the border brush for the empty part of the bar indicator.voidsetEmptyBorderWidth(double emptyBorderWidth) the border width for the empty part of the bar indicator.voidsetEmptyBrush(StiBrush emptyBrush) Gets or sets the brush for the empty part of the bar indicator.voidsetEndWidth(double endWidth) end width of the bar indicator.voidsetOffset(double offset) the offset ratio of an item.voidsetRangeList(StiBarRangeListCollection rangeList) voidsetStartWidth(double startWidth) start width of the bar indicator.voidsetUseRangeColor(boolean useRangeColor) value which indicates whether we should use Brush property of the StiIndicatorBase class as brush for this indicator.Methods inherited from class com.stimulsoft.report.infographics.gauge.primitives.indicators.StiIndicatorBase
getActualValue, getBorderBrush, getBorderWidth, getBrush, getGetValueEvent, getPlacement, getValue, getValueObj, interactiveClick, InvokeGetValue, OnGetValue, prepareGaugeElement, setBorderBrush, setBorderWidth, setBrush, setGetValueEvent, setPlacement, setValue, setValueObjMethods inherited from class com.stimulsoft.report.infographics.gauge.primitives.base.StiGaugeElement
cleanReference, createNew, getAnimation, getElementType, getLocalizeName, getReference, getScale, setAnimation, setReference, setScaleMethods inherited from class com.stimulsoft.report.infographics.gauge.primitives.base.StiElementBase
applyStyle, drawElement, isAllowApplyStyle, setAllowApplyStyle
-
Constructor Details
-
StiBarBase
public StiBarBase()
-
-
Method Details
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiIndicatorBase- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiIndicatorBase- Throws:
JSONException
-
clone
Description copied from class:StiElementBaseCreates a new object that is a copy of the current instance.- Overrides:
clonein classStiIndicatorBase
-
getEmptyBrush
Gets or sets the brush for the empty part of the bar indicator.- Returns:
- the emptyBrush
-
setEmptyBrush
Gets or sets the brush for the empty part of the bar indicator.- Parameters:
emptyBrush- the emptyBrush to set
-
getEmptyBorderBrush
the border brush for the empty part of the bar indicator.- Returns:
- the emptyBorderBrush
-
setEmptyBorderBrush
the border brush for the empty part of the bar indicator.- Parameters:
emptyBorderBrush- the emptyBorderBrush to set
-
getEmptyBorderWidth
public double getEmptyBorderWidth()the border width for the empty part of the bar indicator.- Returns:
- the emptyBorderWidth
-
setEmptyBorderWidth
public void setEmptyBorderWidth(double emptyBorderWidth) the border width for the empty part of the bar indicator.- Parameters:
emptyBorderWidth- the emptyBorderWidth to set
-
getOffset
public double getOffset()the offset ratio of an item.- Returns:
- the offset
-
setOffset
public void setOffset(double offset) the offset ratio of an item.- Parameters:
offset- the offset to set
-
getStartWidth
public double getStartWidth()start width of the bar indicator.- Returns:
- the startWidth
-
setStartWidth
public void setStartWidth(double startWidth) start width of the bar indicator.- Parameters:
startWidth- the startWidth to set
-
getEndWidth
public double getEndWidth()end width of the bar indicator.- Returns:
- the endWidth
-
setEndWidth
public void setEndWidth(double endWidth) end width of the bar indicator.- Parameters:
endWidth- the endWidth to set
-
isUseRangeColor
public boolean isUseRangeColor()value which indicates whether we should use Brush property of the StiIndicatorBase class as brush for this indicator.- Returns:
- the useRangeColor
-
setUseRangeColor
public void setUseRangeColor(boolean useRangeColor) value which indicates whether we should use Brush property of the StiIndicatorBase class as brush for this indicator.- Parameters:
useRangeColor- the useRangeColor to set
-
getRangeList
- Returns:
- the rangeList
-
setRangeList
- Parameters:
rangeList- the rangeList to set
-
getBarType
-
onRangeColorChanged
protected abstract void onRangeColorChanged() -
checkActualBrushForTopGeometry
protected abstract void checkActualBrushForTopGeometry() -
onValueChanged
protected void onValueChanged()- Overrides:
onValueChangedin classStiIndicatorBase
-