Java Doc for DocMarks.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.DocMarks

DocMarks
final class DocMarks (Code)
Document marks enable to store position and line information to simplify orientation in the document. They are stored in the array with a gap similar like in javax.swing.text.GapContent .
author:
   Miloslav Metelka
version:
   1.00

Inner Class :abstract static class Renderer

Field Summary
 MarkstartMark
    
 intunusedMarksCount
     Number of marks that are still in the marks array but that have the valid flag set to false.

Constructor Summary
 DocMarks()
    

Method Summary
 voidcheck()
     Check whether the marks offsets and lines are sorted correctly.
synchronized  voiddispose(Mark mark)
    
 intfindIndex(Mark mark)
     Find the index of the given mark.
Parameters:
  mark - for which the index is being searched.
 intfindInsertIndex(int offset, boolean backwardBias)
     Find the index at which it's valid to perform an insert of the new mark.
Parameters:
  offset - offset of the mark
Parameters:
  backwardBias - whether the mark has backward or forward bias.
synchronized  MarkgetLeftMark(int offset, Class markClass)
     Get the mark with offset lower than the parameter.
Parameters:
  offset - requested offset
Parameters:
  markClass - class of the mark to be found.
synchronized  intgetLine(Mark mark)
    
synchronized  MarkgetMarkFromLine(int line)
     Gets the nearest lower position for specified line.
synchronized  intgetMarksCount()
    
synchronized  intgetOffset(Mark mark)
    
synchronized  MarkgetOffsetMark(int offset, Class markClass)
     Get mark that is right at given offset or null.
Parameters:
  offset - offset where the mark should be found.
Parameters:
  markClass - class of the mark to be found.
synchronized  voidinsert(Mark mark)
     Insert mark.
Parameters:
  mark - mark to insert.
synchronized  voidremove(Mark mark)
    
public synchronized  voidrender(Renderer r)
     Render marks by some Renderer.
public  StringtoString()
     Get info about DocMarks.
public  StringtoStringDetail()
     List all the marks into string.
 StringtoStringDetail(Map testMarksMap)
    
synchronized  voidupdate(int offset, int line, int length, int lineCount)
     Document was modified.

Field Detail
startMark
Mark startMark(Code)



unusedMarksCount
int unusedMarksCount(Code)
Number of marks that are still in the marks array but that have the valid flag set to false.




Constructor Detail
DocMarks
DocMarks()(Code)




Method Detail
check
void check()(Code)
Check whether the marks offsets and lines are sorted correctly.



dispose
synchronized void dispose(Mark mark)(Code)



findIndex
int findIndex(Mark mark)(Code)
Find the index of the given mark.
Parameters:
  mark - for which the index is being searched. index >=0 or <0 if the mark was not found.



findInsertIndex
int findInsertIndex(int offset, boolean backwardBias)(Code)
Find the index at which it's valid to perform an insert of the new mark.
Parameters:
  offset - offset of the mark
Parameters:
  backwardBias - whether the mark has backward or forward bias. index >= 0 and <=marks.length in the marksarray where the insert of the mark with the given offset and biascan be done.
If there is more marks with the same offset and bias as therequested ones then the index after these marks is returned. ThegapStart is preferred by the method over the gapEndautomatically.



getLeftMark
synchronized Mark getLeftMark(int offset, Class markClass)(Code)
Get the mark with offset lower than the parameter.
Parameters:
  offset - requested offset
Parameters:
  markClass - class of the mark to be found. It can be null to accept anymark.



getLine
synchronized int getLine(Mark mark)(Code)



getMarkFromLine
synchronized Mark getMarkFromLine(int line)(Code)
Gets the nearest lower position for specified line. This method can be used when the only line information is available and the position is needed (i.e. setting breakpoints, going to line with error etc).
Parameters:
  line - line offset for which we want mark mark with lower or equal line. Caution! When the caller gets themark and it usually tries to get position of returned mark.However the mark can be removed meantime and call getOffset()will throw InvalidMarkException. In that casecaller should call getMarkFromLine() again to getanother mark and retry.



getMarksCount
synchronized int getMarksCount()(Code)



getOffset
synchronized int getOffset(Mark mark)(Code)



getOffsetMark
synchronized Mark getOffsetMark(int offset, Class markClass)(Code)
Get mark that is right at given offset or null.
Parameters:
  offset - offset where the mark should be found.
Parameters:
  markClass - class of the mark to be found. It can be null to accept anymark.



insert
synchronized void insert(Mark mark)(Code)
Insert mark.
Parameters:
  mark - mark to insert. The mark must have the valid offset and theline filled in.



remove
synchronized void remove(Mark mark)(Code)



render
public synchronized void render(Renderer r)(Code)
Render marks by some Renderer. It is the most efficient way to handle especially multiple adjacent marks. Rendering function is called in synchronized manner, so no one will modify mark array while executing this function.



toString
public String toString()(Code)
Get info about DocMarks.



toStringDetail
public String toStringDetail()(Code)
List all the marks into string.



toStringDetail
String toStringDetail(Map testMarksMap)(Code)



update
synchronized void update(int offset, int line, int length, int lineCount)(Code)
Document was modified. This means that the ficitonal data gap must be updated by the modifiaction. The data gap can possibly be moved and the marks in the moved area must be updated accordingly.
Parameters:
  offset - offset of the modification
Parameters:
  line - line of modification. It is populated for removals only.
Parameters:
  length - length of added/removed data. If the length is positive thenthe insert occured. If the length is negative then the removalhas occured.
Parameters:
  lineCount - number of line separators in the added/removed part. It is<0 for removals.



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.