public void initializeAnnotationComponents(ArrayList<Annotation> annotations){

        if (this.annotations == null && annotations != null){
            this.annotations = new ArrayList<AnnotationComponent>(annotations.size());
            AnnotationComponentImpl comp;
            for (Annotation annotation : annotations) {
                if (!(annotation.getFlagInvisible() ||
                        annotation.getFlagHidden())) {
                    comp = new AnnotationComponentImpl(annotation,
                            documentViewController,
                            pageViewComponent, documentViewModel);
                    // add them to the container, using absolute positioning.
                    pageViewComponent.add(comp);
                    // add the comp reference locally so we have easier access
                    this.annotations.add(comp);
                }
            }
        }
    }