/** Return list of passive annotations attached on the line of given offset */ public AnnotationDesc[] getPassiveAnnotations(int offset){ int lineIndex = doc.getDefaultRootElement().getElementIndex(offset); return (lineIndex>=0) ? getPasiveAnnotations(lineIndex) : null; }
alpha = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, AnnotationTypes.getTypes().getBackgroundGlyphAlpha().intValue() / 100f); AnnotationDesc[] annosArray = annos.getPasiveAnnotations((int) ((float) startY / (float) lineHeight)); int glyphX = 2; if (annosArray != null) {