Java Doc for Annotations.java in  » Swing-Library » abeille-forms-designer » org » netbeans » editor » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » abeille forms designer » org.netbeans.editor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.editor.Annotations

All known Subclasses:   org.netbeans.editor.GlyphGutter,
Annotations
public class Annotations implements DocumentListener(Code)
Annotations class act as data model containing all annotations attached to one document. Class uses instances of private class LineAnnotations for grouping of added annotations by line. These objects (LineAnnotations) are referenced from two collections. First one is Map where the key is Mark. It is used during the drawing in DrawLayerFactory.AnnotationLayer - when the mark appears in mark change, the LineAnnotations instance is found for it and the active annotation on the line can be queried. Second is List where the LineAnnotations are sorted by line number. This list is used for drawing the annotations in the gutter when the sequential order is important. The class also listen on document. It need to know how many lines where removed or added to refresh the LineAnnotations.line property.
author:
   David Konecny
since:
   07/2001

Inner Class :public static class LineAnnotations extends Object
Inner Class :public interface AnnotationsListener extends EventListener


Constructor Summary
public  Annotations(BaseDocument doc)
    

Method Summary
public  AnnotationDescactivateNextAnnotation(int line)
     Activate next annotation on the line.
public  voidaddAnnotation(AnnotationDesc anno)
    
public  voidaddAnnotationsListener(AnnotationsListener listener)
    
public  voidchangedUpdate(DocumentEvent e)
     Gives notification that an attribute or set of attributes changed.
public  JMenucreateMenu(BaseKit kit, int line)
     Creates popup menu with all actions for the given line.
public  JPopupMenucreatePopupMenu(BaseKit kit, int line)
     Creates popup menu with all actions for the given line.
protected  voidfireChangedAll()
    
protected  voidfireChangedLine(int line)
    
public  voidfrontAnnotation(AnnotationDesc anno)
     Move annotation in front of others.
public  AnnotationDescgetActiveAnnotation(Mark mark)
     Finds active annotation for the Mark.
public  AnnotationDescgetActiveAnnotation(int line)
     Returns the active annotation for the given line number.
public  AnnotationDescgetAnnotation(int line, String type)
    
public synchronized  DrawLayerFactory.AnnotationLayergetLayer()
    
protected  LineAnnotationsgetLineAnnotations(int line)
    
public  intgetNextLineWithAnnotation(int line)
    
public  intgetNumberOfAnnotations(int line)
    
public  AnnotationDesc[]getPasiveAnnotations(int line)
    
public  voidinsertUpdate(DocumentEvent e)
    
public  booleanisGlyphButtonColumn()
     Return whether this document has or had more annotations on one line.
public  booleanisGlyphColumn()
     Return whether this document has or had any glyph icon attached.
protected  voidrefreshLine(int line)
    
public  voidremoveAnnotation(AnnotationDesc anno)
    
public  voidremoveAnnotationsListener(AnnotationsListener listener)
    
public  voidremoveUpdate(DocumentEvent e)
    


Constructor Detail
Annotations
public Annotations(BaseDocument doc)(Code)




Method Detail
activateNextAnnotation
public AnnotationDesc activateNextAnnotation(int line)(Code)
Activate next annotation on the line. Used for cycling through the annotations



addAnnotation
public void addAnnotation(AnnotationDesc anno)(Code)
Add annotation



addAnnotationsListener
public void addAnnotationsListener(AnnotationsListener listener)(Code)
Add AnnotationsListener listener



changedUpdate
public void changedUpdate(DocumentEvent e)(Code)
Gives notification that an attribute or set of attributes changed.



createMenu
public JMenu createMenu(BaseKit kit, int line)(Code)
Creates popup menu with all actions for the given line.



createPopupMenu
public JPopupMenu createPopupMenu(BaseKit kit, int line)(Code)
Creates popup menu with all actions for the given line.



fireChangedAll
protected void fireChangedAll()(Code)
Fire AnnotationsListener.ChangedAll change



fireChangedLine
protected void fireChangedLine(int line)(Code)
Fire AnnotationsListener.ChangedLine change



frontAnnotation
public void frontAnnotation(AnnotationDesc anno)(Code)
Move annotation in front of others. The activated annotation is moved in front of other annotations on the same line



getActiveAnnotation
public AnnotationDesc getActiveAnnotation(Mark mark)(Code)
Finds active annotation for the Mark. It is called from DrawLayer when it found the DrawMark



getActiveAnnotation
public AnnotationDesc getActiveAnnotation(int line)(Code)
Returns the active annotation for the given line number. It is called from the glyph gutter



getAnnotation
public AnnotationDesc getAnnotation(int line, String type)(Code)
Get next line number with some annotation



getLayer
public synchronized DrawLayerFactory.AnnotationLayer getLayer()(Code)
Finds the drawing layer for annotations



getLineAnnotations
protected LineAnnotations getLineAnnotations(int line)(Code)
Finds LineAnnotations for the given line number



getNextLineWithAnnotation
public int getNextLineWithAnnotation(int line)(Code)
Get next line number with some annotation



getNumberOfAnnotations
public int getNumberOfAnnotations(int line)(Code)
Returns number of visible annotations on the line



getPasiveAnnotations
public AnnotationDesc[] getPasiveAnnotations(int line)(Code)
Return list of pasive annotations which should be drawn on the backgorund



insertUpdate
public void insertUpdate(DocumentEvent e)(Code)
Checks the number of inserted lines and recalculate LineAnnotations.line property



isGlyphButtonColumn
public boolean isGlyphButtonColumn()(Code)
Return whether this document has or had more annotations on one line. This method is called from glyph gutter to check whether the glyph cycling column should be drawn or not.



isGlyphColumn
public boolean isGlyphColumn()(Code)
Return whether this document has or had any glyph icon attached. This method is called from glyph gutter to check whether the glyph column should be drawn or not.



refreshLine
protected void refreshLine(int line)(Code)
Notify view that it is necessary to redraw the line of the document



removeAnnotation
public void removeAnnotation(AnnotationDesc anno)(Code)
Remove annotation



removeAnnotationsListener
public void removeAnnotationsListener(AnnotationsListener listener)(Code)
Remove AnnotationsListener listener



removeUpdate
public void removeUpdate(DocumentEvent e)(Code)
Checks the number of removed lines and recalculate LineAnnotations.line property



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.