Class StiSparkline
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.StiSparkline
- All Implemented Interfaces:
IStiAppExpressionCollection,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiName,IStiBorder,IStiBrush,IStiCanGrow,IStiCanShrink,IStiComponentGuid,IStiConditions,IStiDataRelation,IStiExportImage,IStiExportImageExtended,IStiGrowToHeight,IStiInteraction,IStiPrintOn,IStiSelect,IStiShift,IStiUnitConvert,IStiReportProperty,IStiInherited,IStiStateSaveRestore,Cloneable
public class StiSparkline
extends StiComponent
implements IStiExportImageExtended, IStiDataRelation, IStiBorder, IStiBrush
Copyright Stimulsoft
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleandouble[]Fields 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 StiSparkline.StiSparkline(StiRectangle rect) Creates a new StiSparkline. -
Method Summary
Modifier and TypeMethodDescriptionclone(boolean cloneProperties) Creates a new object that is a copy of the current instance.booleandouble[]Gets or sets border of the component.getBrush()Gets or sets a brush to fill a component.booleangets or sets a value which indicates that this object can grow.booleangets or sets value which indicates that this object can shrink.Get link that is used for master-detail reports rendering.Gets or sets relation name.gets the default client area of a component.getImage(double zoom) getImage(double zoom, StiExportFormat format) Gets a localized name of the component category.Gets a localized component name.Gets or sets a back color.Gets or sets a back color.intgets a component priority.Gets the type of processing when printing.intgetType()Gets or sets a name of the column that contains the values.booleanisExportAsImage(StiExportFormat format) booleanGets or sets the value which indicates that first and last points should be show.booleanGets or sets the value which indicates that high and low points should be show.voidLoadFromJsonObject(JSONObject jObject) voidvoidvoidsetDataRelationName(String dataRelationName) voidsetNegativeColor(StiColor negativeColor) voidsetPositiveColor(StiColor positiveColor) voidsetShowFirstLastPoints(boolean showFirstLastPoints) voidsetShowHighLowPoints(boolean showHighLowPoints) voidsetType(StiSparklineType type) voidsetValueDataColumn(String value) Gets or sets a name of the column that contains the values.voidsetValuesContainer(String value) booleanMethods 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, getActualSize, getAfterPrintEvent, getAlias, getAllowDelete, getAnchor, getBeforePrintEvent, getBookmark, getBookmarkValue, getBottom, getBuilder, getClickEvent, getClientRectangle, getComponentPlacement, getComponentStyle, GetComponentStyle, getComponentType, getConditions, getContainer, getCurrentBookmark, getDataBand, GetDataBand, getDelimiterComponent, getDisplayRectangle, getDisplayRectangle1, getDockable, getDockRegion, getDockRegion, getDockStyle, getDoubleClickEvent, getDrillDownParameters, getEnabled, getEvents, getExpressions, getForceRedrawAll, getGetBookmarkEvent, getGetDrillDownReportEvent, getGetHyperlinkEvent, getGetTagEvent, getGetToolTipEvent, getGroupHeaderBand, GetGroupHeaderBand, getGrowToHeight, getGuid, 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, getQuickInfo, getRenderedCount, getReport, getRestrictions, getRight, getSelectionTick, getSelectRectangle, getServiceCategory, getServiceType, getShift, getShiftMode, getShowQuickButtons, getStates, getTag, getTagStrValue, getTagValue, getToolTip, getToolTipValue, getTop, getUseParentStyles, getWidth, incrementtTop, InternalRender, invert, InvokeAfterPrint, InvokeBeforePrint, InvokeBeginRender, invokeBlockly, InvokeClick, InvokeDoubleClick, InvokeEndRender, invokeEvents, 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, packService, PageToComponent, PageToComponent, paint, PlacedOnColumnBand, Prepare, render, reset, Reset, restoreState, RestoreState, saveState, 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
getName, 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
getImage
-
Field Details
-
dataRelationName
-
brush
-
border
-
values
public double[] values -
type
-
showHighLowPoints
public boolean showHighLowPoints -
showFirstLastPoints
public boolean showFirstLastPoints -
positiveColor
-
negativeColor
-
-
Constructor Details
-
StiSparkline
public StiSparkline()Creates a new StiSparkline. -
StiSparkline
Creates a new StiSparkline.- Parameters:
rect- The rectangle describes sizes and position of the component.
-
-
Method Details
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiComponent- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiComponent- Throws:
JSONException
-
getDataRelation
Get link that is used for master-detail reports rendering.- Specified by:
getDataRelationin interfaceIStiDataRelation
-
getDataRelationName
Gets or sets relation name.- Specified by:
getDataRelationNamein interfaceIStiDataRelation- Returns:
- the dataRelationName
-
setDataRelationName
- Specified by:
setDataRelationNamein interfaceIStiDataRelation- Parameters:
dataRelationName- the dataRelationName to set
-
getImage
-
getImage
-
isExportAsImage
- Specified by:
isExportAsImagein interfaceIStiExportImageExtended- Overrides:
isExportAsImagein classStiComponent
-
clone
Creates a new object that is a copy of the current instance. A new object that is a copy of this instance.- Overrides:
clonein classStiComponent- Returns:
- A new object that is a copy of this instance.
-
getBrush
Gets or sets a brush to fill a component. -
setBrush
-
shouldSerializeBorder
public boolean shouldSerializeBorder() -
getBorder
Gets or sets border of the component.- Specified by:
getBorderin interfaceIStiBorder- Returns:
- the border
-
setBorder
- Specified by:
setBorderin interfaceIStiBorder- Parameters:
border- the border to set
-
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
-
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
-
getPriority
public int getPriority()Description copied from class:StiComponentgets a component priority.- Overrides:
getPriorityin classStiComponent
-
getLocalizedCategory
Description copied from class:StiBaseGets a localized name of the component category.- Overrides:
getLocalizedCategoryin classStiBase
-
getDefaultClientRectangle
Description copied from class:StiComponentgets the default client area of a component.- Overrides:
getDefaultClientRectanglein classStiComponent
-
getStiComponentType
Gets the type of processing when printing.- Returns:
- Gets the type of processing when printing.
-
getToolboxPosition
public int getToolboxPosition()- Overrides:
getToolboxPositionin classStiComponent
-
getLocalizedName
Gets a localized component name.- Overrides:
getLocalizedNamein classStiBase
-
createNew
-
fetchValues
public double[] fetchValues() -
getDataSource
-
setValueDataColumn
Gets or sets a name of the column that contains the values.- Parameters:
value-
-
getValueDataColumn
Gets or sets a name of the column that contains the values.- Returns:
-
getValuesContainer
- Returns:
- the valuesContainer
-
setValuesContainer
- Parameters:
valuesContainer- the valuesContainer to set
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
isShowHighLowPoints
public boolean isShowHighLowPoints()Gets or sets the value which indicates that high and low points should be show.- Returns:
- the showHighLowPoints
-
setShowHighLowPoints
public void setShowHighLowPoints(boolean showHighLowPoints) - Parameters:
showHighLowPoints- the showHighLowPoints to set
-
isShowFirstLastPoints
public boolean isShowFirstLastPoints()Gets or sets the value which indicates that first and last points should be show.- Returns:
- the showFirstLastPoints
-
setShowFirstLastPoints
public void setShowFirstLastPoints(boolean showFirstLastPoints) - Parameters:
showFirstLastPoints- the showFirstLastPoints to set
-
getPositiveColor
Gets or sets a back color.- Returns:
- the positiveColor
-
setPositiveColor
- Parameters:
positiveColor- the positiveColor to set
-
getNegativeColor
Gets or sets a back color.- Returns:
- the negativeColor
-
setNegativeColor
- Parameters:
negativeColor- the negativeColor to set
-
existDataRelation
public boolean existDataRelation()- Specified by:
existDataRelationin interfaceIStiDataRelation
-