Class StiIndicatorBase
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
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiApplyStyleGauge,Cloneable
- Direct Known Subclasses:
StiBarBase,StiMarkerBase,StiNeedle,StiStateIndicator
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 TypeMethodDescriptionclone()Creates a new object that is a copy of the current instance.the border of the component.doublethe border thickness of the component.getBrush()Occurs when getting the property Value.getValue()the current position of an indicator.doubleprotected abstract voidinteractiveClick(StiRectangle rect, StiPoint p) voidInvokeGetValue(StiGaugeElement sender, StiGetValueEventArgs e) Raises the GetValue event.voidLoadFromJsonObject(JSONObject jObject) protected voidRaises the GetValue event.protected voidvoidvoidsetBorderBrush(StiBrush borderBrush) the border of the component.voidsetBorderWidth(double borderWidth) the border thickness of the component.voidvoidsetGetValueEvent(StiGetValueEvent getValueEvent) Occurs when getting the property Value.voidsetPlacement(StiPlacement placement) voidsetValue(StiValueExpression value) the current position of an indicator.voidsetValueObj(double valueObj) Methods 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
-
StiIndicatorBase
public StiIndicatorBase()
-
-
Method Details
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiGaugeElement- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiGaugeElement- Throws:
JSONException
-
clone
Description copied from class:StiElementBaseCreates a new object that is a copy of the current instance.- Overrides:
clonein classStiElementBase
-
getValueObj
public double getValueObj()- Returns:
- the valueObj
-
setValueObj
public void setValueObj(double valueObj) - Parameters:
valueObj- the valueObj to set
-
getPlacement
- Returns:
- the placement
-
setPlacement
- Parameters:
placement- the placement to set
-
getBrush
- Returns:
- the brush
-
setBrush
- 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
-
OnGetValue
Raises the GetValue event.- Parameters:
e-
-
InvokeGetValue
Raises the GetValue event.- Parameters:
sender-e-
-
getGetValueEvent
Occurs when getting the property Value.- Returns:
- the getValueEvent
-
setGetValueEvent
Occurs when getting the property Value.- Parameters:
getValueEvent- the getValueEvent to set
-
getValue
the current position of an indicator.- Returns:
- the value
-
setValue
the current position of an indicator.- Parameters:
value- the value to set
-
prepareGaugeElement
public void prepareGaugeElement()- Overrides:
prepareGaugeElementin classStiGaugeElement
-
interactiveClick
-
onValueChanged
protected void onValueChanged() -
getActualValue
-