public class StiMargins extends java.lang.Object implements IStiSerializableToString, java.lang.Cloneable, IStiDefault
| Modifier and Type | Field and Description |
|---|---|
static StiMargins |
Empty |
| Constructor and Description |
|---|
StiMargins()
Creates a new object of the type StiMargins.
|
StiMargins(double left,
double right,
double top,
double bottom)
Creates a new object of the type StiMargins.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a new object that is a copy of the current instance.
|
void |
deserialize(java.lang.String strObject) |
StiMargins |
deserializeString(java.lang.String stringValue) |
boolean |
equals(java.lang.Object obj)
Tests to see whether the specified object is a StiSize with the same dimensions as this
StiSize.
|
double |
getBottom()
Gets or sets bottom magin size on the object.
|
double |
getLeft()
Gets or sets left magin size on the object.
|
double |
getRight()
Gets or sets right magin size on the object.
|
double |
getTop()
Gets or sets top magin size on the object.
|
int |
hashCode()
Returns a hash code for this StiSize structure.
|
boolean |
isDefault() |
boolean |
isEmpty() |
void |
LoadFromJsonObject(JSONObject jObject) |
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode,
double defLeft,
double defRight,
double defTop,
double defBotttom) |
java.lang.String |
serialize() |
void |
setBottom(double value) |
void |
setLeft(double value) |
void |
setRight(double value) |
void |
setTop(double value) |
public static StiMargins Empty
public StiMargins()
public StiMargins(double left,
double right,
double top,
double bottom)
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.public final double getLeft()
public final void setLeft(double value)
public final double getRight()
public final void setRight(double value)
public final double getTop()
public final void setTop(double value)
public final double getBottom()
public final void setBottom(double value)
public final boolean isEmpty()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The Object to test.public int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.Object clone()
clone in class java.lang.Objectpublic void deserialize(java.lang.String strObject)
deserialize in interface IStiSerializableToStringpublic StiMargins deserializeString(java.lang.String stringValue)
public java.lang.String serialize()
serialize in interface IStiSerializableToStringpublic boolean isDefault()
isDefault in interface IStiDefaultpublic JSONObject SaveToJsonObject(StiJsonSaveMode mode, double defLeft, double defRight, double defTop, double defBotttom) throws JSONException
JSONExceptionpublic void LoadFromJsonObject(JSONObject jObject) throws JSONException
JSONExceptionCopyright © 2019 Stimulsoft. All Rights Reserved.