Java Doc for MoeCaret.java in  » IDE » bluej-editor » bluej » editor » moe » 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 » bluej editor » bluej.editor.moe 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.awt.Rectangle
   javax.swing.text.DefaultCaret
      bluej.editor.moe.MoeCaret

MoeCaret
public class MoeCaret extends DefaultCaret (Code)
A customised caret for Moe. It gets most of its bahaviour from Swing's "DefaultCaret" and adds some functionality.
author:
   Michael Kolling



Constructor Summary
public  MoeCaret(MoeEditor editor)
    

Method Summary
protected  voidfireStateChanged()
     Fire a state canged event.
public  voidfocusLost(FocusEvent e)
     Target text component lost focus.
protected  voidmoveCaret(MouseEvent e)
     Tries to move the position of the caret from the coordinates of a mouse event, using viewToModel().
public  voidmoveDot(int pos)
     Set the dot position (leave the mark where it is).
public  voidpaintMatchingBracket()
    
protected  voidpositionCaret(MouseEvent e)
     Redefinition of caret positioning (after mouse click).
public  voidremoveBracket()
    
public  voidsetDot(int pos)
    
public  voidsetPersistentHighlight()
     Set the highlight (of the selection) as persistent - that is, it won't become invisible if the component loses focus.


Constructor Detail
MoeCaret
public MoeCaret(MoeEditor editor)(Code)
Constructs a Moe Caret




Method Detail
fireStateChanged
protected void fireStateChanged()(Code)
Fire a state canged event.



focusLost
public void focusLost(FocusEvent e)(Code)
Target text component lost focus.



moveCaret
protected void moveCaret(MouseEvent e)(Code)
Tries to move the position of the caret from the coordinates of a mouse event, using viewToModel(). This will cause a selection if the dot and mark are different.
Parameters:
  e - the mouse event



moveDot
public void moveDot(int pos)(Code)
Set the dot position (leave the mark where it is).



paintMatchingBracket
public void paintMatchingBracket()(Code)
paint matching bracket if caret is directly after a bracket



positionCaret
protected void positionCaret(MouseEvent e)(Code)
Redefinition of caret positioning (after mouse click). Here, we first check whether the click was in the tag line. If it was, we toggle the breakpoint, if not we just position the caret as usual.



removeBracket
public void removeBracket()(Code)
remove the existing matching bracket if it exists



setDot
public void setDot(int pos)(Code)
Set the dot and mark position



setPersistentHighlight
public void setPersistentHighlight()(Code)
Set the highlight (of the selection) as persistent - that is, it won't become invisible if the component loses focus. This lasts until the caret position is changed.



Fields inherited from javax.swing.text.DefaultCaret
final public static int ALWAYS_UPDATE(Code)(Java Doc)
final public static int NEVER_UPDATE(Code)(Java Doc)
final public static int UPDATE_WHEN_ON_EDT(Code)(Java Doc)
protected transient ChangeEvent changeEvent(Code)(Java Doc)
protected EventListenerList listenerList(Code)(Java Doc)

