com.stimulsoft.report.infographics.gauge.scales
Class StiRadialScale

java.lang.Object
  extended by com.stimulsoft.report.infographics.gauge.primitives.base.StiElementBase
      extended by com.stimulsoft.report.infographics.gauge.primitives.scales.StiScaleBase
          extended by com.stimulsoft.report.infographics.gauge.scales.StiRadialScale
All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiApplyStyleGauge, java.lang.Cloneable

public class StiRadialScale
extends StiScaleBase

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, gauge, scaleHelper
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiRadialScale()
           
 
Method Summary
 void applyStyle(IStiGaugeStyle style)
          Apply style to component which release this interface.
 java.lang.Object clone()
          Creates a new object that is a copy of the current instance.
 StiScaleBase createNew()
           
 StiPoint getCenter()
          center of the radial scale.
 StiComponentId getComponentId()
           
 double getCurrentAngle(double angle)
           
 double GetEndWidth()
           
 double getRadius()
          outer radius of the radial scale.
 double GetRadius()
          outer radius of the radial scale.
 StiRadiusMode getRadiusMode()
          the mode of calculating the radius RadialScale.
 StiGaugeElemenType getScaleType()
           
 StiRadialScaleSkin getSkin()
          the skin of the component rendering.
 double getStartAngle()
          start angle of the radial scale.
 double GetStartWidth()
           
 double getSweepAngle()
          sweep angle of the radial scale.
 double GetSweepAngle()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setCenter(StiPoint center)
          center of the radial scale.
 void setRadius(double radius)
          outer radius of the radial scale.
 void setRadiusMode(StiRadiusMode radiusMode)
          the mode of calculating the radius RadialScale.
 void setSkin(StiRadialScaleSkin skin)
          the skin of the component rendering.
 void setStartAngle(double startAngle)
          start angle of the radial scale.
 void setSweepAngle(double sweepAngle)
          sweep angle of the radial scale.
 
Methods inherited from class com.stimulsoft.report.infographics.gauge.primitives.scales.StiScaleBase
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, setTop
 
Methods inherited from class com.stimulsoft.report.infographics.gauge.primitives.base.StiElementBase
isAllowApplyStyle, setAllowApplyStyle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiRadialScale

public StiRadialScale()
Method Detail

SaveToJsonObject

public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
                            throws JSONException
Specified by:
SaveToJsonObject in interface IStiJsonReportObject
Overrides:
SaveToJsonObject in class StiScaleBase
Throws:
JSONException

LoadFromJsonObject

public void LoadFromJsonObject(JSONObject jObject)
                        throws JSONException
Specified by:
LoadFromJsonObject in interface IStiJsonReportObject
Overrides:
LoadFromJsonObject in class StiScaleBase
Throws:
JSONException

getComponentId

public StiComponentId getComponentId()
Specified by:
getComponentId in class StiScaleBase

clone

public java.lang.Object clone()
Description copied from class: StiElementBase
Creates a new object that is a copy of the current instance.

Overrides:
clone in class StiScaleBase

applyStyle

public void applyStyle(IStiGaugeStyle style)
Description copied from interface: IStiApplyStyleGauge
Apply style to component which release this interface.

Specified by:
applyStyle in interface IStiApplyStyleGauge
Overrides:
applyStyle in class StiElementBase

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

public StiRadiusMode getRadiusMode()
the mode of calculating the radius RadialScale.

Returns:
the radiusMode

setRadiusMode

public void setRadiusMode(StiRadiusMode radiusMode)
the mode of calculating the radius RadialScale.

Parameters:
radiusMode - the radiusMode to set

getCenter

public StiPoint getCenter()
center of the radial scale.

Returns:
the center

setCenter

public void setCenter(StiPoint center)
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

public StiRadialScaleSkin getSkin()
the skin of the component rendering.

Returns:
the skin

setSkin

public void setSkin(StiRadialScaleSkin skin)
the skin of the component rendering.

Parameters:
skin - the skin to set

getScaleType

public StiGaugeElemenType getScaleType()
Specified by:
getScaleType in class StiScaleBase

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

public StiScaleBase createNew()
Overrides:
createNew in class StiScaleBase