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 Details

    • dataRelationName

      public String dataRelationName
    • brush

      public StiBrush brush
    • border

      public StiBorder border
    • values

      public double[] values
    • type

      public StiSparklineType type
    • showHighLowPoints

      public boolean showHighLowPoints
    • showFirstLastPoints

      public boolean showFirstLastPoints
    • positiveColor

      public StiColor positiveColor
    • negativeColor

      public StiColor negativeColor
  • Constructor Details

    • StiSparkline

      public StiSparkline()
      Creates a new StiSparkline.
    • StiSparkline

      public StiSparkline(StiRectangle rect)
      Creates a new StiSparkline.
      Parameters:
      rect - The rectangle describes sizes and position of the component.
  • Method Details

    • SaveToJsonObject

      public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
      Specified by:
      SaveToJsonObject in interface IStiJsonReportObject
      Overrides:
      SaveToJsonObject in class StiComponent
      Throws:
      JSONException
    • LoadFromJsonObject

      public void LoadFromJsonObject(JSONObject jObject) throws JSONException
      Specified by:
      LoadFromJsonObject in interface IStiJsonReportObject
      Overrides:
      LoadFromJsonObject in class StiComponent
      Throws:
      JSONException
    • getDataRelation

      public StiDataRelation getDataRelation()
      Get link that is used for master-detail reports rendering.
      Specified by:
      getDataRelation in interface IStiDataRelation
    • getDataRelationName

      public String getDataRelationName()
      Gets or sets relation name.
      Specified by:
      getDataRelationName in interface IStiDataRelation
      Returns:
      the dataRelationName
    • setDataRelationName

      public void setDataRelationName(String dataRelationName)
      Specified by:
      setDataRelationName in interface IStiDataRelation
      Parameters:
      dataRelationName - the dataRelationName to set
    • getImage

      public BufferedImage getImage(double zoom)
    • getImage

      public BufferedImage getImage(double zoom, StiExportFormat format)
    • isExportAsImage

      public boolean isExportAsImage(StiExportFormat format)
      Specified by:
      isExportAsImage in interface IStiExportImageExtended
      Overrides:
      isExportAsImage in class StiComponent
    • clone

      public Object clone(boolean cloneProperties)
      Creates a new object that is a copy of the current instance. A new object that is a copy of this instance.
      Overrides:
      clone in class StiComponent
      Returns:
      A new object that is a copy of this instance.
    • getBrush

      public StiBrush getBrush()
      Gets or sets a brush to fill a component.
      Specified by:
      getBrush in interface IStiBrush
      Returns:
      the brush
    • setBrush

      public void setBrush(StiBrush brush)
      Specified by:
      setBrush in interface IStiBrush
      Parameters:
      brush - the brush to set
    • shouldSerializeBorder

      public boolean shouldSerializeBorder()
    • getBorder

      public StiBorder getBorder()
      Gets or sets border of the component.
      Specified by:
      getBorder in interface IStiBorder
      Returns:
      the border
    • setBorder

      public void setBorder(StiBorder border)
      Specified by:
      setBorder in interface IStiBorder
      Parameters:
      border - the border to set
    • getCanShrink

      public boolean getCanShrink()
      Description copied from class: StiComponent
      gets or sets value which indicates that this object can shrink.
      Specified by:
      getCanShrink in interface IStiCanShrink
      Overrides:
      getCanShrink in class StiComponent
    • getCanGrow

      public boolean getCanGrow()
      Description copied from class: StiComponent
      gets or sets a value which indicates that this object can grow.
      Specified by:
      getCanGrow in interface IStiCanGrow
      Overrides:
      getCanGrow in class StiComponent
    • getPriority

      public int getPriority()
      Description copied from class: StiComponent
      gets a component priority.
      Overrides:
      getPriority in class StiComponent
    • getLocalizedCategory

      public String getLocalizedCategory()
      Description copied from class: StiBase
      Gets a localized name of the component category.
      Overrides:
      getLocalizedCategory in class StiBase
    • getDefaultClientRectangle

      public StiRectangle getDefaultClientRectangle()
      Description copied from class: StiComponent
      gets the default client area of a component.
      Overrides:
      getDefaultClientRectangle in class StiComponent
    • getStiComponentType

      public StiComponentType getStiComponentType()
      Gets the type of processing when printing.
      Returns:
      Gets the type of processing when printing.
    • getToolboxPosition

      public int getToolboxPosition()
      Overrides:
      getToolboxPosition in class StiComponent
    • getLocalizedName

      public String getLocalizedName()
      Gets a localized component name.
      Overrides:
      getLocalizedName in class StiBase
    • createNew

      public StiComponent createNew()
    • fetchValues

      public double[] fetchValues()
    • getDataSource

      public StiDataSource getDataSource()
    • setValueDataColumn

      public void setValueDataColumn(String value)
      Gets or sets a name of the column that contains the values.
      Parameters:
      value -
    • getValueDataColumn

      public String getValueDataColumn()
      Gets or sets a name of the column that contains the values.
      Returns:
    • getValuesContainer

      public String getValuesContainer()
      Returns:
      the valuesContainer
    • setValuesContainer

      public void setValuesContainer(String value)
      Parameters:
      valuesContainer - the valuesContainer to set
    • getType

      public StiSparklineType getType()
      Returns:
      the type
    • setType

      public void setType(StiSparklineType type)
      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

      public StiColor getPositiveColor()
      Gets or sets a back color.
      Returns:
      the positiveColor
    • setPositiveColor

      public void setPositiveColor(StiColor positiveColor)
      Parameters:
      positiveColor - the positiveColor to set
    • getNegativeColor

      public StiColor getNegativeColor()
      Gets or sets a back color.
      Returns:
      the negativeColor
    • setNegativeColor

      public void setNegativeColor(StiColor negativeColor)
      Parameters:
      negativeColor - the negativeColor to set
    • existDataRelation

      public boolean existDataRelation()
      Specified by:
      existDataRelation in interface IStiDataRelation