Methods inherited from javax.swing.text.DefaultCaret
public void addChangeListener(ChangeListener l)(Code)(Java Doc)
protected void adjustVisibility(Rectangle nloc)(Code)(Java Doc)
protected synchronized void damage(Rectangle r)(Code)(Java Doc)
public void deinstall(JTextComponent c)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void fireStateChanged()(Code)(Java Doc)
public void focusGained(FocusEvent e)(Code)(Java Doc)
public void focusLost(FocusEvent e)(Code)(Java Doc)
public int getBlinkRate()(Code)(Java Doc)
public ChangeListener[] getChangeListeners()(Code)(Java Doc)
final protected JTextComponent getComponent()(Code)(Java Doc)
public int getDot()(Code)(Java Doc)
public Position.Bias getDotBias()(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public Point getMagicCaretPosition()(Code)(Java Doc)
public int getMark()(Code)(Java Doc)
public Position.Bias getMarkBias()(Code)(Java Doc)
protected Highlighter.HighlightPainter getSelectionPainter()(Code)(Java Doc)
public int getUpdatePolicy()(Code)(Java Doc)
public void install(JTextComponent c)(Code)(Java Doc)
public boolean isActive()(Code)(Java Doc)
public boolean isSelectionVisible()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void mouseClicked(MouseEvent e)(Code)(Java Doc)
public void mouseDragged(MouseEvent e)(Code)(Java Doc)
public void mouseEntered(MouseEvent e)(Code)(Java Doc)
public void mouseExited(MouseEvent e)(Code)(Java Doc)
public void mouseMoved(MouseEvent e)(Code)(Java Doc)
public void mousePressed(MouseEvent e)(Code)(Java Doc)
public void mouseReleased(MouseEvent e)(Code)(Java Doc)
protected void moveCaret(MouseEvent e)(Code)(Java Doc)
public void moveDot(int dot)(Code)(Java Doc)
public void moveDot(int dot, Position.Bias dotBias)(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
protected void positionCaret(MouseEvent e)(Code)(Java Doc)
public void removeChangeListener(ChangeListener l)(Code)(Java Doc)
final protected synchronized void repaint()(Code)(Java Doc)
public void setBlinkRate(int rate)(Code)(Java Doc)
public void setDot(int dot)(Code)(Java Doc)
public void setDot(int dot, Position.Bias dotBias)(Code)(Java Doc)
public void setMagicCaretPosition(Point p)(Code)(Java Doc)
public void setSelectionVisible(boolean vis)(Code)(Java Doc)
public void setUpdatePolicy(int policy)(Code)(Java Doc)
public void setVisible(boolean e)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from java.awt.Rectangle
public int height(Code)(Java Doc)
public int width(Code)(Java Doc)
public int x(Code)(Java Doc)
public int y(Code)(Java Doc)

Methods inherited from java.awt.Rectangle
public void add(int newx, int newy)(Code)(Java Doc)
public void add(Point pt)(Code)(Java Doc)
public void add(Rectangle r)(Code)(Java Doc)
public boolean contains(Point p)(Code)(Java Doc)
public boolean contains(int x, int y)(Code)(Java Doc)
public boolean contains(Rectangle r)(Code)(Java Doc)
public boolean contains(int X, int Y, int W, int H)(Code)(Java Doc)
public Rectangle2D createIntersection(Rectangle2D r)(Code)(Java Doc)
public Rectangle2D createUnion(Rectangle2D r)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public Rectangle getBounds()(Code)(Java Doc)
public Rectangle2D getBounds2D()(Code)(Java Doc)
public double getHeight()(Code)(Java Doc)
public Point getLocation()(Code)(Java Doc)
public Dimension getSize()(Code)(Java Doc)
public double getWidth()(Code)(Java Doc)
public double getX()(Code)(Java Doc)
public double getY()(Code)(Java Doc)
public void grow(int h, int v)(Code)(Java Doc)
public boolean inside(int X, int Y)(Code)(Java Doc)
public Rectangle intersection(Rectangle r)(Code)(Java Doc)
public boolean intersects(Rectangle r)(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public void move(int x, int y)(Code)(Java Doc)
public int outcode(double x, double y)(Code)(Java Doc)
public void reshape(int x, int y, int width, int height)(Code)(Java Doc)
public void resize(int width, int height)(Code)(Java Doc)
public void setBounds(Rectangle r)(Code)(Java Doc)
public void setBounds(int x, int y, int width, int height)(Code)(Java Doc)
public void setLocation(Point p)(Code)(Java Doc)
public void setLocation(int x, int y)(Code)(Java Doc)
public void setRect(double x, double y, double width, double height)(Code)(Java Doc)
public void setSize(Dimension d)(Code)(Java Doc)
public void setSize(int width, int height)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void translate(int dx, int dy)(Code)(Java Doc)
public Rectangle union(Rectangle r)(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.