Class StiRectanglePrimitive

All Implemented Interfaces:
IStiAppExpressionCollection, IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiName, IStiBorder, IStiCanGrow, IStiCanShrink, IStiComponentGuid, IStiConditions, IStiGrowToHeight, IStiHideBorderFromDesigner, IStiInteraction, IStiPrintOn, IStiSelect, IStiShift, IStiUnitConvert, IStiReportProperty, IStiInherited, IStiStateSaveRestore, Cloneable
Direct Known Subclasses:
StiRoundedRectanglePrimitive

public class StiRectanglePrimitive extends StiCrossLinePrimitive implements IStiHideBorderFromDesigner, IStiBorder
Describes class that realizes component - StiRectanglePrimitive.
  • Constructor Details

    • StiRectanglePrimitive

      public StiRectanglePrimitive()
      Creates a new StiRectanglePrimitive.
    • StiRectanglePrimitive

      public StiRectanglePrimitive(StiRectangle rect)
      Creates a new StiRectanglePrimitive.
      Parameters:
      rect - The rectangle describes size and position of the component.
  • Method Details

    • getBorder

      public final StiBorder getBorder()
      Gets or sets frame of the component.
      Specified by:
      getBorder in interface IStiBorder
    • setBorder

      public final void setBorder(StiBorder value)
      Specified by:
      setBorder in interface IStiBorder
    • convert

      public void convert(StiUnit oldUnit, StiUnit newUnit)
      Converts a component out of one unit into another.
      Specified by:
      convert in interface IStiUnitConvert
      Overrides:
      convert in class StiComponent
      Parameters:
      oldUnit - Old units.
      newUnit - New units.
    • getToolboxPosition

      public int getToolboxPosition()
      Gets value to sort a position in the toolbox.
      Overrides:
      getToolboxPosition in class StiComponent
    • getLocalizedName

      public String getLocalizedName()
      Gets a localized component name.
      Overrides:
      getLocalizedName in class StiBase
    • getWidth

      public double getWidth()
      Description copied from class: StiComponent
      gets or sets width of a component.
      Overrides:
      getWidth in class StiComponent
    • setWidth

      public void setWidth(double value)
      Overrides:
      setWidth in class StiComponent
    • getTopSide

      public boolean getTopSide()
      Gets os sets property which indicates to draw top side of the rectangle or no.
    • setTopSide

      public void setTopSide(boolean value)
    • getLeftSide

      public boolean getLeftSide()
      Gets os sets property which indicates to draw left side of the rectangle or no.
    • setLeftSide

      public void setLeftSide(boolean value)
    • getBottomSide

      public boolean getBottomSide()
      Gets os sets property which indicates to draw bottom side of the rectangle or no.
    • setBottomSide

      public void setBottomSide(boolean value)
    • getRightSide

      public boolean getRightSide()
      Gets os sets property which indicates to draw right side of the rectangle or no.
    • setRightSide

      public void setRightSide(boolean value)
    • SaveToJsonObject

      public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
      Specified by:
      SaveToJsonObject in interface IStiJsonReportObject
      Overrides:
      SaveToJsonObject in class StiLinePrimitive
      Throws:
      JSONException
    • LoadFromJsonObject

      public void LoadFromJsonObject(JSONObject jObject) throws JSONException
      Specified by:
      LoadFromJsonObject in interface IStiJsonReportObject
      Overrides:
      LoadFromJsonObject in class StiLinePrimitive
      Throws:
      JSONException