.withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();
.withX1(0.3) .withY1(0) .withFontStyle(24, ColorUtil.White) .withText("Annotations are Easy!") .build(),
.withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();
.withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();
.withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();
.withY1(30.5d) .withVerticalAnchorPoint(VerticalAnchorPoint.Bottom) .withFontStyle(20, ColorUtil.White) .withZIndex(1) // draw this annotation above other annotations .build(), .withX1(50) .withY1(34d) .withFontStyle(20, ColorUtil.White) .withPadding(8) .withZIndex(1) // draw this annotation above other annotations .withIsEditable(true) .withText("Rotated text") .withFontStyle(20, ColorUtil.White) .withRotationAngle(30) .withZIndex(1) // draw this annotation above other annotations .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withText("EUR.USD") .withFontStyle(Typeface.DEFAULT_BOLD, 72, 0x77FFFFFF) .withX1(0.5d) .withY1(0.5d)
.withX1(0.5) .withY1(0.5) .withFontStyle(Typeface.DEFAULT_BOLD, 42, 0x22FFFFFF) .withCoordinateMode(AnnotationCoordinateMode.Relative) .withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withX1(0.3) .withY1(9.7) .withFontStyle(24, ColorUtil.White) .withText("Annotations are Easy!") .build(), .withY1(9.0) .withText("You can create text") .withFontStyle(10, ColorUtil.White) .build(), .withText("Draw Lines with \nor without arrows") .withX1(0.3).withY1(6.1) .withFontStyle(12, ColorUtil.White) .withVerticalAnchorPoint(VerticalAnchorPoint.Bottom) .build(), .withText("Draw Boxes") .withX1(3.5).withY1(6.1) .withFontStyle(12, ColorUtil.White) .withVerticalAnchorPoint(VerticalAnchorPoint.Bottom) .build(),
.withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();
.withHorizontalAnchorPoint(HorizontalAnchorPoint.Center) .withVerticalAnchorPoint(VerticalAnchorPoint.Center) .withFontStyle(20, ColorUtil.White) .build();