|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.report.units.StiUnit
public abstract class StiUnit
Report units.
| Field Summary | |
|---|---|
static StiCentimetersUnit |
Centimeters
|
static StiHundredthsOfInchUnit |
HundredthsOfInch
|
static StiInchesUnit |
Inches
|
static StiMillimetersUnit |
Millimeters
|
| Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef |
|---|
REFERENCE_EMPTY, REFERENCE_REPORT |
| Constructor Summary | |
|---|---|
StiUnit()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject |
|---|
cleanReference, getReference, setReference |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static StiCentimetersUnit Centimeters
public static StiHundredthsOfInchUnit HundredthsOfInch
public static StiInchesUnit Inches
public static StiMillimetersUnit Millimeters
| Constructor Detail |
|---|
public StiUnit()
| Method Detail |
|---|
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.Object
public static JSONObject SaveToJsonObject(StiUnit unit)
throws JSONException
JSONException
public static StiUnit LoadFromJsonObject(JSONObject jObject)
throws JSONException
JSONException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||