All Implemented Interfaces:
IStiAppExpressionCollection, IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiName, IStiBorder, IStiBrush, IStiCanGrow, IStiCanShrink, IStiComponentGuid, IStiConditions, IStiExportImage, IStiExportImageExtended, IStiGrowToHeight, IStiHorAlignment, IStiInteraction, IStiPrintOn, IStiSelect, IStiShift, IStiUnitConvert, IStiVertAlignment, IStiReportProperty, IStiInherited, IStiStateSaveRestore, Cloneable
Direct Known Subclasses:
StiImage

public abstract class StiView extends StiComponent implements IStiHorAlignment, IStiVertAlignment, IStiBorder, IStiExportImageExtended, IStiBrush
  • Field Details

    • imageBytesToDraw

      protected String imageBytesToDraw
    • bufferedImage

      protected BufferedImage bufferedImage
  • Constructor Details

    • StiView

      public StiView()
      Creates a new component of the type StiView.
    • StiView

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

    • getBufferedImage

      public BufferedImage getBufferedImage(StiRectangle rect)
    • isEmptyBufferedImage

      public boolean isEmptyBufferedImage()
    • clearBufferedImage

      public void clearBufferedImage()
    • getBufferedImage

      public BufferedImage getBufferedImage(StiRectangle rect, double zoom)
    • existImageToDraw

      public boolean existImageToDraw()
    • imageToDrawIsMetafile

      public boolean imageToDrawIsMetafile()
    • clone

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

      public final StiHorAlignment getHorAlignment()
      Gets or sets the horizontal alignment of an object.
      Specified by:
      getHorAlignment in interface IStiHorAlignment
    • setHorAlignment

      public final void setHorAlignment(StiHorAlignment value)
      Specified by:
      setHorAlignment in interface IStiHorAlignment
    • isExportAsImage

      public boolean isExportAsImage(StiExportFormat format)
      Specified by:
      isExportAsImage in interface IStiExportImageExtended
      Overrides:
      isExportAsImage in class StiComponent
    • getVertAlignment

      public final StiVertAlignment getVertAlignment()
      Gets or sets the vertical alignment of an object.
      Specified by:
      getVertAlignment in interface IStiVertAlignment
    • setVertAlignment

      public final void setVertAlignment(StiVertAlignment value)
      Specified by:
      setVertAlignment in interface IStiVertAlignment
    • IsExportAsImage

      public boolean IsExportAsImage(StiExportFormat format)
    • getBorder

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

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

      public final StiBrush getBrush()
      Gets or sets a brush to fill a component.
      Specified by:
      getBrush in interface IStiBrush
    • setBrush

      public final void setBrush(StiBrush value)
      Specified by:
      setBrush in interface IStiBrush
    • getActualSize

      public StiSize getActualSize()
      Description copied from class: StiComponent
      Initializes a new instance of the StiSize class from the specified dimensi.
      Overrides:
      getActualSize in class StiComponent
      Returns:
      A class of the StiSize type which represents an actual size of the component.
    • getRealSize

      public final StiSize getRealSize()
    • getSmoothing

      public final boolean getSmoothing()
      Gets or sets smoothing mode for drawing image.
    • setSmoothing

      public final void setSmoothing(boolean value)
    • getIsCachedImage

      public final boolean getIsCachedImage()
    • setIsCachedImage

      public final void setIsCachedImage(boolean value)
    • getObjectToDraw

      public final Object getObjectToDraw()
      Gets or sets the WPF visual object that appeared as a result of the component rendering. This property accepts objects of two types: DrawingVisual and ImageSource.
    • setObjectToDraw

      public final void setObjectToDraw(Object value)
    • getImageToDraw

      public String getImageToDraw()
    • setImageToDraw

      public void setImageToDraw(String value)
    • getImageBytesToDraw

      public String getImageBytesToDraw()
      Gets or sets the image that appeared as a result of the component rendering.
    • setImageBytesToDraw

      public void setImageBytesToDraw(String value)
    • getStretch

      public final boolean getStretch()
      Gets or sets value, indicates that this component will stretch the image till the image will get size equal in its size on the page.
    • setStretch

      public final void setStretch(boolean value)
    • getMultipleFactor

      public final double getMultipleFactor()
      Gets or sets value to multiply by it an image size.
    • setMultipleFactor

      public final void setMultipleFactor(double value)
    • getAspectRatio

      public final boolean getAspectRatio()
      Gets or sets value, indicates that the image will save its aspect ratio.
    • setAspectRatio

      public final void setAspectRatio(boolean value)
    • GetImageFromSource

      public abstract String GetImageFromSource()
    • getImageFromResource

      protected abstract byte[] getImageFromResource(StiResourcesCollection resources)
    • SaveToJsonObject

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

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

      public StiMargins getMargins()
      Returns:
      the margins
    • setMargins

      public void setMargins(StiMargins margins)
      Parameters:
      margins - the margins to set