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

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.StiLinearScale
All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiApplyStyleGauge, java.lang.Cloneable

public class StiLinearScale
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
StiLinearScale()
           
 
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()
           
 StiComponentId getComponentId()
           
 StiOrientation getOrientation()
          linearScale orientation.
 double getRelativeHeight()
          the height factor relative to the height of the basic component.
 StiGaugeElemenType getScaleType()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setOrientation(StiOrientation orientation)
          linearScale orientation.
 void setRelativeHeight(double relativeHeight)
          the height factor relative to the height of the basic component.
 
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

StiLinearScale

public StiLinearScale()
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

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

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

getOrientation

public StiOrientation getOrientation()
linearScale orientation.

Returns:
the orientation

setOrientation

public void setOrientation(StiOrientation orientation)
linearScale orientation.

Parameters:
orientation - the orientation to set

getRelativeHeight

public double getRelativeHeight()
the height factor relative to the height of the basic component.

Returns:
the relativeHeight

setRelativeHeight

public void setRelativeHeight(double relativeHeight)
the height factor relative to the height of the basic component.

Parameters:
relativeHeight - the relativeHeight to set

getScaleType

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

createNew

public StiScaleBase createNew()
Overrides:
createNew in class StiScaleBase