Package com.stimulsoft.report.styles
Class StiStyle
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.report.styles.StiBaseStyle
com.stimulsoft.report.styles.StiStyle
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiName,Cloneable
Describes the class that contains a style for components.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stimulsoft.report.styles.StiBaseStyle
StiBaseStyle.StiStyleSaver -
Field Summary
Fields inherited from class com.stimulsoft.report.styles.StiBaseStyle
reportFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionStiStyle()Creates a new object of the type StiStyle.Creates a new object of the type StiStyle.Creates a new object of the type StiStyle.Creates a new object of the type StiStyle. -
Method Summary
Modifier and TypeMethodDescriptionclone()final booleanGets or sets a value which indicates whether a report engine can use Border formatting or not.final booleanGets or sets a value which indicates whether a report engine can use Border Sides or not.booleanfinal booleanGets or sets a value which indicates whether a report engine can use Brush formatting or not.final booleanGets or sets a value which indicates whether a report engine can use Font formatting or not.final booleanGets or sets a value which indicates whether a report engine can use HorAlignment formatting or not.final booleanGets or sets a value which indicates whether a report engine can use Image formatting or not.final booleanGets or sets a value which indicates whether a report engine can use TextBrush formatting or not.final booleanGets or sets a value which indicates whether a report engine can use TextOptions formatting or not.final booleanGets or sets a value which indicates whether a report engine can use VertAlignment formatting or not.final StiBorderGets or sets frame of the component.final StiBrushgetBrush()Gets or sets a brush to fill a style.final StiFontgetFont()Gets or sets font of style.Gets or sets the style horizontal alignment.final StringgetImage()Gets or sets the image to fill Image property of Image component.floatfinal StiStyleCodeGets or sets a value which indicates on which band in a report this style can be apply when applying style automatically.voidGetStyleFromComponent(StiComponent component, StiStyleElements styleElements) Gets a style from the component.final voidGetStyleFromComponent(StiComponent component, StiStyleElements styleElements, StiBaseStyle componentStyle) Gets a style from the component.final StiBrushGets or sets a brush to draw text.the format of the component.final StiTextOptionsDo not use this property.Gets or sets the vertical alignment of an style.booleanbooleana value which indicates whether a report engine can use Text FormatvoidLoadFromJsonObject(JSONObject jObject) final voidsetAllowUseBorderFormatting(boolean value) final voidsetAllowUseBorderSides(boolean value) voidsetAllowUseborderSidesFromLocation(boolean allowUseborderSidesFromLocation) final voidsetAllowUseBrush(boolean value) final voidsetAllowUseFont(boolean value) final voidsetAllowUseHorAlignment(boolean value) final voidsetAllowUseImage(boolean value) voidsetAllowUseNegativeTextBrush(boolean allowUseNegativeTextBrush) final voidsetAllowUseTextBrush(boolean value) voidsetAllowUseTextFormat(boolean allowUseTextFormat) a value which indicates whether a report engine can use Text Formatfinal voidsetAllowUseTextOptions(boolean value) final voidsetAllowUseVertAlignment(boolean value) final voidfinal voidfinal voidvoidfinal voidvoidsetLineSpacing(float lineSpacing) voidsetNegativeTextBrush(StiBrush negativeTextBrush) final voidsetStyleCode(StiStyleCode value) voidSetStyleToComponent(StiComponent component) Sets style to a component.final voidsetTextBrush(StiBrush value) voidsetTextFormat(StiFormatService textFormat) the format of the component.final voidsetTextOptions(StiTextOptions value) voidsetVertAlignment(StiVertAlignment value) Methods inherited from class com.stimulsoft.report.styles.StiBaseStyle
equals, getCollectionName, getConditions, getDescription, getName, getStyle, getStyle, getStyle, getStyle, GetStyleFromComponents, loadStyleFromString, saveToString, setCollectionName, setConditions, setDescription, setName, toStringMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
-
Constructor Details
-
StiStyle
Creates a new object of the type StiStyle.- Parameters:
name- Style name.description- Style description.
-
StiStyle
Creates a new object of the type StiStyle.- Parameters:
name- Style name.description- Style description.
-
StiStyle
Creates a new object of the type StiStyle.- Parameters:
name- Style name.
-
StiStyle
public StiStyle()Creates a new object of the type StiStyle.
-
-
Method Details
-
clone
- Overrides:
clonein classStiBaseStyle
-
getHorAlignment
Gets or sets the style horizontal alignment. -
setHorAlignment
-
getVertAlignment
Gets or sets the vertical alignment of an style. -
setVertAlignment
-
getFont
Gets or sets font of style. -
setFont
-
getBorder
Gets or sets frame of the component. -
setBorder
-
getBrush
Gets or sets a brush to fill a style. -
setBrush
-
getTextBrush
Gets or sets a brush to draw text. -
setTextBrush
-
getTextOptions
Do not use this property. -
setTextOptions
-
getAllowUseHorAlignment
public final boolean getAllowUseHorAlignment()Gets or sets a value which indicates whether a report engine can use HorAlignment formatting or not. -
setAllowUseHorAlignment
public final void setAllowUseHorAlignment(boolean value) -
getAllowUseVertAlignment
public final boolean getAllowUseVertAlignment()Gets or sets a value which indicates whether a report engine can use VertAlignment formatting or not. -
setAllowUseVertAlignment
public final void setAllowUseVertAlignment(boolean value) -
getAllowUseImage
public final boolean getAllowUseImage()Gets or sets a value which indicates whether a report engine can use Image formatting or not. -
setAllowUseImage
public final void setAllowUseImage(boolean value) -
getAllowUseFont
public final boolean getAllowUseFont()Gets or sets a value which indicates whether a report engine can use Font formatting or not. -
setAllowUseFont
public final void setAllowUseFont(boolean value) -
getAllowUseBorderFormatting
public final boolean getAllowUseBorderFormatting()Gets or sets a value which indicates whether a report engine can use Border formatting or not. -
setAllowUseBorderFormatting
public final void setAllowUseBorderFormatting(boolean value) -
setAllowUseborderSidesFromLocation
public void setAllowUseborderSidesFromLocation(boolean allowUseborderSidesFromLocation) -
getAllowUseborderSidesFromLocation
public boolean getAllowUseborderSidesFromLocation() -
getAllowUseBorderSides
public final boolean getAllowUseBorderSides()Gets or sets a value which indicates whether a report engine can use Border Sides or not. -
setAllowUseBorderSides
public final void setAllowUseBorderSides(boolean value) -
getAllowUseBrush
public final boolean getAllowUseBrush()Gets or sets a value which indicates whether a report engine can use Brush formatting or not. -
setAllowUseBrush
public final void setAllowUseBrush(boolean value) -
getAllowUseTextBrush
public final boolean getAllowUseTextBrush()Gets or sets a value which indicates whether a report engine can use TextBrush formatting or not. -
setAllowUseTextBrush
public final void setAllowUseTextBrush(boolean value) -
getAllowUseTextOptions
public final boolean getAllowUseTextOptions()Gets or sets a value which indicates whether a report engine can use TextOptions formatting or not. -
setAllowUseTextOptions
public final void setAllowUseTextOptions(boolean value) -
GetStyleFromComponent
Gets a style from the component.- Specified by:
GetStyleFromComponentin classStiBaseStyle- Parameters:
component- Component.
-
GetStyleFromComponent
public final void GetStyleFromComponent(StiComponent component, StiStyleElements styleElements, StiBaseStyle componentStyle) Gets a style from the component.- Parameters:
component- ComponentstyleElements- Elements of stylecomponentStyle- Odd/Even/Component style of component, if present
-
SetStyleToComponent
Sets style to a component.- Specified by:
SetStyleToComponentin classStiBaseStyle- Parameters:
component- Component.
-
getStyleCode
Gets or sets a value which indicates on which band in a report this style can be apply when applying style automatically. -
setStyleCode
-
getImage
Gets or sets the image to fill Image property of Image component. -
setImage
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiBaseStyle- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiBaseStyle- Throws:
JSONException
-
isAllowUseTextFormat
public boolean isAllowUseTextFormat()a value which indicates whether a report engine can use Text Format- Returns:
- the allowUseTextFormat
-
setAllowUseTextFormat
public void setAllowUseTextFormat(boolean allowUseTextFormat) a value which indicates whether a report engine can use Text Format- Parameters:
allowUseTextFormat- the allowUseTextFormat to set
-
getTextFormat
the format of the component.- Returns:
- the textFormat
-
setTextFormat
the format of the component.- Parameters:
textFormat- the textFormat to set
-
getLineSpacing
public float getLineSpacing()- Returns:
- the lineSpacing
-
setLineSpacing
public void setLineSpacing(float lineSpacing) - Parameters:
lineSpacing- the lineSpacing to set
-
isAllowUseNegativeTextBrush
public boolean isAllowUseNegativeTextBrush() -
setAllowUseNegativeTextBrush
public void setAllowUseNegativeTextBrush(boolean allowUseNegativeTextBrush) -
getNegativeTextBrush
-
setNegativeTextBrush
-