Java Doc for BaseTextUI.java in  » IDE-Netbeans » editor » 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 » IDE Netbeans » editor » org.netbeans.editor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.plaf.TextUI
   javax.swing.plaf.basic.BasicTextUI
      org.netbeans.editor.BaseTextUI

BaseTextUI
public class BaseTextUI extends BasicTextUI implements PropertyChangeListener,DocumentListener,SettingsChangeListener(Code)
Text UI implementation
author:
   Miloslav Metelka, Martin Roskanin
version:
   1.00

Inner Class :static class UIWatcher implements PropertyChangeListener

Field Summary
final static  StringPROP_DEFAULT_CARET_BLINK_RATE
    
 intcomponentID
    

Constructor Summary
public  BaseTextUI()
    

Method Summary
public  voidchangedUpdate(DocumentEvent evt)
     The change in document notification.
public  Viewcreate(Element elem)
     Creates a view for an element.
public  Viewcreate(Element elem, int p0, int p1)
     Creates a view for an element.
public  voiddamageRange(JTextComponent t, int p0, int p1, Bias p0Bias, Bias p1Bias)
    
public  intgetBaseX(int y)
    
public  EditorKitgetEditorKit(JTextComponent c)
     Fetches the EditorKit for the UI.
public  EditorUIgetEditorUI()
     Get extended UI.
public static  JTextComponentgetFocusedComponent()
    
public  intgetNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet)
     Next visually represented model location where caret can be placed.
public  intgetPosFromY(int y)
    
protected  StringgetPropertyPrefix()
    
public  intgetYFromPos(int pos)
    
public  voidinsertUpdate(DocumentEvent evt)
     Insert to document notification.
protected  voidinstallKeyboardActions()
    
public  voidinstallUI(JComponent c)
     Installs the UI for a component.
public  voidinvalidateStartY()
    
 booleanisFoldingEnabled()
    
protected  booleanisRootViewReplaceNecessary()
    
protected  voidmodelChanged()
    
public  voidpreferenceChanged(boolean width, boolean height)
     Specifies that some preference has changed.
public  voidpropertyChange(PropertyChangeEvent evt)
     This method gets called when a bound property is changed.
protected  voidrefresh()
    
public  voidremoveUpdate(DocumentEvent evt)
     Remove from document notification.
protected  voidrootViewReplaceNotify()
    
public  voidsettingsChange(SettingsChangeEvent evt)
    
public  voiduninstallUI(JComponent c)
    
static  voiduninstallUIWatcher(JTextComponent c)
    
public  intviewToModel(JTextComponent c, int x, int y)
    

Field Detail
PROP_DEFAULT_CARET_BLINK_RATE
final static String PROP_DEFAULT_CARET_BLINK_RATE(Code)



componentID
int componentID(Code)
ID of the component in registry




Constructor Detail
BaseTextUI
public BaseTextUI()(Code)




Method Detail
changedUpdate
public void changedUpdate(DocumentEvent evt)(Code)
The change in document notification.
Parameters:
  evt - The change notification from the currently associated document.



create
public View create(Element elem)(Code)
Creates a view for an element.
Parameters:
  elem - the element the newly created view or null



create
public View create(Element elem, int p0, int p1)(Code)
Creates a view for an element.
Parameters:
  elem - the element
Parameters:
  p0 - the starting offset >= 0
Parameters:
  p1 - the ending offset >= p0 the view



damageRange
public void damageRange(JTextComponent t, int p0, int p1, Bias p0Bias, Bias p1Bias)(Code)



getBaseX
public int getBaseX(int y)(Code)



getEditorKit
public EditorKit getEditorKit(JTextComponent c)(Code)
Fetches the EditorKit for the UI. the component capabilities



getEditorUI
public EditorUI getEditorUI()(Code)
Get extended UI. This is called from views to get correct extended UI.



getFocusedComponent
public static JTextComponent getFocusedComponent()(Code)



getNextVisualPositionFrom
public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException(Code)
Next visually represented model location where caret can be placed. This version works without placing read lock on the document.



getPosFromY
public int getPosFromY(int y) throws BadLocationException(Code)



getPropertyPrefix
protected String getPropertyPrefix()(Code)



getYFromPos
public int getYFromPos(int pos) throws BadLocationException(Code)



insertUpdate
public void insertUpdate(DocumentEvent evt)(Code)
Insert to document notification.



installKeyboardActions
protected void installKeyboardActions()(Code)



installUI
public void installUI(JComponent c)(Code)
Installs the UI for a component.



invalidateStartY
public void invalidateStartY()(Code)



isFoldingEnabled
boolean isFoldingEnabled()(Code)



isRootViewReplaceNecessary
protected boolean isRootViewReplaceNecessary()(Code)



