Class StiImage
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
com.stimulsoft.report.components.simplecomponents.StiImage
- All Implemented Interfaces:
IStiAppExpressionCollection,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiName,IStiBorder,IStiBreakable,IStiBrush,IStiCanGrow,IStiCanShrink,IStiComponentGuid,IStiConditions,IStiExportImage,IStiExportImageExtended,IStiGlobalizedName,IStiGrowToHeight,IStiHorAlignment,IStiInteraction,IStiPrintOn,IStiSelect,IStiShift,IStiUnitConvert,IStiVertAlignment,IStiReportProperty,IStiInherited,IStiStateSaveRestore,Cloneable
- Direct Known Subclasses:
StiTableCellImage
The class describes the component of printing for image printing - Image.
-
Field Summary
FieldsFields inherited from class com.stimulsoft.report.components.simplecomponents.StiView
bufferedImage, imageBytesToDrawFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanBreak(StiComponent dividedComponent, double devideFactor, StiRefObject<Double> divideLine, StiRefObject<Boolean> haveBreaked) Divides content of components in two parts.convertImageMargins(StiRectangle rect, boolean convert) getBufferedImage(StiRectangle rect) getBufferedImage(StiRectangle rect, double zoom) booleanGets or sets value which indicates whether the component can or cannot break its contents on several pages.final StringGets or sets a name of the column that contains the image.Gets or sets the default client area of a component.final StringgetFile()Gets or sets the path to the file that contains the image.Occurs when getting image for the component.Occurs when getting image url for the component.final StringGets or sets special identificator which will be used for report globalization.getIcon()final StringgetImage()final StringGets or sets the image.Gets or sets the image that appeared as a result of the component rendering.Gets or sets the expression to fill a component image property.protected StringReturns the image from specified data column.protected Stringprotected byte[]getImageFromResource(StiResourcesCollection resources) Returns the image being get as a result of rendering.protected Stringfinal StiImageRotationGets or sets value which indicates how to rotate an image before output.Gets or sets the expression to fill a component image URL.final ObjectGets or sets image URL.Gets a localized name of the component category.Gets a localized component name.Gets or sets value which indicates how report engine processes duplicated images.intGets value to sort a position in the toolbox.voidInvokes all events for this components.voidinvokeGetImageData(Object sender, StiGetImageDataEventArgs e) voidinvokeGetImageURL(Object sender, StiValueEventArgs e) // * Raises the GetImageURL event.voidLoadFromJsonObject(JSONObject jObject) protected voidRaises the GetImageData event.protected voidRaises the GetImageURL event.voidputImage(byte[] image) voidvoidrotateImage(BufferedImage image) voidsetCanBreak(boolean value) final voidsetDataColumn(String value) final voidvoidvoidfinal voidsetGlobalizedName(String value) voidsetIcon(StiFontIcons icon) voidsetIconColor(StiColor iconColor) voidfinal voidfinal voidsetImageBytes(String value) voidfinal voidsetImageRotation(StiImageRotation value) voidsetImageURL(StiImageURLExpression value) final voidsetImageURLValue(Object value) voidMethods inherited from class com.stimulsoft.report.components.simplecomponents.StiView
clearBufferedImage, clone, existImageToDraw, getActualSize, getAspectRatio, getBorder, getBrush, getHorAlignment, getImageToDraw, getIsCachedImage, getMargins, getMultipleFactor, getObjectToDraw, getRealSize, getSmoothing, getStretch, getVertAlignment, imageToDrawIsMetafile, isEmptyBufferedImage, isExportAsImage, IsExportAsImage, setAspectRatio, setBorder, setBrush, setHorAlignment, setImageBytesToDraw, setImageToDraw, setIsCachedImage, setMargins, setMultipleFactor, setObjectToDraw, setSmoothing, setStretch, setVertAlignmentMethods 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, 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, getToolTip, getToolTipValue, getTop, getUseParentStyles, getWidth, incrementtTop, InternalRender, invert, InvokeAfterPrint, InvokeBeforePrint, InvokeBeginRender, invokeBlockly, InvokeClick, InvokeDoubleClick, InvokeEndRender, 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
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
-
PropertyCanBreak
-
PropertyProcessingDuplicates
-
-
Constructor Details
-
StiImage
public StiImage()Creates a new component of the type StiImage. -
StiImage
Creates a new component of the type StiImage with specified location.- Parameters:
rect- The rectangle describes size and position of the component.
-
StiImage
-
StiImage
public StiImage(byte[] bytes)
-
-
Method Details
-
getBufferedImage
-
getBufferedImage
- Overrides:
getBufferedImagein classStiView
-
getBufferedImage
- Overrides:
getBufferedImagein classStiView
-
rotateImage
-
convertImageMargins
-
getGlobalizedName
Gets or sets special identificator which will be used for report globalization.- Specified by:
getGlobalizedNamein interfaceIStiGlobalizedName
-
setGlobalizedName
- Specified by:
setGlobalizedNamein interfaceIStiGlobalizedName
-
getImageFromUrl
protected String getImageFromUrl() throws UnsupportedEncodingException, FileNotFoundException, IOException -
getImageFromResource
- Specified by:
getImageFromResourcein classStiView
-
getCanBreak
public boolean getCanBreak()Gets or sets value which indicates whether the component can or cannot break its contents on several pages.- Specified by:
getCanBreakin interfaceIStiBreakable
-
setCanBreak
public void setCanBreak(boolean value) - Specified by:
setCanBreakin interfaceIStiBreakable
-
getToolboxPosition
public int getToolboxPosition()Gets value to sort a position in the toolbox.- Overrides:
getToolboxPositionin classStiComponent
-
getLocalizedCategory
Gets a localized name of the component category.- Overrides:
getLocalizedCategoryin classStiBase
-
getLocalizedName
Gets a localized component name.- Overrides:
getLocalizedNamein classStiBase
-
getDefaultClientRectangle
Gets or sets the default client area of a component.- Overrides:
getDefaultClientRectanglein classStiComponent
-
getImageURLValue
Gets or sets image URL. -
setImageURLValue
-
getImageURL
Gets or sets the expression to fill a component image URL. -
setImageURL
-
getImageData
Gets or sets the expression to fill a component image property. -
setImageData
-
invokeEvents
public void invokeEvents()Description copied from class:StiComponentInvokes all events for this components.- Overrides:
invokeEventsin classStiComponent
-
invokeGetImageData
-
OnGetImageURL
Raises the GetImageURL event. -
invokeGetImageURL
// * Raises the GetImageURL event. // -
getGetImageURLEvent
Occurs when getting image url for the component. -
setGetImageURLEvent
-
OnGetImageData
Raises the GetImageData event. -
getGetImageDataEvent
Occurs when getting image for the component. -
setGetImageDataEvent
-
getProcessingDuplicates
Gets or sets value which indicates how report engine processes duplicated images. -
setProcessingDuplicates
-
getImageRotation
Gets or sets value which indicates how to rotate an image before output. -
setImageRotation
-
getImage
-
setImage
-
getImageBytes
Gets or sets the image. -
setImageBytes
-
putImage
- Throws:
UnsupportedEncodingException
-
putImage
-
resetImage
public void resetImage() -
getFile
Gets or sets the path to the file that contains the image. -
getImageBytesToDraw
Description copied from class:StiViewGets or sets the image that appeared as a result of the component rendering.- Overrides:
getImageBytesToDrawin classStiView
-
setFile
-
getImageFromFile
-
getDataColumn
Gets or sets a name of the column that contains the image. -
setDataColumn
-
Break
public boolean Break(StiComponent dividedComponent, double devideFactor, StiRefObject<Double> divideLine, StiRefObject<Boolean> haveBreaked) Description copied from interface:IStiBreakableDivides content of components in two parts. Returns result of dividing. If true, then component is successful divided.- Specified by:
Breakin interfaceIStiBreakable- Parameters:
dividedComponent- Component for store part of content.- Returns:
- If true, then component is successful divided.
-
GetImageFromSource
Returns the image being get as a result of rendering.- Specified by:
GetImageFromSourcein classStiView
-
getImageFromDataColumn
Returns the image from specified data column. -
setImage
-
getIcon
- Returns:
- the icon
-
setIcon
- Parameters:
icon- the icon to set
-
getIconColor
- Returns:
- the iconColor
-
setIconColor
- Parameters:
iconColor- the iconColor to set
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiView- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiView- Throws:
JSONException
-