Datapoint
Data point element to be drawn on the canvas
Constructor Summary
Public Constructor | ||
public |
constructor(canvas: jsml.UI.Canvas, datapoint: jsml.Dataset.Datapoint) Constructor. |
Member Summary
Public Members | ||
public |
canvas: * |
|
public |
color: * |
|
public |
marked: * |
|
public |
model: * |
|
public |
|
|
public |
|
Method Summary
Public Methods | ||
public |
draw() Draw the element on the canvas. |
|
public |
update() Update drawing properties of the model. |
|
public |
Update information about this element from the model. |
Public Constructors
public constructor(canvas: jsml.UI.Canvas, datapoint: jsml.Dataset.Datapoint) source
Constructor. Attach the datapoint to the canvas and its model.
Params:
Name | Type | Attribute | Description |
canvas | jsml.UI.Canvas | Canvas to which this datapoint element is bound |
|
datapoint | jsml.Dataset.Datapoint | Datapoint model |