Class StiText
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
- 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
- Direct Known Subclasses:
StiContourText,StiCrossField,StiSystemText,StiTableCell,StiTextInCells
public class StiText
extends StiSimpleText
implements IStiTextOptions, IStiAutoWidth, IStiTextHorAlignment, IStiVertAlignment, IStiBorder, IStiFont, IStiBrush, IStiTextBrush, IStiTextFormat, IStiSerializable, IStiSerializableToAttributes, IStiBreakable, IStiExportImageExtended, IStiPrintOn, IStiIndicator, Cloneable, IStiGlobalizationProvider
Describes the class that realizes the component - Text.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Objectprotected static Objectprotected static Objectprotected static Objectprotected static Objectprotected static Objectprotected static Objectprotected static Objectprotected static Objectprotected static Objectprotected static Objectprotected static ObjectFields 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
ConstructorsConstructorDescriptionStiText()Creates a new StiText.StiText(StiRectangle rect) Creates a new StiText.StiText(StiRectangle rect, String text) Creates a new StiText. -
Method Summary
Modifier and TypeMethodDescriptionbooleanBreak(StiComponent dividedComponent, double devideFactor, StiRefObject<Double> divideLine, StiRefObject<Boolean> haveBreaked) Occurs when the ExcelValue is calculated.booleanclone()Creates a new object that is a copy of the current instance.final StiRectangleconvertTextBorders(StiRectangle rect, boolean convert) final StiRectangleconvertTextMargins(StiRectangle rect, boolean convert) final StiFontgetActualFont(StiExpression text, float minFontSize) final StiFontgetActualFont(String text) final StiFontgetActualFont(String text, float minFontSize) Initializes a new instance of the StiSize class from the specified dimensi.booleanGets or sets value that indicates that this component allow Html tags in text.String[]Returns array of the property names which can be localized.floatgetAngle()Gets or sets angle of a text rotation.booleanGets or sets value indicates that this object can change width automatically.final StiBorderGets or sets frame of the component.final StiBrushgetBrush()Gets or sets a brush to fill a component.booleanGets or sets value which indicates whether the component can or cannot break its contents on several pages.gets or sets the client area of a component.gets or sets a value which indicates placement of a simple component.gets or sets a style of a component.final StringGets or sets excel data value.Gets or sets an expression used for export data to Excel.booleanGets or sets value which indicates how content of text will be exported as image or as text.getFont()Gets or sets font of component.final StiGetExcelValueEventOccurs when the ExcelValue is calculated.getGuid()gets or sets a guid of component.Gets or sets the text horizontal alignment.Gets or sets special indicator for text component.floatGets a localized name of the component category.Gets a localized component name.Gets or sets text margins.getName()Gets or sets a component name.final StringGets or sets a value which shows instead null 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.booleanbooleanGets 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 localized string from specified property name.gets or sets tag of a component.Gets or sets a brush to draw text.Gets or sets the format of the text.Gets or sets options to control of the text showing.Gets or sets value that indicates quality of text.intGets value to sort a position in the toolbox.final StiSystemTextTypegetType()Gets or sets the vertical alignment of an object.booleanGets or sets word wrap.booleanGets or sets value that indicates that this component is to be output as WYSIWYG concept.voidInvokes all events for this components.voidvoidInvokeRenderTo(StiSimpleText textFrom) booleanisExportAsImage(StiExportFormat format) voidLoadFromJsonObject(JSONObject jObject) protected voidRaises the GetExcelValue event.voidPacks a service.voidsetAllowHtmlTags(boolean value) voidsetAngle(float value) voidsetAutoWidth(boolean value) final voidfinal voidvoidsetCanBreak(boolean value) final voidsetExcelDataValue(String value) voidvoidsetExportAsImage(boolean value) voidvoidfinal voidvoidvoidsetIndicator(StiIndicator value) voidsetLineSpacing(float lineSpacing) voidsetMargins(StiMargins value) final voidsetNullValue(String value) voidsetRenderTo(String value) voidsetRightToLeft(boolean value) voidsetShrinkFontToFit(boolean value) voidsetShrinkFontToFitMinimumSize(float value) voidSets localized string to specified property name.voidsetTextBrush(StiBrush value) voidsetTextFormat(StiFormatService value) voidsetTextOptions(StiTextOptions value) voidsetTextQuality(StiTextQuality value) final voidsetType(StiSystemTextType value) voidsetVertAlignment(StiVertAlignment value) voidsetWordWrap(boolean value) voidsetWYSIWYG(boolean value) Methods inherited from class com.stimulsoft.report.components.simplecomponents.StiSimpleText
checkDuplicates, getComponentGuid, getEditable, getEvents, getGetValueEvent, getGlobalizedName, getHideZeros, getLinesOfUnderline, getLinesOfUnderlining, getMaxNumberOfLines, getOnlyText, getProcessAt, getProcessAtEnd, getProcessingDuplicates, getQuickInfo, getText, getTextInternal, getTextValue, GetTextWithoutZero, getTotalValueHelp, InvokeGetValue, InvokeTextProcess, OnGetValue, ProcessText, RestoreState, saveState, SaveState, setComponentGuid, setEditable, setGetValueEvent, setGlobalizedName, setHideZeros, setLinesOfUnderline, setLinesOfUnderlining, setMaxNumberOfLines, setOnlyText, setProcessAt, setProcessAtEnd, setProcessingDuplicates, 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, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, doPointer, doPointer, fillComponentPlacement, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getBuilder, getCanGrow, getCanShrink, 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, 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
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
-
PropertyCanBreak
-
PropertyAutoWidth
-
PropertyRenderTo
-
font
-
PropertyNullValue
-
PropertyType
-
PropertyExportAsImage
-
PropertyTextQuality
-
PropertyAllowHtmlTags
-
PropertyMargins
-
PropertyShrinkFontToFit
-
PropertyShrinkFontToFitMinimumSize
-
PropertyLineSpacing
-
-
Constructor Details
-
StiText
public StiText()Creates a new StiText. -
StiText
Creates a new StiText.- Parameters:
rect- The rectangle describes size and position of the component.
-
StiText
Creates a new StiText.- Parameters:
rect- The rectangle describes sizes and position of the component.text- Text expression.
-
-
Method Details
-
Break
public boolean Break(StiComponent dividedComponent, double devideFactor, StiRefObject<Double> divideLine, StiRefObject<Boolean> haveBreaked) Occurs when the ExcelValue is calculated.- Specified by:
Breakin interfaceIStiBreakable- Parameters:
dividedComponent- Component for store part of content.- Returns:
- If true, then component is successful divided.
-
getIndicator
Gets or sets special indicator for text component. -
setIndicator
-
isExportAsImage
- Specified by:
isExportAsImagein interfaceIStiExportImageExtended- Overrides:
isExportAsImagein classStiComponent
-
setString
Sets localized string to specified property name.- Specified by:
setStringin interfaceIStiGlobalizationProvider- Parameters:
propertyName-value-
-
getString
Gets localized string from specified property name.- Specified by:
getStringin interfaceIStiGlobalizationProvider- Parameters:
propertyName-- Returns:
-
getAllStrings
Returns array of the property names which can be localized.- Specified by:
getAllStringsin interfaceIStiGlobalizationProvider- Returns:
- Returns array of the property names which can be localized.
-
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
-
getAutoWidth
public boolean getAutoWidth()Gets or sets value indicates that this object can change width automatically.- Specified by:
getAutoWidthin interfaceIStiAutoWidth
-
setAutoWidth
public void setAutoWidth(boolean value) - Specified by:
setAutoWidthin interfaceIStiAutoWidth
-
getRenderTo
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. -
setRenderTo
-
InvokeRenderTo
- Overrides:
InvokeRenderToin classStiSimpleText
-
getWYSIWYG
public boolean getWYSIWYG()Gets or sets value that indicates that this component is to be output as WYSIWYG concept. -
setWYSIWYG
public void setWYSIWYG(boolean value) -
getHorAlignment
Gets or sets the text horizontal alignment.- Specified by:
getHorAlignmentin interfaceIStiTextHorAlignment
-
setHorAlignment
- Specified by:
setHorAlignmentin interfaceIStiTextHorAlignment
-
getVertAlignment
Gets or sets the vertical alignment of an object.- Specified by:
getVertAlignmentin interfaceIStiVertAlignment
-
setVertAlignment
- Specified by:
setVertAlignmentin interfaceIStiVertAlignment
-
getFont
Gets or sets font of component. -
setFont
-
getBorder
Gets or sets frame of the component.- Specified by:
getBorderin interfaceIStiBorder
-
setBorder
- Specified by:
setBorderin interfaceIStiBorder
-
getBrush
Gets or sets a brush to fill a component. -
setBrush
-
getTextBrush
Gets or sets a brush to draw text.- Specified by:
getTextBrushin interfaceIStiTextBrush
-
setTextBrush
- Specified by:
setTextBrushin interfaceIStiTextBrush
-
getTextFormat
Gets or sets the format of the text.- Specified by:
getTextFormatin interfaceIStiTextFormat
-
setTextFormat
- Specified by:
setTextFormatin interfaceIStiTextFormat
-
getFormat
-
setFormat
-
getTextOptions
Gets or sets options to control of the text showing.- Specified by:
getTextOptionsin interfaceIStiTextOptions
-
setTextOptions
- Specified by:
setTextOptionsin interfaceIStiTextOptions
-
convertTextMargins
-
convertTextBorders
-
packService
public void packService()Description copied from class:StiComponentPacks a service.- Overrides:
packServicein classStiComponent
-
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
-
getExcelDataValue
Gets or sets excel data value. -
setExcelDataValue
-
getExcelValue
Gets or sets an expression used for export data to Excel. Only for numeric values. -
setExcelValue
-
invokeEvents
public void invokeEvents()Invokes all events for this components.- Overrides:
invokeEventsin classStiComponent
-
OnGetExcelValue
Raises the GetExcelValue event. -
InvokeGetExcelValue
-
getGetExcelValueEvent
Occurs when the ExcelValue is calculated. -
setGetExcelValueEvent
-
getNullValue
Gets or sets a value which shows instead null values. -
setNullValue
-
getType
-
setType
-
getWordWrap
public boolean getWordWrap()Gets or sets word wrap. -
setWordWrap
public void setWordWrap(boolean value) -
getRightToLeft
public boolean getRightToLeft() -
setRightToLeft
public void setRightToLeft(boolean value) -
getAngle
public float getAngle()Gets or sets angle of a text rotation. -
setAngle
public void setAngle(float value) -
getExportAsImage
public boolean getExportAsImage()Gets or sets value which indicates how content of text will be exported as image or as text. -
setExportAsImage
public void setExportAsImage(boolean value) -
getTextQuality
Gets or sets value that indicates quality of text. -
setTextQuality
-
getAllowHtmlTags
public boolean getAllowHtmlTags()Gets or sets value that indicates that this component allow Html tags in text. -
setAllowHtmlTags
public void setAllowHtmlTags(boolean value) -
getMargins
Gets or sets text margins. -
setMargins
-
getLineSpacing
public float getLineSpacing()- Returns:
- the propertyLineSpacing
-
setLineSpacing
public void setLineSpacing(float lineSpacing) - Parameters:
propertyLineSpacing- the propertyLineSpacing to set
-
getShrinkFontToFit
public boolean getShrinkFontToFit()Gets or sets value that indicates that this component is descrease size of font to fit content of component. -
setShrinkFontToFit
public void setShrinkFontToFit(boolean value) -
getShrinkFontToFitMinimumSize
public float getShrinkFontToFitMinimumSize()Gets or sets value that indicates minimum font size for ShrinkFontToFit operation. -
setShrinkFontToFitMinimumSize
public void setShrinkFontToFitMinimumSize(float value) -
getActualFont
-
getActualFont
-
getActualFont
-
clone
Description copied from class:StiSimpleTextCreates a new object that is a copy of the current instance.- Overrides:
clonein classStiSimpleText- Returns:
- A new object that is a copy of this instance.
-
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.
-
getClientRectangle
Description copied from class:StiComponentgets or sets the client area of a component.- Overrides:
getClientRectanglein classStiComponent
-
getName
Description copied from class:StiBaseGets or sets a component name. -
getComponentPlacement
Description copied from class:StiComponentgets or sets a value which indicates placement of a simple component. Available values: "rt" - StiReportTitleBand "rs" - StiReportSummaryBand "ph" - StiPageHeaderBand "pf" - StiPageFooterBand "h" - StiHeaderBand "h.ap" - StiHeaderBand (OnAllPages) "f" - StiFooterBand "f.ap" - StiFooterBand (OnAllPages) "d" - StiDataBand "gh" - StiGroupHeaderBand "gf" - StiGroupFooterBand "e" - StiEmptyBand "p" - StiPage- Overrides:
getComponentPlacementin classStiComponent
-
getGuid
Description copied from class:StiComponentgets or sets a guid of component.- Specified by:
getGuidin interfaceIStiComponentGuid- Overrides:
getGuidin classStiComponent
-
getTagValue
Description copied from class:StiComponentgets or sets tag of a component.- Overrides:
getTagValuein classStiComponent
-
getComponentStyle
Description copied from class:StiComponentgets or sets a style of a component.- Overrides:
getComponentStylein classStiComponent
-
measureString
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiSimpleText- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiSimpleText- Throws:
JSONException
-
checkAllowHtmlTags
public boolean checkAllowHtmlTags()
-