com.stimulsoft.report.components.simplecomponents
Class StiView

java.lang.Object
  extended by com.stimulsoft.base.serializing.StiSerializedObject
      extended by com.stimulsoft.base.services.StiService
          extended by com.stimulsoft.report.StiBase
              extended by com.stimulsoft.report.components.StiComponent
                  extended by com.stimulsoft.report.components.simplecomponents.StiView
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, java.lang.Cloneable
Direct Known Subclasses:
StiImage

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


Field Summary
 
Fields inherited from class com.stimulsoft.report.components.StiComponent
canGrow, canShrink, componentPlacement, conditions, currentPointer, expressions, interaction, isRendered, page, parent, parentBookmark, parentPointer, top, width
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiView()
          Creates a new component of the type StiView.
StiView(StiRectangle rect)
          Creates a new component of the type StiView.
 
Method Summary
 java.lang.Object clone(boolean cloneProperties)
          Creates a new object that is a copy of the current instance.
 boolean existImageToDraw()
           
 StiSize getActualSize()
          Initializes a new instance of the StiSize class from the specified dimensi.
 boolean getAspectRatio()
          Gets or sets value, indicates that the image will save its aspect ratio.
 StiBorder getBorder()
          Gets or sets border of the component.
 StiBrush getBrush()
          Gets or sets a brush to fill a component.
 java.awt.image.BufferedImage getBufferedImage(StiRectangle rect)
           
 java.awt.image.BufferedImage getBufferedImage(StiRectangle rect, double zoom)
           
 StiHorAlignment getHorAlignment()
          Gets or sets the horizontal alignment of an object.
 java.lang.String getImageBytesToDraw()
          Gets or sets the image that appeared as a result of the component rendering.
abstract  java.lang.String GetImageFromSource()
           
 java.lang.String getImageToDraw()
           
 boolean getIsCachedImage()
           
 StiMargins getMargins()
           
 double getMultipleFactor()
          Gets or sets value to multiply by it an image size.
 java.lang.Object getObjectToDraw()
          Gets or sets the WPF visual object that appeared as a result of the component rendering.
 StiSize getRealSize()
           
 boolean getSmoothing()
          Gets or sets smoothing mode for drawing image.
 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.
 StiVertAlignment getVertAlignment()
          Gets or sets the vertical alignment of an object.
 boolean imageToDrawIsMetafile()
           
 boolean isExportAsImage(StiExportFormat format)
           
 boolean IsExportAsImage(StiExportFormat format)
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setAspectRatio(boolean value)
           
 void setBorder(StiBorder value)
           
 void setBrush(StiBrush value)
           
 void setHorAlignment(StiHorAlignment value)
           
 void setImageBytesToDraw(java.lang.String value)
           
 void setImageToDraw(java.lang.String value)
           
 void setIsCachedImage(boolean value)
           
 void setMargins(StiMargins margins)
           
 void setMultipleFactor(double value)
           
 void setObjectToDraw(java.lang.Object value)
           
 void setSmoothing(boolean value)
           
 void setStretch(boolean value)
           
 void setVertAlignment(StiVertAlignment value)
           
 
