AnnotatedSegment
A shape to display a segment with annotation.
Method Summary
| Public Methods | ||
| public |
|
|
| public |
render(renderingContext: *): * |
|
| public |
update(renderingContext: *, datum: *) |
|
Inherited Summary
| From class BaseShape | ||
| public |
|
|
| public |
[key]: * |
|
| public |
[name]: * |
|
| public |
|
|
| public |
|
|
| public |
describe(datum: *, x: *): *[] Interface method that returns a value or description for salient features of the shape at the given x-coordinate (in time). |
|
| public |
destroy() Destroy the shape and clean references. |
|
| public |
Interface method called by |
|
| public |
Interface method to override when extending this base class. |
|
| public |
inArea(renderingContext: Object, datum: Object | Array, x1: Number, y1: Number, x2: Number, y2: Number): Boolean Interface method to override called by |
|
| public |
Interface method called by Layer when creating a shape. |
|
| public |
Interface method called by |
|
| public |
Interface method called by |
|
| protected |
Returns an object where keys are the accessors methods names to create and values are the default values for each given accessor. |
|
| protected |
Returns the defaults for global configuration of the shape. |
|
| From class Segment | ||
| public |
$el: * |
|
| public |
$leftHandler: * |
|
| public |
|
|
| public |
$segment: * |
|
| public |
|
|
| public |
inArea(renderingContext: *, datum: *, x1: *, y1: *, x2: *, y2: *): * |
|
| public |
render(renderingContext: *): * |
|
| public |
update(renderingContext: *, datum: *) |
|
Public Methods
public getClassName(): string source
Interface method to override when extending this base class. The method
is called by the Layer~render method. Returns the name of the shape,
used as a class in the element group (defaults to 'shape').
Override:
Segment#getClassNamepublic render(renderingContext: *): * source
Interface method called by Layer~render. Creates the DOM structure of
the shape.
Override:
Segment#renderParams:
| Name | Type | Attribute | Description |
| renderingContext | * |
Return:
| * |
public update(renderingContext: *, datum: *) source
Interface method called by Layer~update. Updates the DOM structure of the shape.
Override:
Segment#updateParams:
| Name | Type | Attribute | Description |
| renderingContext | * | ||
| datum | * |