| 122 | |
| 123 | void LayoutAnnotationRenderer::OnRenderWindowModified() { PrepareLayout(); } |
| 124 | void LayoutAnnotationRenderer::AddAnnotation(Annotation *Annotation, |
| 125 | const std::string &rendererID, |
| 126 | Alignment alignment, |
| 127 | double marginX, |
| 128 | double marginY, |
| 129 | int priority) |
| 130 | { |
| 131 | GetAnnotationRenderer(rendererID); |
| 132 | us::ServiceProperties props; |
| 133 | props[Annotation::US_PROPKEY_AR_ID] = ANNOTATIONRENDERER_ID; |
| 134 | props[Annotation::US_PROPKEY_RENDERER_ID] = rendererID; |
| 135 | Annotation->RegisterAsMicroservice(props); |
| 136 | Point2D margin; |
| 137 | margin[0] = marginX; |
| 138 | margin[1] = marginY; |
| 139 | AddAlignmentProperty(Annotation, alignment, margin, priority); |
| 140 | } |
| 141 | |
| 142 | void LayoutAnnotationRenderer::AddAnnotation( |
| 143 | Annotation *Annotation, BaseRenderer *renderer, Alignment alignment, double marginX, double marginY, int priority) |
nothing calls this directly
no test coverage detected