public class StiText extends StiSimpleText implements IStiTextOptions, IStiAutoWidth, IStiTextHorAlignment, IStiVertAlignment, IStiBorder, IStiFont, IStiBrush, IStiTextBrush, IStiTextFormat, IStiSerializable, IStiSerializableToAttributes, IStiBreakable, IStiExportImageExtended, IStiPrintOn, IStiIndicator, java.lang.Cloneable, IStiGlobalizationProvider
| Modifier and Type | Field and Description |
|---|---|
StiFont |
font |
protected static java.lang.Object |
PropertyAllowHtmlTags |
protected static java.lang.Object |
PropertyAutoWidth |
protected static java.lang.Object |
PropertyCanBreak |
protected static java.lang.Object |
PropertyExportAsImage |
protected static java.lang.Object |
PropertyMargins |
protected static java.lang.Object |
PropertyNullValue |
protected static java.lang.Object |
PropertyRenderTo |
protected static java.lang.Object |
PropertyShrinkFontToFit |
protected static java.lang.Object |
PropertyShrinkFontToFitMinimumSize |
protected static java.lang.Object |
PropertyTextQuality |
protected static java.lang.Object |
PropertyType |
PropertyGlobalizedName, PropertyMaxNumberOfLines, PropertyOnlyText, PropertyProcessAt, PropertyProcessingDuplicates, text, totalValueHelpcanGrow, canShrink, componentPlacement, conditions, interaction, isRendered, page, parent, parentBookmark, PropertyComponentStyle, PropertyDelimiterComponent, PropertyDockable, PropertyInherited, PropertyLinked, PropertyLocked, PropertyMaxSize, PropertyMinSize, PropertyPlaceOnToolbox, PropertyRenderedCount, PropertyRestrictions, PropertySelectionTick, PropertyShowQuickButtons, PropertyUseParentStyles, top, widthpropertiesREFERENCE_EMPTY, REFERENCE_REPORT| Constructor and Description |
|---|
StiText()
Creates a new StiText.
|
StiText(StiRectangle rect)
Creates a new StiText.
|
StiText(StiRectangle rect,
java.lang.String text)
Creates a new StiText.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Break(StiComponent dividedComponent,
double devideFactor,
StiRefObject<java.lang.Double> divideLine)
Occurs when the ExcelValue is calculated.
|
java.lang.Object |
clone()
Creates a new object that is a copy of the current instance.
|
StiRectangle |
convertTextBorders(StiRectangle rect,
boolean convert) |
StiRectangle |
convertTextMargins(StiRectangle rect,
boolean convert) |
StiFont |
getActualFont(StiExpression text,
float minFontSize) |
StiFont |
getActualFont(java.lang.String text) |
StiFont |
getActualFont(java.lang.String text,
float minFontSize) |
StiSize |
getActualSize()
Initializes a new instance of the StiSize class from the specified dimensi.
|
boolean |
getAllowHtmlTags()
Gets or sets value that indicates that this component allow Html tags in text.
|
java.lang.String[] |
getAllStrings()
Returns array of the property names which can be localized.
|
float |
getAngle()
Gets or sets angle of a text rotation.
|
boolean |
getAutoWidth()
Gets or sets value indicates that this object can change width automatically.
|
StiBorder |
getBorder()
Gets or sets frame of the component.
|
StiBrush |
getBrush()
Gets or sets a brush to fill a component.
|
boolean |
getCanBreak()
Gets or sets value which indicates whether the component can or cannot break its contents on
several pages.
|
StiRectangle |
getClientRectangle()
gets or sets the client area of a component.
|
java.lang.String |
getComponentPlacement()
gets or sets a value which indicates placement of a simple component.
|
java.lang.String |
getComponentStyle()
gets or sets a style of a component.
|
java.lang.String |
getExcelDataValue()
Gets or sets excel data value.
|
StiExcelValueExpression |
getExcelValue()
Gets or sets an expression used for export data to Excel.
|
boolean |
getExportAsImage()
Gets or sets value which indicates how content of text will be exported as image or as text.
|
StiFont |
getFont()
Gets or sets font of component.
|
java.lang.String |
getFormat() |
StiGetExcelValueEvent |
getGetExcelValueEvent()
Occurs when the ExcelValue is calculated.
|
java.lang.String |
getGuid()
gets or sets a guid of component.
|
StiTextHorAlignment |
getHorAlignment()
Gets or sets the text horizontal alignment.
|
StiIndicator |
getIndicator()
Gets or sets special indicator for text component.
|
java.lang.String |
getLocalizedCategory()
Gets a localized name of the component category.
|
java.lang.String |
getLocalizedName()
Gets a localized component name.
|
StiMargins |
getMargins()
Gets or sets text margins.
|
java.lang.String |
getName()
Gets or sets a component name.
|
java.lang.String |
getNullValue()
Gets or sets a value which shows instead null values.
|
java.lang.String |
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.
|
boolean |
getShrinkFontToFit()
Gets or sets value that indicates that this component is descrease size of font to fit
content of component.
|
float |
getShrinkFontToFitMinimumSize()
Gets or sets value that indicates minimum font size for ShrinkFontToFit operation.
|
java.lang.String |
getString(java.lang.String propertyName)
Gets localized string from specified property name.
|
java.lang.String |
getTagValue()
gets or sets tag of a component.
|
StiBrush |
getTextBrush()
Gets or sets a brush to draw text.
|
StiFormatService |
getTextFormat()
Gets or sets the format of the text.
|
StiTextOptions |
getTextOptions()
Gets or sets options to control of the text showing.
|
StiTextQuality |
getTextQuality()
Gets or sets value that indicates quality of text.
|
int |
getToolboxPosition()
Gets value to sort a position in the toolbox.
|
StiSystemTextType |
getType() |
StiVertAlignment |
getVertAlignment()
Gets or sets the vertical alignment of an object.
|
boolean |
getWordWrap()
Gets or sets word wrap.
|
boolean |
getWYSIWYG()
Gets or sets value that indicates that this component is to be output as WYSIWYG concept.
|
void |
invokeEvents()
Invokes all events for this components.
|
void |
InvokeRenderTo(StiSimpleText textFrom) |
boolean |
isExportAsImage(StiExportFormat format) |
void |
LoadFromJsonObject(JSONObject jObject) |
StiSize |
measureString() |
protected void |
OnGetExcelValue(StiGetExcelValueEventArgs e)
Raises the GetExcelValue event.
|
void |
packService()
Packs a service.
|
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode) |
void |
setAllowHtmlTags(boolean value) |
void |
setAngle(float value) |
void |
setAutoWidth(boolean value) |
void |
setBorder(StiBorder value) |
void |
setBrush(StiBrush value) |
void |
setCanBreak(boolean value) |
void |
setExcelDataValue(java.lang.String value) |
void |
setExcelValue(StiExcelValueExpression value) |
void |
setExportAsImage(boolean value) |
void |
setFont(StiFont value) |
void |
setFormat(java.lang.String value) |
void |
setGetExcelValueEvent(StiGetExcelValueEvent value) |
void |
setHorAlignment(StiTextHorAlignment value) |
void |
setIndicator(StiIndicator value) |
void |
setMargins(StiMargins value) |
void |
setNullValue(java.lang.String value) |
void |
setRenderTo(java.lang.String value) |
void |
setShrinkFontToFit(boolean value) |
void |
setShrinkFontToFitMinimumSize(float value) |
void |
setString(java.lang.String propertyName,
java.lang.String value)
Sets localized string to specified property name.
|
void |
setTextBrush(StiBrush value) |
void |
setTextFormat(StiFormatService value) |
void |
setTextOptions(StiTextOptions value) |
void |
setTextQuality(StiTextQuality value) |
void |
setType(StiSystemTextType value) |
void |
setVertAlignment(StiVertAlignment value) |
void |
setWordWrap(boolean value) |
void |
setWYSIWYG(boolean value) |
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, setTotalValueHelpaddSize, AllowPrintOn, applyConditions, canContainIn, CheckForParentComponent, clearAllStates, ClearAllStates, ClearContents, clone, ComponentToPage, ComponentToPage, ComponentToPage, convert, convert, decrementTop, doBookmark, DoBookmark, DockToContainer, DockToContainer, doGetBookmark, DoOffsetRect, fillComponentPlacement, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getBuilder, getCanGrow, getCanShrink, getClickEvent, getComponentType, getConditions, getContainer, getCurrentBookmark, getDataBand, GetDataBand, getDefaultClientRectangle, getDelimiterComponent, getDisplayRectangle, getDisplayRectangle1, getDockable, getDockRegion, getDockRegion, getDockStyle, getDoubleClickEvent, getDrillDownParameters, getEnabled, 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, getPrintable, getPrintOn, getPriority, getRenderedCount, getReport, getRestrictions, getRight, getSelectionTick, getSelectRectangle, getServiceCategory, getServiceType, getShift, getShiftMode, getShowQuickButtons, getStates, getTag, getToolTip, getToolTipValue, getTop, getUseParentStyles, getWidth, incrementtTop, InternalRender, invert, InvokeAfterPrint, InvokeBeforePrint, InvokeBeginRender, InvokeClick, InvokeDoubleClick, InvokeEndRender, InvokegetBookmark, InvokegetDrillDownReport, InvokegetHyperlink, InvokegetTag, InvokegetToolTip, InvokeMouseEnter, InvokeMouseLeave, InvokePainted, invokePainting, 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, 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, setPrintable, setPrintOn, setRenderedCount, setReport, SetReportVariables, setRestrictions, setSelectionTick, setSelectRectangle, setShift, setShiftMode, setShowQuickButtons, setStates, setTag, setTagValue, setToolTip, setToolTipValue, setTop, setTopProp, setUseParentStyles, setWidth, setWidthProp, toString, UnPreparegetServiceNamegetProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, properties, setProperties, setServiceEnabledcleanReference, getReference, setReferenceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetReference, setReferencegetImagegetImagegetPrintOn, setPrintOnprotected static java.lang.Object PropertyCanBreak
protected static java.lang.Object PropertyAutoWidth
protected static java.lang.Object PropertyRenderTo
public StiFont font
protected static java.lang.Object PropertyNullValue
protected static java.lang.Object PropertyType
protected static java.lang.Object PropertyExportAsImage
protected static java.lang.Object PropertyTextQuality
protected static java.lang.Object PropertyAllowHtmlTags
protected static java.lang.Object PropertyMargins
protected static java.lang.Object PropertyShrinkFontToFit
protected static java.lang.Object PropertyShrinkFontToFitMinimumSize
public StiText()
public StiText(StiRectangle rect)
rect - The rectangle describes size and position of the component.public StiText(StiRectangle rect, java.lang.String text)
rect - The rectangle describes sizes and position of the component.text - Text expression.public boolean Break(StiComponent dividedComponent, double devideFactor, StiRefObject<java.lang.Double> divideLine)
Break in interface IStiBreakabledividedComponent - Component for store part of content.public StiIndicator getIndicator()
public void setIndicator(StiIndicator value)
public boolean isExportAsImage(StiExportFormat format)
isExportAsImage in interface IStiExportImageExtendedisExportAsImage in class StiComponentpublic void setString(java.lang.String propertyName,
java.lang.String value)
setString in interface IStiGlobalizationProviderpublic java.lang.String getString(java.lang.String propertyName)
getString in interface IStiGlobalizationProviderpublic java.lang.String[] getAllStrings()
getAllStrings in interface IStiGlobalizationProviderpublic boolean getCanBreak()
getCanBreak in interface IStiBreakablepublic void setCanBreak(boolean value)
setCanBreak in interface IStiBreakablepublic boolean getAutoWidth()
getAutoWidth in interface IStiAutoWidthpublic void setAutoWidth(boolean value)
setAutoWidth in interface IStiAutoWidthpublic java.lang.String getRenderTo()
public void setRenderTo(java.lang.String value)
public void InvokeRenderTo(StiSimpleText textFrom)
InvokeRenderTo in class StiSimpleTextpublic boolean getWYSIWYG()
public void setWYSIWYG(boolean value)
public StiTextHorAlignment getHorAlignment()
getHorAlignment in interface IStiTextHorAlignmentpublic void setHorAlignment(StiTextHorAlignment value)
setHorAlignment in interface IStiTextHorAlignmentpublic StiVertAlignment getVertAlignment()
getVertAlignment in interface IStiVertAlignmentpublic void setVertAlignment(StiVertAlignment value)
setVertAlignment in interface IStiVertAlignmentpublic StiFont getFont()
public final StiBorder getBorder()
getBorder in interface IStiBorderpublic final void setBorder(StiBorder value)
setBorder in interface IStiBorderpublic final StiBrush getBrush()
public StiBrush getTextBrush()
getTextBrush in interface IStiTextBrushpublic void setTextBrush(StiBrush value)
setTextBrush in interface IStiTextBrushpublic StiFormatService getTextFormat()
getTextFormat in interface IStiTextFormatpublic void setTextFormat(StiFormatService value)
setTextFormat in interface IStiTextFormatpublic java.lang.String getFormat()
public void setFormat(java.lang.String value)
public StiTextOptions getTextOptions()
getTextOptions in interface IStiTextOptionspublic void setTextOptions(StiTextOptions value)
setTextOptions in interface IStiTextOptionspublic final StiRectangle convertTextMargins(StiRectangle rect, boolean convert)
public final StiRectangle convertTextBorders(StiRectangle rect, boolean convert)
public void packService()
StiComponentpackService in class StiComponentpublic int getToolboxPosition()
getToolboxPosition in class StiComponentpublic java.lang.String getLocalizedCategory()
getLocalizedCategory in class StiBasepublic java.lang.String getLocalizedName()
getLocalizedName in class StiBasepublic final java.lang.String getExcelDataValue()
public final void setExcelDataValue(java.lang.String value)
public StiExcelValueExpression getExcelValue()
public void setExcelValue(StiExcelValueExpression value)
public void invokeEvents()
invokeEvents in class StiComponentprotected void OnGetExcelValue(StiGetExcelValueEventArgs e)
public final StiGetExcelValueEvent getGetExcelValueEvent()
public final void setGetExcelValueEvent(StiGetExcelValueEvent value)
public final java.lang.String getNullValue()
public final void setNullValue(java.lang.String value)
public final StiSystemTextType getType()
public final void setType(StiSystemTextType value)
public boolean getWordWrap()
public void setWordWrap(boolean value)
public float getAngle()
public void setAngle(float value)
public boolean getExportAsImage()
public void setExportAsImage(boolean value)
public StiTextQuality getTextQuality()
public void setTextQuality(StiTextQuality value)
public boolean getAllowHtmlTags()
public void setAllowHtmlTags(boolean value)
public StiMargins getMargins()
public void setMargins(StiMargins value)
public boolean getShrinkFontToFit()
public void setShrinkFontToFit(boolean value)
public float getShrinkFontToFitMinimumSize()
public void setShrinkFontToFitMinimumSize(float value)
public final StiFont getActualFont(java.lang.String text)
public final StiFont getActualFont(StiExpression text, float minFontSize)
public final StiFont getActualFont(java.lang.String text, float minFontSize)
public java.lang.Object clone()
StiSimpleTextclone in class StiSimpleTextpublic StiSize getActualSize()
StiComponentgetActualSize in class StiComponentpublic StiRectangle getClientRectangle()
StiComponentgetClientRectangle in class StiComponentpublic java.lang.String getName()
StiBasepublic java.lang.String getComponentPlacement()
StiComponentgetComponentPlacement in class StiComponentpublic java.lang.String getGuid()
StiComponentgetGuid in interface IStiComponentGuidgetGuid in class StiComponentpublic java.lang.String getTagValue()
StiComponentgetTagValue in class StiComponentpublic java.lang.String getComponentStyle()
StiComponentgetComponentStyle in class StiComponentpublic StiSize measureString()
public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
SaveToJsonObject in interface IStiJsonReportObjectSaveToJsonObject in class StiSimpleTextJSONExceptionpublic void LoadFromJsonObject(JSONObject jObject) throws JSONException
LoadFromJsonObject in interface IStiJsonReportObjectLoadFromJsonObject in class StiSimpleTextJSONExceptionCopyright © 2019 Stimulsoft. All Rights Reserved.