Class StiRadialScale
java.lang.Object
com.stimulsoft.report.infographics.gauge.primitives.base.StiElementBase
com.stimulsoft.report.infographics.gauge.primitives.scales.StiScaleBase
com.stimulsoft.report.infographics.gauge.scales.StiRadialScale
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiApplyStyleGauge,Cloneable
Copyright Stimulsoft
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stimulsoft.report.infographics.gauge.primitives.scales.StiScaleBase
StiScaleBase.StiScaleHelper -
Field Summary
Fields inherited from class com.stimulsoft.report.infographics.gauge.primitives.scales.StiScaleBase
barGeometry, endWidth, gauge, scaleHelper, startWidthFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStyle(IStiGaugeStyle style) Apply style to component which release this interface.clone()Creates a new object that is a copy of the current instance.center of the radial scale.doublegetCurrentAngle(double angle) doubledoubleouter radius of the radial scale.doubleouter radius of the radial scale.the mode of calculating the radius RadialScale.getSkin()the skin of the component rendering.doublestart angle of the radial scale.doubledoublesweep angle of the radial scale.doublevoidLoadFromJsonObject(JSONObject jObject) voidcenter of the radial scale.voidsetRadius(double radius) outer radius of the radial scale.voidsetRadiusMode(StiRadiusMode radiusMode) the mode of calculating the radius RadialScale.voidsetSkin(StiRadialScaleSkin skin) the skin of the component rendering.voidsetStartAngle(double startAngle) start angle of the radial scale.voidsetSweepAngle(double sweepAngle) sweep angle of the radial scale.Methods inherited from class com.stimulsoft.report.infographics.gauge.primitives.scales.StiScaleBase
calculateMinMaxScaleHelper, calculateWidthScaleHelper, cleanReference, drawElement, getBorderBrush, getBrush, getEndWidth, getGauge, getIsReversed, getItems, getLeft, getMajorInterval, getMaximum, getMinimum, getMinorInterval, getPosition, getPropName, getReference, getStartWidth, getTop, isUp, prepare, setBorderBrush, setBrush, setEndWidth, setGauge, setIsReversed, setItems, setLeft, setMajorInterval, setMaximum, setMinimum, setMinorInterval, setReference, setStartWidth, setTopMethods inherited from class com.stimulsoft.report.infographics.gauge.primitives.base.StiElementBase
isAllowApplyStyle, setAllowApplyStyle
-
Constructor Details
-
StiRadialScale
public StiRadialScale()
-
-
Method Details
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiScaleBase- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiScaleBase- Throws:
JSONException
-
getComponentId
- Specified by:
getComponentIdin classStiScaleBase
-
clone
Description copied from class:StiElementBaseCreates a new object that is a copy of the current instance.- Overrides:
clonein classStiScaleBase
-
applyStyle
Description copied from interface:IStiApplyStyleGaugeApply style to component which release this interface.- Specified by:
applyStylein interfaceIStiApplyStyleGauge- Overrides:
applyStylein classStiElementBase- Parameters:
style-
-
setRadius
public void setRadius(double radius) outer radius of the radial scale. Should be from 0 to 1.- Parameters:
radius- the radius to set
-
getRadius
public double getRadius()outer radius of the radial scale. Should be from 0 to 1.- Returns:
- the radius
-
getRadiusMode
the mode of calculating the radius RadialScale.- Returns:
- the radiusMode
-
setRadiusMode
the mode of calculating the radius RadialScale.- Parameters:
radiusMode- the radiusMode to set
-
getCenter
center of the radial scale.- Returns:
- the center
-
setCenter
center of the radial scale.- Parameters:
center- the center to set
-
getStartAngle
public double getStartAngle()start angle of the radial scale.- Returns:
- the startAngle
-
setStartAngle
public void setStartAngle(double startAngle) start angle of the radial scale.- Parameters:
startAngle- the startAngle to set
-
getSweepAngle
public double getSweepAngle()sweep angle of the radial scale.- Returns:
- the sweepAngle
-
setSweepAngle
public void setSweepAngle(double sweepAngle) sweep angle of the radial scale.- Parameters:
sweepAngle- the sweepAngle 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
-
getScaleType
- Specified by:
getScaleTypein classStiScaleBase
-
GetRadius
public double GetRadius()outer radius of the radial scale. Should be from 0 to 1.- Returns:
- the radius
-
GetStartWidth
public double GetStartWidth() -
GetEndWidth
public double GetEndWidth() -
GetSweepAngle
public double GetSweepAngle() -
getCurrentAngle
public double getCurrentAngle(double angle) -
createNew
- Overrides:
createNewin classStiScaleBase
-