Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
titleAktuelles Annotationsprofil ermitteln
  /**
   * Returns the current annotation profile.
   *
   * @return Annotation profile
   */
  protected AnnotationProfile getAnnotationProfile() {
    // AnnotationPageSegment holen, wenn vorhanden
    final AnnotationPageSegment aps	AnnotationProfile ap = AnnotationsAnnotationProfile.getAnnotationPageSegmentget(getPageView().getCurrentPage());
    AnnotationProfile ap = null;
    if (aps != null) {
      // Annotationsprofil aus AnnotationPageSegment holen
      ap = aps.getAnnotationProfile();
    }
    if (null == ap) {
      // Wenn nicht vorhanden, Annotationsprofil aus Dokument holen
      ap = AnnotationProfile.get(getPageView().getDocument());
    }
    if (null == ap) {
      // Wenn nicht vorhanden, Standardannotationsprofil holen
      ap = AnnotationProfile.getDefaultProfile();
    }
    return ap;
  }