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

getCornerRadius

  • getCornerRadius(): number
  • Returns 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
  • Returns string

getGraphics

getLineWidth

  • getLineWidth(): number
  • Returns 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
  • Returns Color

getStrokeHover

  • getStrokeHover(): Color
  • Returns Color

getStrokePressed

  • getStrokePressed(): Color
  • Returns Color

getStrokeSelected

  • getStrokeSelected(): Color
  • Returns Color

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

isCornersRounded

  • isCornersRounded(): boolean
  • Returns boolean

isEnabled

  • isEnabled(): boolean
  • Returns boolean

isSnapToPixel

  • isSnapToPixel(): boolean
  • Returns boolean

setAlpha

  • setAlpha(value: number): void
  • Parameters

    • value: number

    Returns void

setCornerRadius

  • setCornerRadius(value: number): void
  • Parameters

    • value: number

    Returns void

setCornersRounded

  • setCornersRounded(value: boolean): void
  • Parameters

    • value: boolean

    Returns 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

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
  • Parameters

    Returns void

setStrokeHighlight

  • setStrokeHighlight(value: Color): void
  • Parameters

    Returns void

setStrokeHover

  • setStrokeHover(value: Color): void
  • Parameters

    Returns void

setStrokePressed

  • setStrokePressed(value: Color): void
  • Parameters

    Returns void

setStrokeSelected

  • setStrokeSelected(value: Color): void
  • Parameters

    Returns void