Java Doc for BaseTextUI.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
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.TextUI
         org.netbeans.editor.BaseTextUI

BaseTextUI
public class BaseTextUI extends TextUI implements ViewFactory,PropertyChangeListener,DocumentListener(Code)
Text UI implementation
author:
   Miloslav Metelka
version:
   1.00

Inner Class :class RootView extends BaseView

Field Summary
 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 static  ComponentUIcreateUI(JComponent c)
    
public  voiddamageRange(JTextComponent c, int p0, int p1)
    
public  voiddamageRange(JTextComponent t, int p0, int p1, Position.Bias p0Bias, Position.Bias p1Bias)
     Causes the portion of the view responsible for the given part of the model to be repainted.
public  intgetBaseX(int y)
    
public  EditorKitgetEditorKit(JTextComponent c)
     Fetches the EditorKit for the UI.
public  EditorUIgetEditorUI()
     Get extended UI.
static  JTextComponentgetFocusedComponent()
    
public  DimensiongetMaximumSize(JComponent c)
     Gets the maximum size for the editor component.
public  DimensiongetMinimumSize(JComponent c)
     Gets the minimum size for the editor component.
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)
    
public  DimensiongetPreferredSize(JComponent c)
     Gets the preferred size for the editor component.
public  ViewgetRootView(JTextComponent c)
     Fetches a root view of the view hierarchy.
public  intgetYFromPos(int pos)
    
public  voidinsertUpdate(DocumentEvent evt)
     Insert to document notification.
public  voidinstallUI(JComponent c)
     Installs the UI for a component.
public  voidinvalidateStartY()
    
protected  voidmodelChanged(BaseDocument oldDoc, BaseDocument newDoc)
    
public  RectanglemodelToView(JTextComponent c, int pos)
     Similair to modelToView() but without acquiring the document read lock.
public  RectanglemodelToView(JTextComponent c, int pos, Position.Bias bias)
    
 voidmodelToViewDG(int pos, DrawGraphics dg)
    
public  voidpaint(Graphics g, JComponent c)
     Paint the UI.
 voidpaintRegion(Graphics g)
    
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.
public  voidremoveUpdate(DocumentEvent evt)
     Remove from document notification.
public  voiduninstallUI(JComponent c)
    
 voidupdateHeight()
    
public  intviewToModel(JTextComponent c, Point pt)
    
public  intviewToModel(JTextComponent c, int x, int y)
    
public  intviewToModel(JTextComponent c, Point pt, Position.Bias[] biasReturn)
    

Field Detail
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 associateddocument.



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



createUI
public static ComponentUI createUI(JComponent c)(Code)



damageRange
public void damageRange(JTextComponent c, int p0, int p1)(Code)



damageRange
public void damageRange(JTextComponent t, int p0, int p1, Position.Bias p0Bias, Position.Bias p1Bias)(Code)
Causes the portion of the view responsible for the given part of the model to be repainted.
Parameters:
  p0 - the beginning of the range >= 0
Parameters:
  p1 - the end of the range >= p0



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
static JTextComponent getFocusedComponent()(Code)



getMaximumSize
public Dimension getMaximumSize(JComponent c)(Code)
Gets the maximum size for the editor component.
Parameters:
  c - the editor component the size



getMinimumSize
public Dimension getMinimumSize(JComponent c)(Code)
Gets the minimum size for the editor component.
Parameters:
  c - the editor component the size



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)



getPreferredSize
public Dimension getPreferredSize(JComponent c)(Code)
Gets the preferred size for the editor component. If the component has been given a size prior to receiving this request, it will set the size of the view hierarchy to reflect the size of the component before requesting the preferred size of the view hierarchy. This allows formatted views to format to the current component size before answering the request. Other views don't care about currently formatted size and give the same answer either way.
Parameters:
  c - the editor component the size



getRootView
public View getRootView(JTextComponent c)(Code)
Fetches a root view of the view hierarchy.



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



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



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



invalidateStartY
public void invalidateStartY()(Code)



modelChanged
protected void modelChanged(BaseDocument oldDoc, BaseDocument newDoc)(Code)
Called when the model of component is changed



modelToView
public Rectangle modelToView(JTextComponent c, int pos) throws BadLocationException(Code)
Similair to modelToView() but without acquiring the document read lock.



modelToView
public Rectangle modelToView(JTextComponent c, int pos, Position.Bias bias) throws BadLocationException(Code)



modelToViewDG
void modelToViewDG(int pos, DrawGraphics dg) throws BadLocationException(Code)



paint
public void paint(Graphics g, JComponent c)(Code)
Paint the UI.
Parameters:
  g - the graphics context
Parameters:
  c - the editor component



paintRegion
void paintRegion(Graphics g)(Code)
Paint either image region or classic graphics region



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.



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



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



updateHeight
void updateHeight()(Code)
Update height of the views



viewToModel
public int viewToModel(JTextComponent c, Point pt)(Code)



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



viewToModel
public int viewToModel(JTextComponent c, Point pt, Position.Bias[] biasReturn)(Code)



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)

Methods inherited from javax.swing.plaf.ComponentUI
public boolean contains(JComponent c, int x, int y)(Code)(Java Doc)
public static ComponentUI createUI(JComponent c)(Code)(Java Doc)
public Accessible getAccessibleChild(JComponent c, int i)(Code)(Java Doc)
public int getAccessibleChildrenCount(JComponent c)(Code)(Java Doc)
public int getBaseline(JComponent c, int width, int height)(Code)(Java Doc)
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)(Java Doc)
public Dimension getMaximumSize(JComponent c)(Code)(Java Doc)
public Dimension getMinimumSize(JComponent c)(Code)(Java Doc)
public Dimension getPreferredSize(JComponent c)(Code)(Java Doc)
public void installUI(JComponent c)(Code)(Java Doc)
public void paint(Graphics g, JComponent c)(Code)(Java Doc)
public void uninstallUI(JComponent c)(Code)(Java Doc)
public void update(Graphics g, JComponent c)(Code)(Java Doc)

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.