/** * Returns the active annotation for the given line number. It is called * from the glyph gutter */ public AnnotationDesc getActiveAnnotation(int line) { LineAnnotations annos = getLineAnnotations(line); if (annos == null) return null; return annos.getActive(); }
/** Returns number of visible annotations on the line */ public int getNumberOfAnnotations(int line) { LineAnnotations annos = getLineAnnotations(line); if (annos == null) return 0; return annos.getCount(); }
/** Returns the active annotation for the given line number. * It is called from the glyph gutter*/ public AnnotationDesc getActiveAnnotation(int line) { LineAnnotations annos = getLineAnnotations(line); if (annos == null) return null; return annos.getActive(); }
/** Returns number of visible annotations on the line*/ public int getNumberOfAnnotations(int line) { LineAnnotations annos = getLineAnnotations(line); if (annos == null) return 0; return annos.getCount(); }
/** Return list of pasive annotations which should be drawn on the backgorund */ public AnnotationDesc[] getPasiveAnnotations(int line) { LineAnnotations annos = getLineAnnotations(line); if (annos == null) return null; if (annos.getCount() <= 1) return null; return annos.getPasive(); }
/** Activate next annotation on the line. Used for cycling * through the annotations */ public AnnotationDesc activateNextAnnotation(int line) { LineAnnotations annos = getLineAnnotations(line); if (annos == null) return null; AnnotationDesc aa = annos.activateNext(); refreshLine(line); return aa; }
/** Return list of pasive annotations which should be drawn on the backgorund */ public AnnotationDesc[] getPasiveAnnotations(int line) { LineAnnotations annos = getLineAnnotations(line); if (annos == null) return null; if (annos.getCount() <= 1) return null; return annos.getPasive(); }
/** * Activate next annotation on the line. Used for cycling through the * annotations */ public AnnotationDesc activateNextAnnotation(int line) { LineAnnotations annos = getLineAnnotations(line); if (annos == null) return null; AnnotationDesc aa = annos.activateNext(); refreshLine(line); return aa; }
/** * Move annotation in front of others. The activated annotation is moved in * front of other annotations on the same line */ public void frontAnnotation(AnnotationDesc anno) { int line = anno.getLine(); LineAnnotations annos = getLineAnnotations(line); if (annos == null) return; annos.activate(anno); refreshLine(line); }
/** Move annotation in front of others. The activated annotation * is moved in front of other annotations on the same line */ public void frontAnnotation(AnnotationDesc anno) { int line = anno.getLine(); LineAnnotations annos = getLineAnnotations(line); if (annos == null) return; annos.activate(anno); refreshLine(line); }
LineAnnotations annos = getLineAnnotations(line); Map types = new HashMap(AnnotationTypes.getTypes().getVisibleAnnotationTypeNamesCount() * 4 / 3);
private void initMenu(JMenu pm, BaseKit kit, int line){ LineAnnotations annos = getLineAnnotations(line); Map types = new HashMap(AnnotationTypes.getTypes().getVisibleAnnotationTypeNamesCount() * 4/3);
lineAnnos = getLineAnnotations(anno.getLine()); if (lineAnnos == null) { lineAnnos = new LineAnnotations();
LineAnnotations lineAnnos = getLineAnnotations(anno.getLine()); if (lineAnnos == null) { lineAnnos = new LineAnnotations();