站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Annotations.LineAnnotations (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Class Annotations.LineAnnotations

java.lang.Object
  extended by org.netbeans.editor.Annotations.LineAnnotations
Enclosing class:
Annotations

public static class Annotations.LineAnnotations
extends Object

Manager of all annotations attached to one line. Class stores the references to all annotations from one line in List and also stores which annotation is active, count of visible annotations and line number.


Constructor Summary
protected Annotations.LineAnnotations()
          Line number
 
Method Summary
 boolean activate(AnnotationDesc anno)
          Make the given annotation active.
 AnnotationDesc activateNext()
          Activate next annoation on the line.
 void addAnnotation(AnnotationDesc anno)
          Add annotation to this line and activate it.
 AnnotationDesc getActive()
          Return the active line annotation.
 Iterator getAnnotations()
           
 int getCount()
          Get count of visible annotations on the line
 int getLine()
          Getter for the line number property
 AnnotationDesc[] getPasive()
          Gets the array of all pasive and visible annotations
 boolean isMarkStillReferenced(Mark mark)
          Is this given mark still referenced by some annotation or it can be removed from the draw mark chain
 void refreshAnnotations()
          Refresh the active annotation and count of visible annotations.
 void removeAnnotation(AnnotationDesc anno)
          Remove annotation from this line.
 void setLine(int line)
          Setter for the line number property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Annotations.LineAnnotations

protected Annotations.LineAnnotations()
Line number

Method Detail

addAnnotation

public void addAnnotation(AnnotationDesc anno)
Add annotation to this line and activate it.


removeAnnotation

public void removeAnnotation(AnnotationDesc anno)
Remove annotation from this line. Refresh the active one and count of visible.


getActive

public AnnotationDesc getActive()
Return the active line annotation.


getLine

public int getLine()
Getter for the line number property


setLine

public void setLine(int line)
Setter for the line number property


getPasive

public AnnotationDesc[] getPasive()
Gets the array of all pasive and visible annotations


activate

public boolean activate(AnnotationDesc anno)
Make the given annotation active.


getCount

public int getCount()
Get count of visible annotations on the line


activateNext

public AnnotationDesc activateNext()
Activate next annoation on the line. Used during the cycling.


refreshAnnotations

public void refreshAnnotations()
Refresh the active annotation and count of visible annotations. This method is used after change of annotation type of some annotation on this line


isMarkStillReferenced

public boolean isMarkStillReferenced(Mark mark)
Is this given mark still referenced by some annotation or it can be removed from the draw mark chain


getAnnotations

public Iterator getAnnotations()

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.