Class StiLegend
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.report.chart.view.legend.StiLegend
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiSerializeToCodeAsClass,IStiLegend,Cloneable
public class StiLegend
extends StiSerializedObject
implements IStiLegend, IStiSerializeToCodeAsClass, Cloneable
-
Field Summary
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Objectclone()Creates a new object that is a copy of the current instance.final booleanGets or sets value which indicates that chart style will be used.final StiColorGets or sets border color.final StiBrushgetBrush()Gets or sets background brush of legend.final IStiChartgetChart()final intGets or sets amount of columns.intfinal StiLegendCoreXFgetCore()Gets or sets direction which used for series drawing in legend.final StiFontgetFont()Gets or sets font which used for series title drawing in chart legend.final booleanGets or sets value which shows/hides series with empty title.Gets or sets horizontal alignment of legend placement.final intGets or sets horizontal spacing between items in legend.final StiColorGets or sets color of the labels.Gets or sets alignment of markers related to series title.booleanfinal StiSizeGets or sets marker size.final booleanGets or sets visibility of markers.final booleanGets or sets value which indicates draw shadow or no.final StiSizegetSize()Gets or sets size of legend.final StringgetTitle()Gets or sets title of the legend.final StiColorGets or sets title color of legend.final StiFontGets or sets title font of the chart legend.Gets or sets vertical alignment of legend placement.final intGets or sets vertical spacing between items in legend.final booleanGets or sets visibility of chart legend.booleanvoidLoadFromJsonObject(JSONObject jObject) final voidsetAllowApplyStyle(boolean value) final voidsetBorderColor(StiColor value) final voidfinal voidfinal voidsetColumns(int value) voidsetColumnWidth(int columnWidth) final voidsetCore(StiLegendCoreXF value) voidsetDirection(StiLegendDirection value) final voidfinal voidsetHideSeriesWithEmptyTitle(boolean value) voidfinal voidsetHorSpacing(int value) final voidsetLabelsColor(StiColor value) voidvoidsetMarkerBorder(boolean value) final voidsetMarkerSize(StiSize value) final voidsetMarkerVisible(boolean value) final voidsetShowShadow(boolean value) final voidfinal voidfinal voidsetTitleColor(StiColor value) final voidsetTitleFont(StiFont value) voidfinal voidsetVertSpacing(int value) final voidsetVisible(boolean value) voidsetWordWrap(boolean wordWrap) Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReferenceMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
getReference, setReference
-
Constructor Details
-
StiLegend
public StiLegend()
-
-
Method Details
-
clone
Creates a new object that is a copy of the current instance.- Specified by:
clonein interfaceIStiLegend- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
getCore
- Specified by:
getCorein interfaceIStiLegend
-
setCore
- Specified by:
setCorein interfaceIStiLegend
-
getAllowApplyStyle
public final boolean getAllowApplyStyle()Gets or sets value which indicates that chart style will be used.- Specified by:
getAllowApplyStylein interfaceIStiLegend
-
setAllowApplyStyle
public final void setAllowApplyStyle(boolean value) - Specified by:
setAllowApplyStylein interfaceIStiLegend
-
getChart
- Specified by:
getChartin interfaceIStiLegend
-
setChart
- Specified by:
setChartin interfaceIStiLegend
-
getHideSeriesWithEmptyTitle
public final boolean getHideSeriesWithEmptyTitle()Gets or sets value which shows/hides series with empty title.- Specified by:
getHideSeriesWithEmptyTitlein interfaceIStiLegend
-
setHideSeriesWithEmptyTitle
public final void setHideSeriesWithEmptyTitle(boolean value) - Specified by:
setHideSeriesWithEmptyTitlein interfaceIStiLegend
-
getShowShadow
public final boolean getShowShadow()Gets or sets value which indicates draw shadow or no.- Specified by:
getShowShadowin interfaceIStiLegend
-
setShowShadow
public final void setShowShadow(boolean value) - Specified by:
setShowShadowin interfaceIStiLegend
-
getBorderColor
Gets or sets border color.- Specified by:
getBorderColorin interfaceIStiLegend
-
setBorderColor
- Specified by:
setBorderColorin interfaceIStiLegend
-
getBrush
Gets or sets background brush of legend.- Specified by:
getBrushin interfaceIStiLegend
-
setBrush
- Specified by:
setBrushin interfaceIStiLegend
-
getTitleColor
Gets or sets title color of legend.- Specified by:
getTitleColorin interfaceIStiLegend
-
setTitleColor
- Specified by:
setTitleColorin interfaceIStiLegend
-
getLabelsColor
Gets or sets color of the labels.- Specified by:
getLabelsColorin interfaceIStiLegend
-
setLabelsColor
- Specified by:
setLabelsColorin interfaceIStiLegend
-
getDirection
Gets or sets direction which used for series drawing in legend.- Specified by:
getDirectionin interfaceIStiLegend
-
setDirection
- Specified by:
setDirectionin interfaceIStiLegend
-
getHorAlignment
Gets or sets horizontal alignment of legend placement.- Specified by:
getHorAlignmentin interfaceIStiLegend
-
setHorAlignment
- Specified by:
setHorAlignmentin interfaceIStiLegend
-
getVertAlignment
Gets or sets vertical alignment of legend placement.- Specified by:
getVertAlignmentin interfaceIStiLegend
-
setVertAlignment
- Specified by:
setVertAlignmentin interfaceIStiLegend
-
getTitleFont
Gets or sets title font of the chart legend.- Specified by:
getTitleFontin interfaceIStiLegend
-
setTitleFont
- Specified by:
setTitleFontin interfaceIStiLegend
-
getFont
Gets or sets font which used for series title drawing in chart legend.- Specified by:
getFontin interfaceIStiLegend
-
setFont
- Specified by:
setFontin interfaceIStiLegend
-
getVisible
public final boolean getVisible()Gets or sets visibility of chart legend.- Specified by:
getVisiblein interfaceIStiLegend
-
setVisible
public final void setVisible(boolean value) - Specified by:
setVisiblein interfaceIStiLegend
-
getMarkerVisible
public final boolean getMarkerVisible()Gets or sets visibility of markers.- Specified by:
getMarkerVisiblein interfaceIStiLegend
-
setMarkerVisible
public final void setMarkerVisible(boolean value) - Specified by:
setMarkerVisiblein interfaceIStiLegend
-
getMarkerBorder
public boolean getMarkerBorder()- Specified by:
getMarkerBorderin interfaceIStiLegend
-
setMarkerBorder
public void setMarkerBorder(boolean value) - Specified by:
setMarkerBorderin interfaceIStiLegend
-
getMarkerSize
Gets or sets marker size.- Specified by:
getMarkerSizein interfaceIStiLegend
-
setMarkerSize
- Specified by:
setMarkerSizein interfaceIStiLegend
-
getMarkerAlignment
Gets or sets alignment of markers related to series title.- Specified by:
getMarkerAlignmentin interfaceIStiLegend
-
setMarkerAlignment
- Specified by:
setMarkerAlignmentin interfaceIStiLegend
-
getColumns
public final int getColumns()Gets or sets amount of columns.- Specified by:
getColumnsin interfaceIStiLegend
-
setColumns
public final void setColumns(int value) - Specified by:
setColumnsin interfaceIStiLegend
-
getHorSpacing
public final int getHorSpacing()Gets or sets horizontal spacing between items in legend.- Specified by:
getHorSpacingin interfaceIStiLegend
-
setHorSpacing
public final void setHorSpacing(int value) - Specified by:
setHorSpacingin interfaceIStiLegend
-
getVertSpacing
public final int getVertSpacing()Gets or sets vertical spacing between items in legend.- Specified by:
getVertSpacingin interfaceIStiLegend
-
setVertSpacing
public final void setVertSpacing(int value) - Specified by:
setVertSpacingin interfaceIStiLegend
-
getSize
Gets or sets size of legend.- Specified by:
getSizein interfaceIStiLegend
-
setSize
- Specified by:
setSizein interfaceIStiLegend
-
getTitle
Gets or sets title of the legend.- Specified by:
getTitlein interfaceIStiLegend
-
setTitle
- Specified by:
setTitlein interfaceIStiLegend
-
getColumnWidth
public int getColumnWidth()- Specified by:
getColumnWidthin interfaceIStiLegend
-
setColumnWidth
public void setColumnWidth(int columnWidth) - Specified by:
setColumnWidthin interfaceIStiLegend
-
isWordWrap
public boolean isWordWrap()- Specified by:
isWordWrapin interfaceIStiLegend
-
setWordWrap
public void setWordWrap(boolean wordWrap) - Specified by:
setWordWrapin interfaceIStiLegend
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-