Package com.stimulsoft.report.components
Class StiMargins
java.lang.Object
com.stimulsoft.report.components.StiMargins
- All Implemented Interfaces:
IStiDefault,IStiSerializable,IStiSerializableToString,Cloneable
Describes the class that realizes object margins.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new object of the type StiMargins.StiMargins(double left, double right, double top, double bottom) Creates a new object of the type StiMargins. -
Method Summary
Modifier and TypeMethodDescriptionfinal Objectclone()Creates a new object that is a copy of the current instance.voiddeserialize(String strObject) deserializeString(String stringValue) booleanTests to see whether the specified object is a StiSize with the same dimensions as this StiSize.final doubleGets or sets bottom magin size on the object.final doublegetLeft()Gets or sets left magin size on the object.final doublegetRight()Gets or sets right magin size on the object.final doublegetTop()Gets or sets top magin size on the object.inthashCode()Returns a hash code for this StiSize structure.booleanfinal booleanisEmpty()voidLoadFromJsonObject(JSONObject jObject) SaveToJsonObject(StiJsonSaveMode mode, double defLeft, double defRight, double defTop, double defBotttom) final voidsetBottom(double value) final voidsetLeft(double value) final voidsetRight(double value) final voidsetTop(double value)
-
Field Details
-
Empty
-
-
Constructor Details
-
StiMargins
public StiMargins()Creates a new object of the type StiMargins. -
StiMargins
public StiMargins(double left, double right, double top, double bottom) Creates a new object of the type StiMargins.- Parameters:
left- Left magin size on the object.right- Right magin size on the object.top- Top magin size on the object.bottom- Bottom magin size on the object.
-
-
Method Details
-
getLeft
public final double getLeft()Gets or sets left magin size on the object. -
setLeft
public final void setLeft(double value) -
getRight
public final double getRight()Gets or sets right magin size on the object. -
setRight
public final void setRight(double value) -
getTop
public final double getTop()Gets or sets top magin size on the object. -
setTop
public final void setTop(double value) -
getBottom
public final double getBottom()Gets or sets bottom magin size on the object. -
setBottom
public final void setBottom(double value) -
isEmpty
public final boolean isEmpty() -
equals
Tests to see whether the specified object is a StiSize with the same dimensions as this StiSize. -
hashCode
public int hashCode()Returns a hash code for this StiSize structure. -
clone
Creates a new object that is a copy of the current instance. -
deserialize
- Specified by:
deserializein interfaceIStiSerializableToString
-
deserializeString
-
serialize
- Specified by:
serializein interfaceIStiSerializableToString
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceIStiDefault
-
SaveToJsonObject
public JSONObject SaveToJsonObject(StiJsonSaveMode mode, double defLeft, double defRight, double defTop, double defBotttom) throws JSONException - Throws:
JSONException
-
LoadFromJsonObject
- Throws:
JSONException
-