Methods inherited from class com.stimulsoft.report.components.StiComponent
addSize, applyConditions, canContainIn, CheckForParentComponent, clearAllStates, ClearAllStates, ClearContents, clone, ComponentToPage, ComponentToPage, ComponentToPage, convert, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, doPointer, fillComponentPlacement, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getCanGrow, getCanShrink, getClickEvent, getClientRectangle, getComponentPlacement, getComponentStyle, getComponentType, getConditions, getContainer, getCurrentBookmark, getDataBand, GetDataBand, getDefaultClientRectangle, getDelimiterComponent, getDisplayRectangle, getDisplayRectangle1, getDockable, getDockRegion, getDockRegion, getDockStyle, getDoubleClickEvent, getDrillDownParameters, getEnabled, getEvents, getExpressions, getForceRedrawAll, getgetBookmarkEvent, getgetDrillDownReportEvent, getgetHyperlinkEvent, getgetTagEvent, getgetToolTipEvent, getGroupHeaderBand, GetGroupHeaderBand, getGrowToHeight, getGuid, getHeight, getHighlightState, getHyperlink, getHyperlinkValue, getIgnoreNamingRule, getImage, getImage, getInherited, getInteraction, getInvalidateOnMouseOver, getIsCross, getIsDesigning, getIsEnabled, getIsEventEmpty, getIsExporting, getIsgetTagHandlerEmpty, getIsPrinting, getIsRendered, getIsSelected, getLeft, getLevel, getLinked, getLocked, getMaxSize, getMeasureGraphics, getMinSize, getMouseEnterEvent, getMouseLeaveEvent, getPage, getPaintRectangle, getPaintRectangle, getPaintRectangle, getParent, getParentBookmark, getPlaceOnToolbox, getPointer, getPointerValue, getPrintable, getPrintOn, getPriority, getQuickInfo, getRenderedCount, getReport, getRestrictions, getRight, getSelectionTick, getSelectRectangle, getServiceCategory, getServiceType, getShift, getShiftMode, getShowQuickButtons, getTag, getTagStrValue, getTagValue, getToolboxPosition, getToolTip, getToolTipValue, getTop, getUseParentStyles, getWidth, incrementtTop, InternalRender, invert, InvokeAfterPrint, InvokeBeforePrint, InvokeBeginRender, InvokeClick, InvokeDoubleClick, InvokeEndRender, invokeEvents, InvokegetBookmark, InvokegetDrillDownReport, InvokegetHyperlink, InvokegetTag, InvokegetToolTip, InvokeMouseEnter, InvokeMouseLeave, InvokePainted, invokePainting, isAutomaticDock, isDesigning, IsParentSelect, NewGuid, OnRemoveComponent, packService, PageToComponent, PageToComponent, paint, PlacedOnColumnBand, Prepare, render, reset, Reset, restoreState, RestoreState, saveState, select, setAfterPrintEvent, setAlias, setAnchor, setBeforePrintEvent, setBookmark, setBookmarkValue, setCanGrow, setCanShrink, setClickEvent, setClientRectangle, setComponentPlacement, setComponentStyle, setConditions, setCurrentBookmark, setDelimiterComponent, setDirectDisplayRectangle, setDisplayRectangle, setDockable, setDockStyle, setDoubleClickEvent, setDrillDownParameters, setEnabled, setExpressions, setgetBookmarkEvent, setgetDrillDownReportEvent, setgetHyperlinkEvent, setgetTagEvent, setgetToolTipEvent, setGrowToHeight, setGuid, setHeight, setHeightProp, setHighlightState, setHyperlink, setHyperlinkValue, setIgnoreNamingRule, setInherited, setInteraction, setIsRendered, setIsSelected, setLeft, setLeftProp, setLinked, setLocked, setMaxSize, setMinSize, setMouseEnterEvent, setMouseLeaveEvent, setName, setPage, setPaintRectangle, setParent, setParentBookmark, setPlaceOnToolbox, setPointer, setPointerValue, setPrintable, setPrintOn, setRenderedCount, setReport, SetReportVariables, setRestrictions, setSelectionTick, setSelectRectangle, setShift, setShiftMode, setShowQuickButtons, setStates, setTag, setTagValue, setToolTip, setToolTipValue, setTop, setTopProp, setUseParentStyles, setWidth, setWidthProp, toString, UnPrepare
 
Methods inherited from class com.stimulsoft.report.StiBase
getLocalizedCategory, getLocalizedName, getName, getServiceName
 
Methods inherited from class com.stimulsoft.base.services.StiService
getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, properties, setProperties, setServiceEnabled
 
Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.stimulsoft.report.components.interfaces.IStiExportImageExtended
getImage
 
Methods inherited from interface com.stimulsoft.report.components.interfaces.IStiExportImage
getImage
 

Constructor Detail

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 Detail

getBufferedImage

public java.awt.image.BufferedImage getBufferedImage(StiRectangle rect)

getBufferedImage

public java.awt.image.BufferedImage getBufferedImage(StiRectangle rect,
                                                     double zoom)

existImageToDraw

public boolean existImageToDraw()

imageToDrawIsMetafile

public boolean imageToDrawIsMetafile()

clone

public java.lang.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 java.lang.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(java.lang.Object value)

getImageToDraw

public java.lang.String getImageToDraw()

setImageToDraw

public void setImageToDraw(java.lang.String value)

getImageBytesToDraw

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


setImageBytesToDraw

public void setImageBytesToDraw(java.lang.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 java.lang.String GetImageFromSource()

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