new annotation()
Annotation drawing tool. An annotation is a simple text tool. It uses the class stx_annotation to determine the font style and color for the annotation. Class stx_annotation_highlight_bg is used to determine the background color when highlighted.
The controls controls.annotationSave and controls.annotationCancel are used to create HTMLElements for saving and canceling the annotation while editing. A textarea is created dynamically. The annotation tool attempts to draw the annotations at the same size and position as the textarea so that the effect is wysiwig.
Methods
-
reconstruct(stx [, obj])
-
Reconstruct an annotation
Parameters:
Name Type Argument Description stxSTXChart The chart object
objobject <optional>
A drawing descriptor
Properties
Name Type Argument Description colstring <optional>
The text color for the annotation
pnlstring <optional>
The panel name
d0string <optional>
String form date or date time
v0number <optional>
The value at which to position the annotation
textstring <optional>
The annotation text (escaped using escape())
tzo0number <optional>
Offset of UTC from d0 in minutes
bcstring <optional>
Border color
bgstring <optional>
Background color
lwstring <optional>
Line width
ptrnstring <optional>
Line pattern
fntobject <optional>
Font
Properties
Name Type Argument Description stobject <optional>
Font style
szobject <optional>
Font size
wtobject <optional>
Font weight
flobject <optional>
Font family