StiIndicatorCellPainter Class

Namespace: Stimulsoft.Dashboard.Export.Painters.Table

Methods

Method Returns Description
calculateTextRect static Rectangle  
draw static void  
getCellText static string  
getColor static Color  
measureText static number  
toAlignment static StringAlignment  

Method Details

calculateTextRect static

calculateTextRect(rect: Rectangle, textObj: any): Rectangle

Parameters

Returns Rectangle


draw static

draw(writer: StiSvgGeomWriter, rect: RectangleD, table: StiTableElement, rowValues: any[], columnKeys: string[], column: StiIndicatorColumn, zoom: number, value: number, style: StiTableElementStyle, drawText: any): void

Parameters

  • writer (StiSvgGeomWriter)
  • rect (RectangleD)
  • table (StiTableElement)
  • rowValues (any[])
  • columnKeys (string[])
  • column (StiIndicatorColumn)
  • zoom (number)
  • value (number)
  • style (StiTableElementStyle)
  • drawText (any)

getCellText static

getCellText(table: StiTableElement, column: StiIndicatorColumn, value: number): string

Parameters

  • table (StiTableElement)
  • column (StiIndicatorColumn)
  • value (number)

Returns string


getColor static

getColor(column: StiTableColumn, value: number, style: StiTableElementStyle): Color

Parameters

  • column (StiTableColumn)
  • value (number)
  • style (StiTableElementStyle)

Returns Color


measureText static

measureText(zoom: number, text: string, baseFont: Font): number

Parameters

  • zoom (number)
  • text (string)
  • baseFont (Font)

Returns number


toAlignment static

toAlignment(value: StiHorAlignment): StringAlignment

Parameters

Returns StringAlignment

Fields

Field Type Description
drawText any  
indicatorColor any  
p0 any  
p0 any  
p1 any  
p1 any  
p2 any  
p2 any  
rect any  
rect any  
rect any  
rect any  
rect any