Class StiMarkerBase
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.StiMarkerBase
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiApplyStyleGauge,IStiGaugeMarker,Cloneable
- Direct Known Subclasses:
StiLinearMarker,StiRadialMarker
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.protected StiGaugeElementSkingetFont()font of component.the format string for the ShowValue property.doubleoffset of the scale object from the scale bar.doublerelative height of the indicator.doublerelative width of the indicator.getSkin()the skin of the component rendering.a brush to draw text.booleana value indicating whether to display a current value of the indicator.voidLoadFromJsonObject(JSONObject jObject) voidsetCustomSkin(StiGaugeElementSkin customSkin) voidfont of component.voidthe format string for the ShowValue property.voidsetOffset(double offset) offset of the scale object from the scale bar.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(StiMarkerSkin skin) the skin of the component rendering.voidsetTextBrush(StiBrush textBrush) a brush to draw text.Methods inherited from class com.stimulsoft.report.infographics.gauge.primitives.indicators.StiIndicatorBase
getActualValue, getBorderBrush, getBorderWidth, getBrush, getGetValueEvent, getPlacement, getValue, getValueObj, interactiveClick, InvokeGetValue, OnGetValue, onValueChanged, 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
-
StiMarkerBase
public StiMarkerBase()
-
-
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
-
getOffset
public double getOffset()offset of the scale object from the scale bar.- Returns:
- the offset
-
setOffset
public void setOffset(double offset) offset of the scale object from the scale bar.- Parameters:
offset- the offset 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
-
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
-
getActualSkin
-