Class StiMargins

java.lang.Object
com.stimulsoft.report.components.StiMargins
All Implemented Interfaces:
IStiDefault, IStiSerializable, IStiSerializableToString, Cloneable

public class StiMargins extends Object implements IStiSerializableToString, Cloneable, IStiDefault
Describes the class that realizes object margins.
  • Field Details

  • 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

      public boolean equals(Object obj)
      Tests to see whether the specified object is a StiSize with the same dimensions as this StiSize.
      Overrides:
      equals in class Object
      Parameters:
      obj - The Object to test.
      Returns:
      This method returns true if obj is a StiSize and has the same width and height as this StiSize; otherwise, false.
    • hashCode

      public int hashCode()
      Returns a hash code for this StiSize structure.
      Overrides:
      hashCode in class Object
      Returns:
      An integer value that specifies a hash value for this StiSize structure.
    • clone

      public final Object clone()
      Creates a new object that is a copy of the current instance.
      Overrides:
      clone in class Object
      Returns:
      A new object that is a copy of this instance.
    • deserialize

      public void deserialize(String strObject)
      Specified by:
      deserialize in interface IStiSerializableToString
    • deserializeString

      public StiMargins deserializeString(String stringValue)
    • serialize

      public String serialize()
      Specified by:
      serialize in interface IStiSerializableToString
    • isDefault

      public boolean isDefault()
      Specified by:
      isDefault in interface IStiDefault
    • SaveToJsonObject

      public JSONObject SaveToJsonObject(StiJsonSaveMode mode, double defLeft, double defRight, double defTop, double defBotttom) throws JSONException
      Throws:
      JSONException
    • LoadFromJsonObject

      public void LoadFromJsonObject(JSONObject jObject) throws JSONException
      Throws:
      JSONException