Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

chart

chart: Chart

Reference to chart

Protected color

color: string

components

components: Array<IComponent>

Child components array

cursor

cursor: string = "default"

Mouse arrow when mouse is over this component

Protected grid

grid: Grid

Protected gridManager

gridManager: GridManager

height

height: number

component height

margin

margin: Margin = new Margin()

Margin in pixels (space reserved out of the grid, )

mouseClickHandler

mouseClickHandler: EventListener

mouseMoveHandler

mouseMoveHandler: EventListener

onClick

onClick: Function

On click callback

type

{Function}

onMouseMove

onMouseMove: Function

On mouse move callback

type

{Function[]}

onMouseOver

onMouseOver: Function

On mouse over callback

type

{Function[]}

padding

padding: Padding = new Padding()

Padding on grid (space inside grid before start)

type

{VobcoCharts.Settings.Padding}

width

width: number

component width

x

x: number

X position on chart

Protected x1

x1: number

Protected x2

x2: number

y

y: number

Y position on chart

Protected y1

y1: number

Protected y2

y2: number

Methods

draw

  • draw(): void

Protected getX

  • getX(x: number): number
  • Parameters

    • x: number

    Returns number

initialize

  • initialize(color?: string): void
  • Parameters

    • Default value color: string = "#0000CC"

    Returns void

isMouseOnComponent

  • isMouseOnComponent(): boolean
  • Returns true if mouse cursor is on this component

    Returns boolean

preview

  • preview(): void
  • Returns void

setDot

  • setDot(): void
  • Returns void

Generated using TypeDoc