modelChanged
protected void modelChanged()(Code)
Called when the model of component is changed



preferenceChanged
public void preferenceChanged(boolean width, boolean height)(Code)
Specifies that some preference has changed.



propertyChange
public void propertyChange(PropertyChangeEvent evt)(Code)
This method gets called when a bound property is changed. We are looking for document changes on the component.



refresh
protected void refresh()(Code)



removeUpdate
public void removeUpdate(DocumentEvent evt)(Code)
Remove from document notification.



rootViewReplaceNotify
protected void rootViewReplaceNotify()(Code)



settingsChange
public void settingsChange(SettingsChangeEvent evt)(Code)



uninstallUI
public void uninstallUI(JComponent c)(Code)
Deinstalls the UI for a component



uninstallUIWatcher
static void uninstallUIWatcher(JTextComponent c)(Code)



viewToModel
public int viewToModel(JTextComponent c, int x, int y)(Code)



Methods inherited from javax.swing.plaf.basic.BasicTextUI
public View create(Element elem)(Code)(Java Doc)
public View create(Element elem, int p0, int p1)(Code)(Java Doc)
protected Caret createCaret()(Code)(Java Doc)
protected Highlighter createHighlighter()(Code)(Java Doc)
protected Keymap createKeymap()(Code)(Java Doc)
public void damageRange(JTextComponent tc, int p0, int p1)(Code)(Java Doc)
public void damageRange(JTextComponent t, int p0, int p1, Position.Bias p0Bias, Position.Bias p1Bias)(Code)(Java Doc)
final protected JTextComponent getComponent()(Code)(Java Doc)
public EditorKit getEditorKit(JTextComponent tc)(Code)(Java Doc)
protected String getKeymapName()(Code)(Java Doc)
public Dimension getMaximumSize(JComponent c)(Code)(Java Doc)
public Dimension getMinimumSize(JComponent c)(Code)(Java Doc)
public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException(Code)(Java Doc)
public Dimension getPreferredSize(JComponent c)(Code)(Java Doc)
abstract protected String getPropertyPrefix()(Code)(Java Doc)
public View getRootView(JTextComponent tc)(Code)(Java Doc)
public String getToolTipText(JTextComponent t, Point pt)(Code)(Java Doc)
protected Rectangle getVisibleEditorRect()(Code)(Java Doc)
protected void installDefaults()(Code)(Java Doc)
protected void installKeyboardActions()(Code)(Java Doc)
protected void installListeners()(Code)(Java Doc)
public void installUI(JComponent c)(Code)(Java Doc)
protected void modelChanged()(Code)(Java Doc)
public Rectangle modelToView(JTextComponent tc, int pos) throws BadLocationException(Code)(Java Doc)
public Rectangle modelToView(JTextComponent tc, int pos, Position.Bias bias) throws BadLocationException(Code)(Java Doc)
final public void paint(Graphics g, JComponent c)(Code)(Java Doc)
protected void paintBackground(Graphics g)(Code)(Java Doc)
protected void paintSafely(Graphics g)(Code)(Java Doc)
protected void propertyChange(PropertyChangeEvent evt)(Code)(Java Doc)
final protected void setView(View v)(Code)(Java Doc)
protected void uninstallDefaults()(Code)(Java Doc)
protected void uninstallKeyboardActions()(Code)(Java Doc)
protected void uninstallListeners()(Code)(Java Doc)
public void uninstallUI(JComponent c)(Code)(Java Doc)
public void update(Graphics g, JComponent c)(Code)(Java Doc)
public int viewToModel(JTextComponent tc, Point pt)(Code)(Java Doc)
public int viewToModel(JTextComponent tc, Point pt, Position.Bias[] biasReturn)(Code)(Java Doc)

Methods inherited from javax.swing.plaf.TextUI
abstract public void damageRange(JTextComponent t, int p0, int p1)(Code)(Java Doc)
abstract public void damageRange(JTextComponent t, int p0, int p1, Position.Bias firstBias, Position.Bias secondBias)(Code)(Java Doc)
abstract public EditorKit getEditorKit(JTextComponent t)(Code)(Java Doc)
abstract public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException(Code)(Java Doc)
abstract public View getRootView(JTextComponent t)(Code)(Java Doc)
public String getToolTipText(JTextComponent t, Point pt)(Code)(Java Doc)
abstract public Rectangle modelToView(JTextComponent t, int pos) throws BadLocationException(Code)(Java Doc)
abstract public Rectangle modelToView(JTextComponent t, int pos, Position.Bias bias) throws BadLocationException(Code)(Java Doc)
abstract public int viewToModel(JTextComponent t, Point pt)(Code)(Java Doc)
abstract public int viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn)(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.