Class Tee.Annotation
Extends
Tee.Tool.
Represents a rectangle containing text
Defined in: <..\..\src\teechart.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Tee.Annotation(chart, text, x, y)
|
Field Attributes | Field Name and Description |
---|---|
Properties to control the annotation background and text appearance.
|
|
Properties to control spacing between text and rectangle boundaries.
|
|
When true, the annotation background is not displayed.
|
|
When true, the annotation is displayed.
|
Method Attributes | Method Name and Description |
---|---|
add(text)
|
|
clicked(p)
|
|
doDraw()
|
|
doMouseMove(p)
|
|
draw()
|
|
<inner> |
isEmpty(str)
|
mousemove(p)
|
|
moveTo(x, y)
|
|
resize()
|
|
setChart(chart)
|
|
Field Detail
{Tee.Format}
format
Properties to control the annotation background and text appearance.
{Tee.Margins}
margins
Properties to control spacing between text and rectangle boundaries.
position
{Boolean}
transparent
When true, the annotation background is not displayed. Only the text is painted.
{Boolean}
visible
When true, the annotation is displayed.
Method Detail
add(text)
- Parameters:
- text
{Boolean}
clicked(p)
- Parameters:
- p
- Returns:
- {Boolean} Returns if Tee.Point p is inside this Annotation bounds.
doDraw()
doMouseMove(p)
- Parameters:
- p
draw()
forceDraw()
<inner>
isEmpty(str)
- Parameters:
- str
mousemove(p)
- Parameters:
- p
moveTo(x, y)
- Parameters:
- x
- y
resize()
setChart(chart)
- Parameters:
- chart
shouldDraw()