Java Doc for SyntaxContent.java in  » Net » SkunkDAV » org » skunk » swing » text » syntax » 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 » Net » SkunkDAV » org.skunk.swing.text.syntax 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.text.GapContent
   org.skunk.swing.text.syntax.SyntaxContent

SyntaxContent
public class SyntaxContent extends GapContent (Code)



Constructor Summary
public  SyntaxContent()
     constructs a new SyntaxContent object, with a Flexicizer SyntaxTokenizer.
public  SyntaxContent(int initialLength)
     constructs a new SyntaxContent object with the given initial length.
public  SyntaxContent(SyntaxTokenizer tokenizer)
     constructs a new SyntaxContent object with the given SyntaxTokenizer.

Method Summary
public  FileModegetFileMode()
     returns the file mode of this tokenizer.
public  GappedIntArraygetStyleBuffer()
    
public  SyntaxTokenizergetSyntaxTokenizer()
    
public  UndoableEditinsertString(int where, String str)
     insert string into the content at the given offset.
public  booleanisTokenizing()
     says whether tokenization is on.
public  UndoableEditremove(int where, int nitems)
     removes characters from the content.
public  voidsetFileMode(FileMode mode)
     sets the file mode.
protected  voidsetSyntaxDocument(SyntaxDocument syntaxDocument)
     gives the content object a reference to the document.
public  voidsetSyntaxTokenizer(SyntaxTokenizer syntaxTokenizer)
     applies a syntax tokenizer.
public  voidsetTokenizing(boolean tokenizing)
     sets tokenization on.


Constructor Detail
SyntaxContent
public SyntaxContent()(Code)
constructs a new SyntaxContent object, with a Flexicizer SyntaxTokenizer.



SyntaxContent
public SyntaxContent(int initialLength)(Code)
constructs a new SyntaxContent object with the given initial length.
Parameters:
  initialLength - the initial length



SyntaxContent
public SyntaxContent(SyntaxTokenizer tokenizer)(Code)
constructs a new SyntaxContent object with the given SyntaxTokenizer.
Parameters:
  tokenizer - the SyntaxTokenizer to install




Method Detail
getFileMode
public FileMode getFileMode()(Code)
returns the file mode of this tokenizer. the file mode, or null if the tokenizer currently has no mode



getStyleBuffer
public GappedIntArray getStyleBuffer()(Code)
gives access to the style buffer



getSyntaxTokenizer
public SyntaxTokenizer getSyntaxTokenizer()(Code)
gives access to the syntax tokenizer



insertString
public UndoableEdit insertString(int where, String str) throws BadLocationException(Code)
insert string into the content at the given offset. overridden to allocate space in the style buffer for the insert, and to tokenize the document.
Parameters:
  where - the offset into the document where the insert should begin
Parameters:
  str - the string to insert
exception:
  BadLocationException - if the offset is greater than the document length



isTokenizing
public boolean isTokenizing()(Code)
says whether tokenization is on. If it returns true, the syntaxDocument and syntaxTokenizer must both be non-null whether tokenization is on.



remove
public UndoableEdit remove(int where, int nitems) throws BadLocationException(Code)
removes characters from the content. overridden to deallocate space from the styleBuffer, and to tokenize the document.
Parameters:
  where - the offset of the removal
Parameters:
  nitems - the number of characters to remove
exception:
  BadLocationException - if the parameters are out of bounds



setFileMode
public void setFileMode(FileMode mode)(Code)
sets the file mode.
Parameters:
  mode - the file mode



setSyntaxDocument
protected void setSyntaxDocument(SyntaxDocument syntaxDocument)(Code)
gives the content object a reference to the document. A hack, but it needs this at present to call the tokenizer's tokenize() method.
Parameters:
  syntaxDocument - the SyntaxDocument which owns this content object



setSyntaxTokenizer
public void setSyntaxTokenizer(SyntaxTokenizer syntaxTokenizer)(Code)
applies a syntax tokenizer.
Parameters:
  syntaxTokenizer - the tokenizer



setTokenizing
public void setTokenizing(boolean tokenizing)(Code)
sets tokenization on. If there is no tokenizer installed, or if the syntaxDocument is null, isTokenizing() will return false, regardless of the value set here.
Parameters:
  tokenizing - whether to tokenize



Methods inherited from javax.swing.text.GapContent
protected Object allocateArray(int len)(Code)(Java Doc)
public Position createPosition(int offset) throws BadLocationException(Code)(Java Doc)
protected int getArrayLength()(Code)(Java Doc)
public void getChars(int where, int len, Segment chars) throws BadLocationException(Code)(Java Doc)
protected Vector getPositionsInRange(Vector v, int offset, int length)(Code)(Java Doc)
public String getString(int where, int len) throws BadLocationException(Code)(Java Doc)
public UndoableEdit insertString(int where, String str) throws BadLocationException(Code)(Java Doc)
public int length()(Code)(Java Doc)
public UndoableEdit remove(int where, int nitems) throws BadLocationException(Code)(Java Doc)
protected void resetMarksAtZero()(Code)(Java Doc)
protected void shiftEnd(int newSize)(Code)(Java Doc)
protected void shiftGap(int newGapStart)(Code)(Java Doc)
protected void shiftGapEndUp(int newGapEnd)(Code)(Java Doc)
protected void shiftGapStartDown(int newGapStart)(Code)(Java Doc)
protected void updateUndoPositions(Vector positions, int offset, int length)(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.