Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Index

Constructors

constructor

Methods

draw

  • draw(activityRef: ActivityRef<A>, position: ViewPosition, ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, selected: boolean, hover: boolean, highlighted: boolean, pressed: boolean): ActivityBounds
  • Parameters

    • activityRef: ActivityRef<A>
    • position: ViewPosition
    • ctx: CanvasRenderingContext2D
    • x: number
    • y: number
    • w: number
    • h: number
    • selected: boolean
    • hover: boolean
    • highlighted: boolean
    • pressed: boolean

    Returns ActivityBounds

getAlpha

  • getAlpha(): number
  • Returns number

getBarHeight

  • getBarHeight(): number
  • Returns number

getCornerRadius

  • getCornerRadius(): number

getCurrentFill

  • getCurrentFill(): Color

getFill

  • getFill(selected: boolean, hover: boolean, highlighted: boolean, pressed: boolean): Color
  • Parameters

    • selected: boolean
    • hover: boolean
    • highlighted: boolean
    • pressed: boolean

    Returns Color

getFillHighlight

  • getFillHighlight(): Color

getFillHover

getFillPressed

  • getFillPressed(): Color

getFillSelected

  • getFillSelected(): Color

getFilter

  • getFilter(): string

getFont

  • getFont(): number
  • Returns number

getGraphics

getLineWidth

  • getLineWidth(): number

getLocation

  • getLocation(time: number): number
  • Calculates the x coordinate for the given time. This method only returns valid results when the renderers is used in a layout with horizontal orientation. It will not work in AgendaLayout.

    since

    1.0

    see

    TimelineModel.calculateLocationForTime(Instant)

    Parameters

    • time: number

      the time for which to calculate the x coordinate

    Returns number

    the location of the given time point

getName

  • getName(): string
  • Returns string

getPadding

getPixelRatio

  • getPixelRatio(): number
  • Returns number

getStrokeHighlight

  • getStrokeHighlight(): Color

getStrokeHover

  • getStrokeHover(): Color

getStrokePressed

  • getStrokePressed(): Color

getStrokeSelected

  • getStrokeSelected(): Color

getTextFill

  • Returns Color

getTextFillHighlight

  • getTextFillHighlight(): Color
  • Returns Color

getTextFillHover

  • getTextFillHover(): Color
  • Returns Color

getTextFillPressed

  • getTextFillPressed(): Color
  • Returns Color

getTextFillSelected

  • getTextFillSelected(): Color
  • Returns Color

getTextGap

  • getTextGap(): number
  • Returns number

getTimeAt

  • getTimeAt(location: number): number
  • Calculates the time at the given x coordinate. This method only returns valid results when the renderers is used in a layout with horizontal orientation. It will not work in AgendaLayout.

    since

    1.0

    see

    TimelineModel.calculateTimeForLocation(double)

    Parameters

    • location: number

      the location for which to return the time

    Returns number

    the time at the given x coordinate

isAutoFixText

  • isAutoFixText(): boolean
  • Returns boolean

isCornersRounded

  • isCornersRounded(): boolean

isEnabled

  • isEnabled(): boolean
  • Returns boolean

isGlossy

  • isGlossy(): boolean
  • Returns boolean

isSnapToPixel

  • isSnapToPixel(): boolean
  • Returns boolean

setAlpha

  • setAlpha(value: number): void
  • Parameters

    • value: number

    Returns void

setAutoFixText

  • setAutoFixText(auto: boolean): void
  • Parameters

    • auto: boolean

    Returns void

setBarHeight

  • setBarHeight(height: number): void
  • Parameters

    • height: number

    Returns void

setCornerRadius

  • setCornerRadius(value: number): void

setCornersRounded

  • setCornersRounded(value: boolean): void

setEnabled

  • setEnabled(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

setFill

  • setFill(value: Color): void
  • Parameters

    Returns void

setFillHighlight

  • setFillHighlight(value: Color): void

setFillHover

  • setFillHover(value: Color): void
  • Parameters

    Returns void

setFillPressed

  • setFillPressed(value: Color): void

setFillSelected

  • setFillSelected(value: Color): void

setFilter

  • setFilter(value: string): void
  • Parameters

    • value: string

    Returns void

setFont

  • setFont(font: number): void
  • Parameters

    • font: number

    Returns void

setGlossy

  • setGlossy(glossy: boolean): void
  • Parameters

    • glossy: boolean

    Returns void

setLineWidth

  • setLineWidth(value: number): void
  • Parameters

    • value: number

    Returns void

setPadding

  • setPadding(value: Insets): void
  • Parameters

    Returns void

setSnapToPixel

  • setSnapToPixel(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

setStroke

  • setStroke(value: Color): void

setStrokeHighlight

  • setStrokeHighlight(value: Color): void

setStrokeHover

  • setStrokeHover(value: Color): void

setStrokePressed

  • setStrokePressed(value: Color): void

setStrokeSelected

  • setStrokeSelected(value: Color): void

setTextFill

  • setTextFill(fill: Color): void
  • Parameters

    Returns void

setTextFillHighlight

  • setTextFillHighlight(fill: Color): void
  • Parameters

    Returns void

setTextFillHover

  • setTextFillHover(fill: Color): void
  • Parameters

    Returns void

setTextFillPressed

  • setTextFillPressed(fill: Color): void
  • Parameters

    Returns void

setTextFillSelected

  • setTextFillSelected(fill: Color): void
  • Parameters

    Returns void

setTextGap

  • setTextGap(gap: number): void
  • Parameters

    • gap: number

    Returns void