.withX1(5.0) .withY1(55.0) .withText("Hello World!")
Collections.addAll(sciChartSurface.getAnnotations(), sciChartBuilder.newTextAnnotation() .withX1(0.3) .withY1(0) .withFontStyle(24, ColorUtil.White)
.withX1(5.0) .withY1(55.0) .withText("Hello World!")
.withX1(5.0) .withY1(55.0) .withText("Hello World!")
.withIsEditable(true) .withText("Buy!") .withX1(10) .withY1(30.5d) .withVerticalAnchorPoint(VerticalAnchorPoint.Bottom) .withIsEditable(true) .withText("Sell!") .withX1(50) .withY1(34d) .withFontStyle(20, ColorUtil.White) .build(), sciChartBuilder.newTextAnnotation() .withX1(80d).withY1(37d) .withIsEditable(true) .withText("Rotated text") .withText("EUR.USD") .withFontStyle(Typeface.DEFAULT_BOLD, 72, 0x77FFFFFF) .withX1(0.5d) .withY1(0.5d) .withZIndex(-1) // draw this annotation below other annotations
.withX1(5.0) .withY1(55.0) .withText("Hello World!")
.withX1(0.5) .withY1(0.5) .withFontStyle(Typeface.DEFAULT_BOLD, 42, 0x22FFFFFF) .withX1(0.3) .withY1(9.7) .withFontStyle(24, ColorUtil.White) .build(), sciChartBuilder.newTextAnnotation() .withX1(1.0) .withY1(9.0) .withText("You can create text") .withX1(5d) .withY1(8d) .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .build(), sciChartBuilder.newTextAnnotation() .withX1(5d) .withY1(8d) .withHorizontalAnchorPoint(HorizontalAnchorPoint.Right) .build(), sciChartBuilder.newTextAnnotation() .withX1(5d) .withY1(8d) .withHorizontalAnchorPoint(HorizontalAnchorPoint.Left)
.withX1(5.0) .withY1(55.0) .withText("Hello World!")
.withX1(5.0) .withY1(55.0) .withText("Hello World!")
.withVerticalAnchorPoint(VerticalAnchorPoint.Top) .withCoordinateMode(AnnotationCoordinateMode.Relative) .withX1(0.5) .withY1(0.01) .build();