Class StiRangeBase
java.lang.Object
com.stimulsoft.report.infographics.gauge.primitives.range.StiRangeBase
- All Implemented Interfaces:
IStiSerializable,IStiSerializableRef
- Direct Known Subclasses:
StiLinearRange,StiRadialRange
Copyright Stimulsoft
-
Field Summary
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclone()protected abstract voiddrawRange(StiGaugeContextPainter context, StiScaleBase scale) the border of the component.doublethe border thickness of the component.getBrush()a brush to fill a component.doubleend value of the range.doubleend width of the range bar.abstract Stringdoublethe offset ratio of an item.the placement of the component.intdoublestart value of the range.doublestart width of the range bar.voidLoadFromJsonObject(JSONObject jObject) voidsetBorderBrush(StiBrush borderBrush) the border of the component.voidsetBorderWidth(double borderWidth) the border thickness of the component.voida brush to fill a component.voidsetEndValue(double endValue) end value of the range.voidsetEndWidth(double endWidth) end width of the range bar.voidsetOffset(double offset) the offset ratio of an item.voidsetPlacement(StiPlacement placement) the placement of the component.voidsetRangeList(StiScaleRangeList rangeList) voidsetReference(int reference) voidsetStartValue(double startValue) start value of the range.voidsetStartWidth(double startWidth) start width of the range bar.
-
Constructor Details
-
StiRangeBase
public StiRangeBase()
-
-
Method Details
-
setReference
public void setReference(int reference) - Specified by:
setReferencein interfaceIStiSerializableRef
-
getReference
public int getReference()- Specified by:
getReferencein interfaceIStiSerializableRef
-
cleanReference
public void cleanReference() -
SaveToJsonObject
- Throws:
JSONException
-
LoadFromJsonObject
- Throws:
JSONException
-
clone
-
getBrush
a brush to fill a component.- Returns:
- the brush
-
setBrush
a brush to fill a component.- Parameters:
brush- the brush to set
-
getBorderBrush
the border of the component.- Returns:
- the borderBrush
-
setBorderBrush
the border of the component.- Parameters:
borderBrush- the borderBrush to set
-
getBorderWidth
public double getBorderWidth()the border thickness of the component.- Returns:
- the borderWidth
-
setBorderWidth
public void setBorderWidth(double borderWidth) the border thickness of the component.- Parameters:
borderWidth- the borderWidth to set
-
getStartValue
public double getStartValue()start value of the range.- Returns:
- the startValue
-
setStartValue
public void setStartValue(double startValue) start value of the range.- Parameters:
startValue- the startValue to set
-
getEndValue
public double getEndValue()end value of the range.- Returns:
- the endValue
-
setEndValue
public void setEndValue(double endValue) end value of the range.- Parameters:
endValue- the endValue to set
-
getStartWidth
public double getStartWidth()start width of the range bar.- Returns:
- the startWidth
-
setStartWidth
public void setStartWidth(double startWidth) start width of the range bar.- Parameters:
startWidth- the startWidth to set
-
getEndWidth
public double getEndWidth()end width of the range bar.- Returns:
- the endWidth
-
setEndWidth
public void setEndWidth(double endWidth) end width of the range bar.- Parameters:
endWidth- the endWidth to set
-
getPlacement
the placement of the component.- Returns:
- the placement
-
setPlacement
the placement of the component.- Parameters:
placement- the placement 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
-
getRangeList
-
setRangeList
- Parameters:
rangeList- the rangeList to set
-
getLocalizeName
-
drawRange
-
createNew
-