Class StiTickBase
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.tick.StiTickBase
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiApplyStyleGauge,Cloneable
- Direct Known Subclasses:
StiTickLabelBase,StiTickMarkBase
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 booleancheckTickValue(double[] skipValues, double[] skipIndices, double key, int value) clone()Creates a new object that is a copy of the current instance.the maximum value to which displaying should be.the minimum value, with which displaying should begin.doublethe offset from the scale based on the StiPlacement.protected doublethe placement of the tick relative to the scale.protected StiPlacementgetPlacement(StiPlacement value) the indexes of values that cannot be displayed.double[]the values that should not be rendered.double[]protected booleanvoidLoadFromJsonObject(JSONObject jObject) voidvoidsetMaximumValue(Double maximumValue) the maximum value to which displaying should be.voidsetMinimumValue(Double minimumValue) the minimum value, with which displaying should begin.voidsetOffset(double offset) the offset from the scale based on the StiPlacement.voidsetPlacement(StiPlacement placement) the placement of the tick relative to the scale.voidsetSkipIndices(StiSkipIndicesExpression skipIndices) the indexes of values that cannot be displayed.voidsetSkipIndicesObj(double[] skipIndicesObj) voidsetSkipValues(StiSkipValuesExpression skipValues) the values that should not be rendered.voidsetSkipValuesObj(double[] skipValuesObj) 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
-
StiTickBase
public StiTickBase()
-
-
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
-
getSkipValues
the values that should not be rendered. Example: 1;2;3- Returns:
- the skipValues
-
setSkipValues
the values that should not be rendered. Example: 1;2;3- Parameters:
skipValues- the skipValues to set
-
getSkipIndices
the indexes of values that cannot be displayed. Example: 1;2;3- Returns:
- the skipIndices
-
setSkipIndices
the indexes of values that cannot be displayed. Example: 1;2;3- Parameters:
skipIndices- the skipIndices to set
-
getPlacement
the placement of the tick relative to the scale.- Returns:
- the placement
-
setPlacement
the placement of the tick relative to the scale.- Parameters:
placement- the placement to set
-
getSkipValuesObj
public double[] getSkipValuesObj()- Returns:
- the skipValuesObj
-
setSkipValuesObj
public void setSkipValuesObj(double[] skipValuesObj) - Parameters:
skipValuesObj- the skipValuesObj to set
-
getSkipIndicesObj
public double[] getSkipIndicesObj()- Returns:
- the skipIndicesObj
-
setSkipIndicesObj
public void setSkipIndicesObj(double[] skipIndicesObj) - Parameters:
skipIndicesObj- the skipIndicesObj to set
-
getOffset
public double getOffset()the offset from the scale based on the StiPlacement.- Returns:
- the offset
-
setOffset
public void setOffset(double offset) the offset from the scale based on the StiPlacement.- Parameters:
offset- the offset to set
-
getMinimumValue
the minimum value, with which displaying should begin.- Returns:
- the minimumValue
-
setMinimumValue
the minimum value, with which displaying should begin.- Parameters:
minimumValue- the minimumValue to set
-
getMaximumValue
the maximum value to which displaying should be.- Returns:
- the maximumValue
-
setMaximumValue
the maximum value to which displaying should be.- Parameters:
maximumValue- the maximumValue to set
-
isSkipMajorValues
protected boolean isSkipMajorValues() -
getPointCollection
-
getMinorCollections
-
getMajorCollections
-
checkTickValue
protected boolean checkTickValue(double[] skipValues, double[] skipIndices, double key, int value) -
prepareGaugeElement
public void prepareGaugeElement()- Overrides:
prepareGaugeElementin classStiGaugeElement
-
getOffset
-
getPlacement
-