Class StiTextInCells
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.StiSimpleText
com.stimulsoft.report.components.simplecomponents.StiText
com.stimulsoft.report.components.simplecomponents.StiTextInCells
- All Implemented Interfaces:
IStiAppExpressionCollection,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiSerializableToAttributes,IStiName,IStiAutoWidth,IStiBorder,IStiBreakable,IStiBrush,IStiCanGrow,IStiCanShrink,IStiComponentGuid,IStiConditions,IStiEditable,IStiExportImage,IStiExportImageExtended,IStiFont,IStiGlobalizedName,IStiGrowToHeight,IStiIndicator,IStiInteraction,IStiOnlyText,IStiPrintOn,IStiProcessAt,IStiProcessAtEnd,IStiSelect,IStiShift,IStiText,IStiTextBrush,IStiTextFormat,IStiTextHorAlignment,IStiTextOptions,IStiUnitConvert,IStiVertAlignment,IStiReportProperty,IStiGlobalizationProvider,IStiInherited,IStiStateSaveRestore,Cloneable
Describes the class that realizes the component - StiTextInCells.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Objectprotected static Objectprotected static Objectprotected static Objectprotected static ObjectFields inherited from class com.stimulsoft.report.components.simplecomponents.StiText
font, PropertyAllowHtmlTags, PropertyAutoWidth, PropertyCanBreak, PropertyExportAsImage, PropertyLineSpacing, PropertyMargins, PropertyNullValue, PropertyRenderTo, PropertyShrinkFontToFit, PropertyShrinkFontToFitMinimumSize, PropertyTextQuality, PropertyTypeFields inherited from class com.stimulsoft.report.components.simplecomponents.StiSimpleText
PropertyGlobalizedName, PropertyMaxNumberOfLines, PropertyOnlyText, PropertyProcessAt, PropertyProcessingDuplicates, text, totalValueHelpFields 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
ConstructorsConstructorDescriptionCreates a new StiTextInCells.StiTextInCells(StiRectangle rect) Creates a new StiTextInCells.StiTextInCells(StiRectangle rect, String text) Creates a new StiTextInCells. -
Method Summary
Modifier and TypeMethodDescriptionvoidConverts a component out of one unit into another.booleanGets or sets value that indicates that this component allow Html tags in text.floatgetAngle()Gets or sets angle of a text rotation.booleanGets or sets value indicates that this object can change width automatically.booleangets or sets a value which indicates that this object can grow.booleangets or sets value which indicates that this object can shrink.floatGets or sets height of the cell.floatGets or sets width of the cell.booleanGets or sets continuous text flag.Gets or sets an expression used for export data to Excel.floatGets or sets horizontal spacing between cells.Gets or sets value indicates that it is necessary to lines of underline.Gets a localized name of the component category.Gets a localized component name.intGets or sets maximum number of lines which specify the limit of the height stretch.Gets or sets value which indicates how report engine processes duplicated values.In the property specify the Text component in what the text that is out of the current Text component bound will be continued to be output.final booleanGets or sets horizontal output direction.booleanGets or sets value that indicates that this component is descrease size of font to fit content of component.floatGets or sets value that indicates minimum font size for ShrinkFontToFit operation.Gets or sets value that indicates quality of text.intGets value to sort a position in the toolbox.Gets or sets the vertical alignment of an object.floatGets or sets vertical spacing between cells.booleanGets or sets word wrap.booleanisExportAsImage(StiExportFormat format) voidLoadFromJsonObject(JSONObject jObject) voidsetAllowHtmlTags(boolean value) voidsetAngle(float value) voidsetAutoWidth(boolean value) voidsetCanGrow(boolean value) voidsetCanShrink(boolean value) voidsetCellHeight(float value) voidsetCellWidth(float value) voidsetContinuousText(boolean value) voidvoidsetHorSpacing(float value) voidsetLinesOfUnderline(StiPenStyle value) voidsetMaxNumberOfLines(int value) voidvoidsetRenderTo(String value) final voidsetRightToLeft(boolean value) voidsetShrinkFontToFit(boolean value) voidsetShrinkFontToFitMinimumSize(float value) voidsetTextQuality(StiTextQuality value) voidsetVertAlignment(StiVertAlignment value) voidsetVertSpacing(float value) voidsetWordWrap(boolean value) static StiContainersplitByCells(StiTextInCells masterTextInCells, StiComponent renderedComponent, String textString) static StiContainersplitByCells(StiTextInCells masterTextInCells, StiComponent renderedComponent, String textString, boolean measure) Methods inherited from class com.stimulsoft.report.components.simplecomponents.StiText
Break, checkAllowHtmlTags, clone, convertTextBorders, convertTextMargins, getActualFont, getActualFont, getActualFont, getActualSize, getAllStrings, getBorder, getBrush, getCanBreak, getClientRectangle, getComponentPlacement, getComponentStyle, getExcelDataValue, getExportAsImage, getFont, getFormat, getGetExcelValueEvent, getGuid, getHorAlignment, getIndicator, getLineSpacing, getMargins, getName, getNullValue, getString, getTagValue, getTextBrush, getTextFormat, getTextOptions, getType, getWYSIWYG, invokeEvents, InvokeGetExcelValue, InvokeRenderTo, measureString, OnGetExcelValue, packService, setBorder, setBrush, setCanBreak, setExcelDataValue, setExportAsImage, setFont, setFormat, setGetExcelValueEvent, setHorAlignment, setIndicator, setLineSpacing, setMargins, setNullValue, setString, setTextBrush, setTextFormat, setTextOptions, setType, setWYSIWYGMethods inherited from class com.stimulsoft.report.components.simplecomponents.StiSimpleText
checkDuplicates, getComponentGuid, getEditable, getEvents, getGetValueEvent, getGlobalizedName, getHideZeros, getLinesOfUnderlining, getOnlyText, getProcessAt, getProcessAtEnd, getQuickInfo, getText, getTextInternal, getTextValue, GetTextWithoutZero, getTotalValueHelp, InvokeGetValue, InvokeTextProcess, OnGetValue, ProcessText, RestoreState, saveState, SaveState, setComponentGuid, setEditable, setGetValueEvent, setGlobalizedName, setHideZeros, setLinesOfUnderlining, setOnlyText, setProcessAt, setProcessAtEnd, setText, setText, SetText, setTextInternal, SetTextInternal, setTextValue, setTotalValueHelpMethods inherited from class com.stimulsoft.report.components.StiComponent
addSize, AllowPrintOn, applyConditions, canContainIn, CheckForParentComponent, clearAllStates, ClearAllStates, ClearContents, clone, ComponentToPage, ComponentToPage, ComponentToPage, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, doPointer, doPointer, fillComponentPlacement, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getBuilder, getClickEvent, GetComponentStyle, getComponentType, getConditions, getContainer, getCurrentBookmark, getDataBand, GetDataBand, getDefaultClientRectangle, getDelimiterComponent, getDisplayRectangle, getDisplayRectangle1, getDockable, getDockRegion, getDockRegion, getDockStyle, getDoubleClickEvent, getDrillDownParameters, getEnabled, getExpressions, getForceRedrawAll, getGetBookmarkEvent, getGetDrillDownReportEvent, getGetHyperlinkEvent, getGetTagEvent, getGetToolTipEvent, getGroupHeaderBand, GetGroupHeaderBand, getGrowToHeight, 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, getRenderedCount, getReport, getRestrictions, getRight, getSelectionTick, getSelectRectangle, getServiceCategory, getServiceType, getShift, getShiftMode, getShowQuickButtons, getStates, getTag, getTagStrValue, 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, PageToComponent, PageToComponent, paint, PlacedOnColumnBand, Prepare, render, reset, Reset, restoreState, select, setAfterPrintEvent, setAlias, setAnchor, setBeforePrintEvent, setBookmark, setBookmarkValue, 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
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
getImageMethods inherited from interface com.stimulsoft.report.components.interfaces.IStiPrintOn
getPrintOn, setPrintOnMethods inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
getReference, setReference
-
Field Details
-
PropertyCellWidth
-
PropertyCellHeight
-
PropertyHorSpacing
-
PropertyVertSpacing
-
PropertyContinuousText
-
-
Constructor Details
-
StiTextInCells
public StiTextInCells()Creates a new StiTextInCells. -
StiTextInCells
Creates a new StiTextInCells.- Parameters:
rect- The rectangle describes size and position of the component.
-
StiTextInCells
Creates a new StiTextInCells.- Parameters:
rect- The rectangle describes sizes and position of the component.text- Text expression.
-
-
Method Details
-
getVertAlignment
Description copied from class:StiTextGets or sets the vertical alignment of an object.- Specified by:
getVertAlignmentin interfaceIStiVertAlignment- Overrides:
getVertAlignmentin classStiText
-
setVertAlignment
- Specified by:
setVertAlignmentin interfaceIStiVertAlignment- Overrides:
setVertAlignmentin classStiText
-
isExportAsImage
- Specified by:
isExportAsImagein interfaceIStiExportImageExtended- Overrides:
isExportAsImagein classStiText
-
convert
Converts a component out of one unit into another.- Specified by:
convertin interfaceIStiUnitConvert- Overrides:
convertin classStiComponent- Parameters:
oldUnit- Old units.newUnit- New units.
-
getAutoWidth
public boolean getAutoWidth()Description copied from class:StiTextGets or sets value indicates that this object can change width automatically.- Specified by:
getAutoWidthin interfaceIStiAutoWidth- Overrides:
getAutoWidthin classStiText
-
setAutoWidth
public void setAutoWidth(boolean value) - Specified by:
setAutoWidthin interfaceIStiAutoWidth- Overrides:
setAutoWidthin classStiText
-
getCanGrow
public boolean getCanGrow()Description copied from class:StiComponentgets or sets a value which indicates that this object can grow.- Specified by:
getCanGrowin interfaceIStiCanGrow- Overrides:
getCanGrowin classStiComponent
-
setCanGrow
public void setCanGrow(boolean value) - Specified by:
setCanGrowin interfaceIStiCanGrow- Overrides:
setCanGrowin classStiComponent
-
getCanShrink
public boolean getCanShrink()Description copied from class:StiComponentgets or sets value which indicates that this object can shrink.- Specified by:
getCanShrinkin interfaceIStiCanShrink- Overrides:
getCanShrinkin classStiComponent
-
setCanShrink
public void setCanShrink(boolean value) - Specified by:
setCanShrinkin interfaceIStiCanShrink- Overrides:
setCanShrinkin classStiComponent
-
getAllowHtmlTags
public boolean getAllowHtmlTags()Description copied from class:StiTextGets or sets value that indicates that this component allow Html tags in text.- Overrides:
getAllowHtmlTagsin classStiText
-
setAllowHtmlTags
public void setAllowHtmlTags(boolean value) - Overrides:
setAllowHtmlTagsin classStiText
-
getShrinkFontToFit
public boolean getShrinkFontToFit()Description copied from class:StiTextGets or sets value that indicates that this component is descrease size of font to fit content of component.- Overrides:
getShrinkFontToFitin classStiText
-
setShrinkFontToFit
public void setShrinkFontToFit(boolean value) - Overrides:
setShrinkFontToFitin classStiText
-
getShrinkFontToFitMinimumSize
public float getShrinkFontToFitMinimumSize()Description copied from class:StiTextGets or sets value that indicates minimum font size for ShrinkFontToFit operation.- Overrides:
getShrinkFontToFitMinimumSizein classStiText
-
setShrinkFontToFitMinimumSize
public void setShrinkFontToFitMinimumSize(float value) - Overrides:
setShrinkFontToFitMinimumSizein classStiText
-
getAngle
public float getAngle()Description copied from class:StiTextGets or sets angle of a text rotation. -
setAngle
public void setAngle(float value) -
getLinesOfUnderline
Description copied from class:StiSimpleTextGets or sets value indicates that it is necessary to lines of underline.- Specified by:
getLinesOfUnderlinein interfaceIStiText- Overrides:
getLinesOfUnderlinein classStiSimpleText
-
setLinesOfUnderline
- Specified by:
setLinesOfUnderlinein interfaceIStiText- Overrides:
setLinesOfUnderlinein classStiSimpleText
-
getMaxNumberOfLines
public int getMaxNumberOfLines()Description copied from class:StiSimpleTextGets or sets maximum number of lines which specify the limit of the height stretch.- Specified by:
getMaxNumberOfLinesin interfaceIStiText- Overrides:
getMaxNumberOfLinesin classStiSimpleText
-
setMaxNumberOfLines
public void setMaxNumberOfLines(int value) - Specified by:
setMaxNumberOfLinesin interfaceIStiText- Overrides:
setMaxNumberOfLinesin classStiSimpleText
-
getProcessingDuplicates
Description copied from class:StiSimpleTextGets or sets value which indicates how report engine processes duplicated values.- Specified by:
getProcessingDuplicatesin interfaceIStiText- Overrides:
getProcessingDuplicatesin classStiSimpleText
-
setProcessingDuplicates
- Specified by:
setProcessingDuplicatesin interfaceIStiText- Overrides:
setProcessingDuplicatesin classStiSimpleText
-
getRenderTo
Description copied from class:StiTextIn the property specify the Text component in what the text that is out of the current Text component bound will be continued to be output.- Overrides:
getRenderToin classStiText
-
setRenderTo
- Overrides:
setRenderToin classStiText
-
getToolboxPosition
public int getToolboxPosition()Gets value to sort a position in the toolbox.- Overrides:
getToolboxPositionin classStiText
-
getLocalizedCategory
Gets a localized name of the component category.- Overrides:
getLocalizedCategoryin classStiText
-
getLocalizedName
Gets a localized component name.- Overrides:
getLocalizedNamein classStiText
-
getCellWidth
public float getCellWidth()Gets or sets width of the cell. -
setCellWidth
public void setCellWidth(float value) -
getCellHeight
public float getCellHeight()Gets or sets height of the cell. -
setCellHeight
public void setCellHeight(float value) -
getHorSpacing
public float getHorSpacing()Gets or sets horizontal spacing between cells. -
setHorSpacing
public void setHorSpacing(float value) -
getVertSpacing
public float getVertSpacing()Gets or sets vertical spacing between cells. -
setVertSpacing
public void setVertSpacing(float value) -
getTextQuality
Description copied from class:StiTextGets or sets value that indicates quality of text.- Overrides:
getTextQualityin classStiText
-
setTextQuality
- Overrides:
setTextQualityin classStiText
-
getWordWrap
public boolean getWordWrap()Gets or sets word wrap.- Overrides:
getWordWrapin classStiText
-
setWordWrap
public void setWordWrap(boolean value) - Overrides:
setWordWrapin classStiText
-
getRightToLeft
public final boolean getRightToLeft()Gets or sets horizontal output direction.- Overrides:
getRightToLeftin classStiText
-
setRightToLeft
public final void setRightToLeft(boolean value) - Overrides:
setRightToLeftin classStiText
-
getContinuousText
public boolean getContinuousText()Gets or sets continuous text flag. -
setContinuousText
public void setContinuousText(boolean value) -
getExcelValue
Description copied from class:StiTextGets or sets an expression used for export data to Excel. Only for numeric values.- Overrides:
getExcelValuein classStiText
-
setExcelValue
- Overrides:
setExcelValuein classStiText
-
splitByCells
public static StiContainer splitByCells(StiTextInCells masterTextInCells, StiComponent renderedComponent, String textString) -
splitByCells
public static StiContainer splitByCells(StiTextInCells masterTextInCells, StiComponent renderedComponent, String textString, boolean measure) -
getTextForPaint
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiText- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiText- Throws:
JSONException
-