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


01:        package bluej.editor;
02:
03:        /**
04:         * A LineColumn object groups two pieces of information: the line number and the column number.
05:         * They represent a position in the editor's text.
06:         * A text location represents the gap to the left of the position identified, so
07:         * that (0, 0) is the start of the file, (0, 1) is between the first and
08:         * second characters in the file, and so on. There is a LineColumn position to
09:         * the right of the last character on a line. 
10:         *
11:         * @definition An invalid LineColumn is one that, at the time of use, points to an area outside the
12:         * text being edited.
13:         * 
14:         * @version $Id: LineColumn.java 2920 2004-08-20 08:02:09Z damiano $
15:         */
16:
17:        /*
18:         * @author Damiano Bolla, University of Kent at Canterbury, 2004
19:         */
20:        public class LineColumn {
21:            private int line, column;
22:
23:            /**
24:             * Create a LineColumn representing the text position at the specified line and column
25:             *
26:             * @param  line    a line number starting from 0
27:             * @param  column  a column number starting from 0
28:             */
29:            public LineColumn(int line, int column) {
30:                this .line = line;
31:                this .column = column;
32:            }
33:
34:            /**
35:             * Sets the line of the text position, leaves the column unchanged.
36:             *
37:             * @param  line  the line number starting from zero
38:             */
39:            public void setLine(int line) {
40:                this .line = line;
41:            }
42:
43:            /**
44:             * Returns the line of this text position
45:             *
46:             * @return    the line number of this text position
47:             */
48:            public int getLine() {
49:                return line;
50:            }
51:
52:            /**
53:             * Sets the column where this caret should be, leaves the line unchanged.
54:             *
55:             * @param  column  the column number starting from zero
56:             */
57:            public void setColumn(int column) {
58:                this .column = column;
59:            }
60:
61:            /**
62:             * Returns the column of this text location
63:             *
64:             * @return    the column number of this text location
65:             */
66:            public int getColumn() {
67:                return column;
68:            }
69:
70:            /**
71:             * Set both the line and column where of text location
72:             *
73:             * @param  line    a line number starting from zero
74:             * @param  column  a column number starting from zero
75:             */
76:            public void setLineColumn(int line, int column) {
77:                this .line = line;
78:                this .column = column;
79:            }
80:
81:            /**
82:             * Returns a string representation of this object.
83:             *
84:             * @return a string that represents this object status
85:             */
86:            public String toString() {
87:                return "line=" + line + " column=" + column;
88:            }
89:
90:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.