Class StiStateIndicator
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.indicators.StiStateIndicator
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiApplyStyleGauge,IStiGaugeMarker,Cloneable
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.voiddrawElement(StiGaugeContextPainter context) protected StiGaugeElementSkingetFont()font of component.the format string for the ShowValue property.doublegetLeft()X coordinate of the indicator relative to the scale dimension.doublerelative height of the indicator.doublerelative width of the indicator.getSkin()the skin of the component rendering.a brush to draw text.doublegetTop()Y coordinate of the indicator relative to the scale dimension.protected voidinteractiveClick(StiRectangle rect, StiPoint p) booleana value indicating whether to display a current value of the indicator.voidLoadFromJsonObject(JSONObject jObject) protected voidvoidsetCustomSkin(StiGaugeElementSkin customSkin) voidsetFilters(StiFilterCollection filters) voidfont of component.voidthe format string for the ShowValue property.voidsetLeft(double left) X coordinate of the indicator relative to the scale dimension.voidsetRelativeHeight(double relativeHeight) relative height of the indicator.voidsetRelativeWidth(double relativeWidth) relative width of the indicator.voidsetShowValue(boolean showValue) a value indicating whether to display a current value of the indicator.voidsetSkin(StiStateSkin skin) the skin of the component rendering.voidsetTextBrush(StiBrush textBrush) a brush to draw text.voidsetTop(double top) Y coordinate of the indicator relative to the scale dimension.Methods inherited from class com.stimulsoft.report.infographics.gauge.primitives.indicators.StiIndicatorBase
getActualValue, getBorderBrush, getBorderWidth, getBrush, getGetValueEvent, getPlacement, getValue, getValueObj, InvokeGetValue, OnGetValue, prepareGaugeElement, setBorderBrush, setBorderWidth, setBrush, setGetValueEvent, setPlacement, setValue, setValueObjMethods inherited from class com.stimulsoft.report.infographics.gauge.primitives.base.StiGaugeElement
cleanReference, getAnimation, getReference, getScale, setAnimation, setReference, setScaleMethods inherited from class com.stimulsoft.report.infographics.gauge.primitives.base.StiElementBase
applyStyle, isAllowApplyStyle, setAllowApplyStyle
-
Constructor Details
-
StiStateIndicator
public StiStateIndicator()
-
-
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
-
getComponentId
-
getFormat
the format string for the ShowValue property.- Specified by:
getFormatin interfaceIStiGaugeMarker- Returns:
- the format
-
setFormat
the format string for the ShowValue property.- Specified by:
setFormatin interfaceIStiGaugeMarker- Parameters:
format- the format to set
-
isShowValue
public boolean isShowValue()a value indicating whether to display a current value of the indicator.- Specified by:
isShowValuein interfaceIStiGaugeMarker- Returns:
- the showValue
-
setShowValue
public void setShowValue(boolean showValue) a value indicating whether to display a current value of the indicator.- Specified by:
setShowValuein interfaceIStiGaugeMarker- Parameters:
showValue- the showValue to set
-
getTextBrush
a brush to draw text.- Specified by:
getTextBrushin interfaceIStiGaugeMarker- Returns:
- the textBrush
-
setTextBrush
a brush to draw text.- Specified by:
setTextBrushin interfaceIStiGaugeMarker- Parameters:
textBrush- the textBrush to set
-
getFont
font of component.- Specified by:
getFontin interfaceIStiGaugeMarker- Returns:
- the font
-
setFont
font of component.- Specified by:
setFontin interfaceIStiGaugeMarker- Parameters:
font- the font to set
-
getElementType
- Overrides:
getElementTypein classStiGaugeElement
-
getLocalizeName
- Overrides:
getLocalizeNamein classStiGaugeElement
-
getFilters
- Returns:
- the filters
-
setFilters
- Parameters:
filters- the filters to set
-
getLeft
public double getLeft()X coordinate of the indicator relative to the scale dimension.- Returns:
- the left
-
setLeft
public void setLeft(double left) X coordinate of the indicator relative to the scale dimension.- Parameters:
left- the left to set
-
getTop
public double getTop()Y coordinate of the indicator relative to the scale dimension.- Returns:
- the top
-
setTop
public void setTop(double top) Y coordinate of the indicator relative to the scale dimension.- Parameters:
top- the top to set
-
getRelativeWidth
public double getRelativeWidth()relative width of the indicator. It is given as part of the scale dimension.- Returns:
- the relativeWidth
-
setRelativeWidth
public void setRelativeWidth(double relativeWidth) relative width of the indicator. It is given as part of the scale dimension.- Parameters:
relativeWidth- the relativeWidth to set
-
getRelativeHeight
public double getRelativeHeight()relative height of the indicator. It is given as part of the scale dimension.- Returns:
- the relativeHeight
-
setRelativeHeight
public void setRelativeHeight(double relativeHeight) relative height of the indicator. It is given as part of the scale dimension.- Parameters:
relativeHeight- the relativeHeight to set
-
getSkin
the skin of the component rendering.- Returns:
- the skin
-
setSkin
the skin of the component rendering.- Parameters:
skin- the skin to set
-
getCustomSkin
- Returns:
- the customSkin
-
setCustomSkin
- Parameters:
customSkin- the customSkin to set
-
createNew
- Overrides:
createNewin classStiGaugeElement
-
onValueChanged
protected void onValueChanged()- Overrides:
onValueChangedin classStiIndicatorBase
-
interactiveClick
- Specified by:
interactiveClickin classStiIndicatorBase
-
drawElement
- Overrides:
drawElementin classStiElementBase
-
GetActualSkin
-