StiCardsCellDrawer Class
Namespace: Stimulsoft.Dashboard.Visuals.Cards
Methods
| Method | Returns | Description |
|---|---|---|
calculateIndicatorRect static |
Rectangle | |
calculateTextRect static |
Rectangle | |
castToArray static |
any[] | |
drawText static |
void | |
drawWordWrapText static |
void | |
getCellText static |
string | |
getColor static |
Color | |
getMeasureText static |
string | |
imageDraw static |
void | |
sparklinesDraw static |
void |
Method Details
calculateIndicatorRect static
calculateIndicatorRect(rect: Rectangle, column: any, zoom: number, textWidth: number, isExporting: boolean): Rectangle
Parameters
- rect (Rectangle)
- column (any)
- zoom (number)
- textWidth (number)
- isExporting (boolean)
Returns Rectangle
calculateTextRect static
calculateTextRect(rect: Rectangle, column: any, zoom: number, textWidth: number, isExporting: boolean): Rectangle
Parameters
- rect (Rectangle)
- column (any)
- zoom (number)
- textWidth (number)
- isExporting (boolean)
Returns Rectangle
castToArray static
castToArray(value: any): any[]
Parameters
- value (any)
Returns any[]
drawText static
drawText(context: StiContext, text: string, font: Font, color: Color, horAlignment: StiHorAlignment, vertAlignment: StiVertAlignment, rect: Rectangle, rectSize: Size, zoom: number): void
Parameters
- context (StiContext)
- text (string)
- font (Font)
- color (Color)
- horAlignment (StiHorAlignment)
- vertAlignment (StiVertAlignment)
- rect (Rectangle)
- rectSize (Size)
- zoom (number)
drawWordWrapText static
drawWordWrapText(context: StiContext, text: string, font: Font, color: Color, horAlignment: StiHorAlignment, vertAlignment: StiVertAlignment, rect: Rectangle, rectSize: Size, zoom: number): void
Parameters
- context (StiContext)
- text (string)
- font (Font)
- color (Color)
- horAlignment (StiHorAlignment)
- vertAlignment (StiVertAlignment)
- rect (Rectangle)
- rectSize (Size)
- zoom (number)
getCellText static
getCellText(cards: StiCardsElement, column: StiCardsColumn, value: number): string
Parameters
- cards (StiCardsElement)
- column (StiCardsColumn)
- value (number)
Returns string
getColor static
getColor(foreColor: Color, value: number, style: IStiCellIndicatorStyle): Color
Parameters
- foreColor (Color)
- value (number)
- style (IStiCellIndicatorStyle)
Returns Color
getMeasureText static
getMeasureText(context: StiContext, text: string, font: StiFontGeom, maxWidth: number): string
Parameters
- context (StiContext)
- text (string)
- font (StiFontGeom)
- maxWidth (number)
Returns string
imageDraw static
imageDraw(context: StiContext, rectItem: Rectangle, value: any): void
Parameters
- context (StiContext)
- rectItem (Rectangle)
- value (any)
sparklinesDraw static
sparklinesDraw(context: StiContext, rect: Rectangle, column: StiSparklinesCardsColumn, value: any, style: StiCardsElementStyle): void
Parameters
- context (StiContext)
- rect (Rectangle)
- column (StiSparklinesCardsColumn)
- value (any)
- style (StiCardsElementStyle)
Fields
| Field | Type | Description |
|---|---|---|
| aPart | any | |
| aPart | any | |
| bPart | any | |
| bPart | any | |
| barRect | any | |
| gPart | any | |
| gPart | any | |
| max | any | |
| max | any | |
| maxColor | any | |
| maxColor | any | |
| maxColor | any | |
| maxColor | any | |
| min | any | |
| min | any | |
| minColor | any | |
| minColor | any | |
| minColor | any | |
| minColor | any | |
| p0 | any | |
| p0 | any | |
| p1 | any | |
| p1 | any | |
| p2 | any | |
| p2 | any | |
| percent | any | |
| percent | any | |
| rPart | any | |
| rPart | any | |
| rect | any | |
| rect | any | |
| rect | any | |
| rect | any | |
| value | any | |
| value | any | |
| valuePart | any | |
| x | any | |
| x | any | |
| x | any | |
| x | any | |
| x | any | |
| x | any | |
| y | any | |
| y | any | |
| y | any | |
| y | any | |
| y | any | |
| y | any |