Package com.stimulsoft.report.units
Class StiUnit
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.report.units.StiUnit
- All Implemented Interfaces:
IStiSerializable,IStiSerializableRef
- Direct Known Subclasses:
StiCentimetersUnit,StiHundredthsOfInchUnit,StiInchesUnit,StiMillimetersUnit
Report units.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StiCentimetersUnitstatic StiHundredthsOfInchUnitstatic StiInchesUnitstatic StiMillimetersUnitFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()abstract doubleConvertFromHInches(double value) Converts a value from hundredths of inch into units of this class.final StiRectangleConverts a rectangle from hundredths of inch into units of this class.final StiSizeConvertFromHInches(StiSize size) Converts a size from hundredths of inch into units of this class.abstract doubleConvertToHInches(double value) Converts a value from hundredths of inch into units of this class.final StiRectangleConvertToHInches(StiRectangle rect) Converts a rectangle from units of this class into hundredths of inch.final StiSizeConvertToHInches(StiSize size) Converts a size from units of this class into hundredths of inch.final StiRectangleabstract doubleGets the ruler scale in hundredths of inch on the one step.abstract doubleGets ruler step.abstract StringGets the shor unit name.static StiUnitGetUnitFromReportUnit(StiReportUnitType reportUnit) static StiUnitLoadFromJsonObject(JSONObject jObject) static JSONObjectSaveToJsonObject(StiUnit unit) Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
-
Field Details
-
Centimeters
-
HundredthsOfInch
-
Inches
-
Millimeters
-
-
Constructor Details
-
StiUnit
public StiUnit()
-
-
Method Details
-
GetUnitFromReportUnit
-
getRollerStep
public abstract double getRollerStep()Gets ruler step. -
getFactor
public abstract double getFactor()Gets the ruler scale in hundredths of inch on the one step. -
getShortName
Gets the shor unit name. -
ConvertToHInches
public abstract double ConvertToHInches(double value) Converts a value from hundredths of inch into units of this class.- Parameters:
value- Value for conversion.- Returns:
- Converted value.
-
ConvertFromHInches
public abstract double ConvertFromHInches(double value) Converts a value from hundredths of inch into units of this class.- Parameters:
value- Value for conversion.- Returns:
- Converted value.
-
ConvertToHInches
Converts a rectangle from units of this class into hundredths of inch.- Parameters:
rect- Rectangle for conversion.- Returns:
- Converted rectangle.
-
ConvertToHInchesStiRectangle
-
ConvertFromHInches
Converts a rectangle from hundredths of inch into units of this class.- Parameters:
rect- Rectangle for conversion.- Returns:
- Converted rectangle.
-
ConvertToHInches
Converts a size from units of this class into hundredths of inch.- Parameters:
size- Size for conversion.- Returns:
- Converted size.
-
ConvertFromHInches
Converts a size from hundredths of inch into units of this class.- Parameters:
size- Size for conversion.- Returns:
- Converted size.
-
clone
-
SaveToJsonObject
- Throws:
JSONException
-
LoadFromJsonObject
- Throws:
JSONException
-