Class StiView
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.StiBase
com.stimulsoft.report.components.StiComponent
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,Cloneable
- Direct Known Subclasses:
StiImage
public abstract class StiView
extends StiComponent
implements IStiHorAlignment, IStiVertAlignment, IStiBorder, IStiExportImageExtended, IStiBrush
-
Field Summary
FieldsFields inherited from class com.stimulsoft.report.components.StiComponent
canGrow, canShrink, componentPlacement, conditions, currentPointer, eventFlags, expressions, interaction, isRendered, page, parent, parentBookmark, parentPointer, PropertyComponentStyle, PropertyDelimiterComponent, PropertyDockable, PropertyInherited, PropertyLinked, PropertyLocked, PropertyMaxSize, PropertyMinSize, PropertyPlaceOnToolbox, PropertyRenderedCount, PropertyRestrictions, PropertySelectionTick, PropertyShowQuickButtons, PropertyUseParentStyles, top, widthFields inherited from class com.stimulsoft.base.services.StiService
propertiesFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionStiView()Creates a new component of the type StiView.StiView(StiRectangle rect) Creates a new component of the type StiView. -
Method Summary
Modifier and TypeMethodDescriptionvoidclone(boolean cloneProperties) Creates a new object that is a copy of the current instance.booleanInitializes a new instance of the StiSize class from the specified dimensi.final booleanGets or sets value, indicates that the image will save its aspect ratio.final StiBorderGets or sets border of the component.final StiBrushgetBrush()Gets or sets a brush to fill a component.getBufferedImage(StiRectangle rect) getBufferedImage(StiRectangle rect, double zoom) final StiHorAlignmentGets or sets the horizontal alignment of an object.Gets or sets the image that appeared as a result of the component rendering.protected abstract byte[]getImageFromResource(StiResourcesCollection resources) abstract Stringfinal booleanfinal doubleGets or sets value to multiply by it an image size.final ObjectGets or sets the WPF visual object that appeared as a result of the component rendering.final StiSizefinal booleanGets or sets smoothing mode for drawing image.final booleanGets or sets value, indicates that this component will stretch the image till the image will get size equal in its size on the page.final StiVertAlignmentGets or sets the vertical alignment of an object.booleanbooleanbooleanisExportAsImage(StiExportFormat format) booleanIsExportAsImage(StiExportFormat format) voidLoadFromJsonObject(JSONObject jObject) final voidsetAspectRatio(boolean value) final voidfinal voidfinal voidsetHorAlignment(StiHorAlignment value) voidsetImageBytesToDraw(String value) voidsetImageToDraw(String value) final voidsetIsCachedImage(boolean value) voidsetMargins(StiMargins margins) final voidsetMultipleFactor(double value) final voidsetObjectToDraw(Object value) final voidsetSmoothing(boolean value) final voidsetStretch(boolean value) final voidsetVertAlignment(StiVertAlignment value) Methods inherited from class com.stimulsoft.report.components.StiComponent
addSize, AllowPrintOn, applyConditions, canContainIn, CheckForParentComponent, clearAllStates, ClearAllStates, ClearContents, clone, ComponentToPage, ComponentToPage, ComponentToPage, convert, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, doPointer, doPointer, fillComponentPlacement, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getBuilder, getCanGrow, getCanShrink, getClickEvent, getClientRectangle, getComponentPlacement, getComponentStyle, 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, getStates, getTag, getTagStrValue, getTagValue, getToolboxPosition, getToolTip, getToolTipValue, getTop, getUseParentStyles, getWidth, incrementtTop, InternalRender, invert, InvokeAfterPrint, InvokeBeforePrint, InvokeBeginRender, invokeBlockly, InvokeClick, InvokeDoubleClick, InvokeEndRender, invokeEvents, InvokegetBookmark, InvokegetDrillDownReport, InvokegetHyperlink, InvokegetTag, InvokegetToolTip, InvokeMouseEnter, InvokeMouseLeave, InvokePainted, invokePainting, invokeScript, invokeScript, invokeScript, isAutomaticDock, isDesigning, IsParentSelect, NewGuid, OnAfterPrint, OnBeforePrint, OnClick, OnDoubleClick, OngetBookmark, OngetDrillDownReport, OngetHyperlink, OngetTag, OngetToolTip, OnMouseEnter, OnMouseLeave, OnPainted, OnPainting, 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, UnPrepareMethods inherited from class com.stimulsoft.report.StiBase
getLocalizedCategory, getLocalizedName, getName, getServiceNameMethods inherited from class com.stimulsoft.base.services.StiService
getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, properties, setProperties, setServiceEnabledMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReferenceMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stimulsoft.report.components.interfaces.IStiExportImage
getImageMethods inherited from interface com.stimulsoft.report.components.interfaces.IStiExportImageExtended
getImage
-
Field Details
-
imageBytesToDraw
-
bufferedImage
-
-
Constructor Details
-
StiView
public StiView()Creates a new component of the type StiView. -
StiView
Creates a new component of the type StiView.- Parameters:
rect- The rectangle describes size and position of the component.
-
-
Method Details
-
getBufferedImage
-
isEmptyBufferedImage
public boolean isEmptyBufferedImage() -
clearBufferedImage
public void clearBufferedImage() -
getBufferedImage
-
existImageToDraw
public boolean existImageToDraw() -
imageToDrawIsMetafile
public boolean imageToDrawIsMetafile() -
clone
Creates a new object that is a copy of the current instance.- Overrides:
clonein classStiComponent- Returns:
- A new object that is a copy of this instance.
-
getHorAlignment
Gets or sets the horizontal alignment of an object.- Specified by:
getHorAlignmentin interfaceIStiHorAlignment
-
setHorAlignment
- Specified by:
setHorAlignmentin interfaceIStiHorAlignment
-
isExportAsImage
- Specified by:
isExportAsImagein interfaceIStiExportImageExtended- Overrides:
isExportAsImagein classStiComponent
-
getVertAlignment
Gets or sets the vertical alignment of an object.- Specified by:
getVertAlignmentin interfaceIStiVertAlignment
-
setVertAlignment
- Specified by:
setVertAlignmentin interfaceIStiVertAlignment
-
IsExportAsImage
-
getBorder
Gets or sets border of the component.- Specified by:
getBorderin interfaceIStiBorder
-
setBorder
- Specified by:
setBorderin interfaceIStiBorder
-
getBrush
Gets or sets a brush to fill a component. -
setBrush
-
getActualSize
Description copied from class:StiComponentInitializes a new instance of the StiSize class from the specified dimensi.- Overrides:
getActualSizein classStiComponent- Returns:
- A class of the StiSize type which represents an actual size of the component.
-
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
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
-
getImageToDraw
-
setImageToDraw
-
getImageBytesToDraw
Gets or sets the image that appeared as a result of the component rendering. -
setImageBytesToDraw
-
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
-
getImageFromResource
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiComponent- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiComponent- Throws:
JSONException
-
getMargins
- Returns:
- the margins
-
setMargins
- Parameters:
margins- the margins to set
-