public abstract class StiUnit extends StiSerializedObject
| Modifier and Type | Field and Description |
|---|---|
static StiCentimetersUnit |
Centimeters |
static StiHundredthsOfInchUnit |
HundredthsOfInch |
static StiInchesUnit |
Inches |
static StiMillimetersUnit |
Millimeters |
REFERENCE_EMPTY, REFERENCE_REPORT| Constructor and Description |
|---|
StiUnit() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
abstract double |
ConvertFromHInches(double value)
Converts a value from hundredths of inch into units of this class.
|
StiRectangle |
ConvertFromHInches(StiRectangle rect)
Converts a rectangle from hundredths of inch into units of this class.
|
StiSize |
ConvertFromHInches(StiSize size)
Converts a size from hundredths of inch into units of this class.
|
abstract double |
ConvertToHInches(double value)
Converts a value from hundredths of inch into units of this class.
|
StiRectangle |
ConvertToHInches(StiRectangle rect)
Converts a rectangle from units of this class into hundredths of inch.
|
StiSize |
ConvertToHInches(StiSize size)
Converts a size from units of this class into hundredths of inch.
|
StiRectangle |
ConvertToHInchesStiRectangle(StiRectangle rect) |
abstract double |
getFactor()
Gets the ruler scale in hundredths of inch on the one step.
|
abstract double |
getRollerStep()
Gets ruler step.
|
abstract java.lang.String |
getShortName()
Gets the shor unit name.
|
static StiUnit |
GetUnitFromReportUnit(StiReportUnitType reportUnit) |
static StiUnit |
LoadFromJsonObject(JSONObject jObject) |
static JSONObject |
SaveToJsonObject(StiUnit unit) |
cleanReference, getReference, setReferencepublic static StiCentimetersUnit Centimeters
public static StiHundredthsOfInchUnit HundredthsOfInch
public static StiInchesUnit Inches
public static StiMillimetersUnit Millimeters
public static StiUnit GetUnitFromReportUnit(StiReportUnitType reportUnit)
public abstract double getRollerStep()
public abstract double getFactor()
public abstract java.lang.String getShortName()
public abstract double ConvertToHInches(double value)
value - Value for conversion.public abstract double ConvertFromHInches(double value)
value - Value for conversion.public final StiRectangle ConvertToHInches(StiRectangle rect)
rect - Rectangle for conversion.public final StiRectangle ConvertToHInchesStiRectangle(StiRectangle rect)
public final StiRectangle ConvertFromHInches(StiRectangle rect)
rect - Rectangle for conversion.public final StiSize ConvertToHInches(StiSize size)
size - Size for conversion.public final StiSize ConvertFromHInches(StiSize size)
size - Size for conversion.public java.lang.Object clone()
clone in class java.lang.Objectpublic static JSONObject SaveToJsonObject(StiUnit unit) throws JSONException
JSONExceptionpublic static StiUnit LoadFromJsonObject(JSONObject jObject) throws JSONException
JSONExceptionCopyright © 2019 Stimulsoft. All Rights Reserved.