com.stimulsoft.report.units
Class StiCentimetersUnit

java.lang.Object
  extended by com.stimulsoft.base.serializing.StiSerializedObject
      extended by com.stimulsoft.report.units.StiUnit
          extended by com.stimulsoft.report.units.StiCentimetersUnit
All Implemented Interfaces:
IStiSerializable, IStiSerializableRef

public class StiCentimetersUnit
extends StiUnit

Report units - centimeters.


Field Summary
 
Fields inherited from class com.stimulsoft.report.units.StiUnit
Centimeters, HundredthsOfInch, Inches, Millimeters
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiCentimetersUnit()
           
 
Method Summary
 double ConvertFromHInches(double value)
          Converts a value from hundredths of inch into units of this class.
 double ConvertToHInches(double value)
          Converts a value from hundredths of inch into units of this class.
 double getFactor()
          Gets the ruler scale in hundredths of inch on the one step.
 double getRollerStep()
          Gets ruler step.
 java.lang.String getShortName()
          Gets the shor unit name.
 java.lang.String toString()
           
 
Methods inherited from class com.stimulsoft.report.units.StiUnit
clone, ConvertFromHInches, ConvertFromHInches, ConvertToHInches, ConvertToHInches, ConvertToHInchesStiRectangle, GetUnitFromReportUnit, LoadFromJsonObject, SaveToJsonObject
 
Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StiCentimetersUnit

public StiCentimetersUnit()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRollerStep

public double getRollerStep()
Gets ruler step.

Specified by:
getRollerStep in class StiUnit

getFactor

public double getFactor()
Gets the ruler scale in hundredths of inch on the one step.

Specified by:
getFactor in class StiUnit

getShortName

public java.lang.String getShortName()
Gets the shor unit name.

Specified by:
getShortName in class StiUnit

ConvertToHInches

public double ConvertToHInches(double value)
Converts a value from hundredths of inch into units of this class.

Specified by:
ConvertToHInches in class StiUnit
Parameters:
value - Value for conversion.
Returns:
Converted value.

ConvertFromHInches

public double ConvertFromHInches(double value)
Converts a value from hundredths of inch into units of this class.

Specified by:
ConvertFromHInches in class StiUnit
Parameters:
value - Value for conversion.
Returns:
Converted value.