Source Code Cross Referenced for DrawContext.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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *                 Sun Public License Notice
003:         * 
004:         * The contents of this file are subject to the Sun Public License
005:         * Version 1.0 (the "License"). You may not use this file except in
006:         * compliance with the License. A copy of the License is available at
007:         * http://www.sun.com/
008:         * 
009:         * The Original Code is NetBeans. The Initial Developer of the Original
010:         * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
011:         * Microsystems, Inc. All Rights Reserved.
012:         */
013:
014:        package org.netbeans.editor;
015:
016:        import java.awt.Color;
017:        import java.awt.Font;
018:
019:        /**
020:         * This interface provides methods for getting and setting various drawing
021:         * attributes. During painting draw layer receives draw context and it is
022:         * expected to either leave draw parameters as they are or change them.
023:         * 
024:         * @author Miloslav Metelka
025:         * @version 1.00
026:         */
027:
028:        public interface DrawContext {
029:
030:            /** Get current foreground color */
031:            public Color getForeColor();
032:
033:            /** Set current foreground color */
034:            public void setForeColor(Color foreColor);
035:
036:            /** Get current background color */
037:            public Color getBackColor();
038:
039:            /** Set current background color */
040:            public void setBackColor(Color backColor);
041:
042:            /** Get current underline color */
043:            public Color getUnderlineColor();
044:
045:            /** Set current underline color */
046:            public void setUnderlineColor(Color underlineColor);
047:
048:            /** Get current strike-through color */
049:            public Color getStrikeThroughColor();
050:
051:            /** Set current underline color */
052:            public void setStrikeThroughColor(Color strikeThroughColor);
053:
054:            /** Get current font */
055:            public Font getFont();
056:
057:            /** Set current font */
058:            public void setFont(Font font);
059:
060:            /**
061:             * Get start position of the drawing. This value stays unchanged during the
062:             * line-number drawing.
063:             */
064:            public int getStartOffset();
065:
066:            /**
067:             * Get end position of the drawing. This value stays unchanged during the
068:             * line-number drawing.
069:             */
070:            public int getEndOffset();
071:
072:            /**
073:             * Is current drawing position at the begining of the line? This flag is
074:             * undefined for the line-number drawing.
075:             */
076:            public boolean isBOL();
077:
078:            /**
079:             * Is current drawing position at the end of the line This flag is undefined
080:             * for the line-number drawing.
081:             */
082:            public boolean isEOL();
083:
084:            /** Get draw info for the component that is currently drawn. */
085:            public EditorUI getEditorUI();
086:
087:            /**
088:             * Get token type number according to the appropriate syntax scanner
089:             */
090:            public TokenID getTokenID();
091:
092:            /** Get the token-context-path for the token */
093:            public TokenContextPath getTokenContextPath();
094:
095:            /** Get starting position in the document of the token being drawn */
096:            public int getTokenOffset();
097:
098:            /** Get length of the token text */
099:            public int getTokenLength();
100:
101:            /**
102:             * Get the starting position in the document of the fragment of the token
103:             * being drawn.
104:             */
105:            public int getFragmentOffset();
106:
107:            /**
108:             * Get the length of the fragment of the token being drawn
109:             */
110:            public int getFragmentLength();
111:
112:            /**
113:             * Get the buffer with the characters being drawn. No changes can be done to
114:             * characters in the buffer.
115:             */
116:            public char[] getBuffer();
117:
118:            /**
119:             * Get the position in the document where the buffer starts. The area
120:             * between <tt>getDrawStartOffset()</tt> and <tt>getDrawEndOffset</tt>
121:             * will contain valid characters. However the first token can start even
122:             * under <tt>getDrawStartOffset()</tt>. In this case the valid area
123:             * starts at <tt>getTokenOffset()</tt> of the first token.
124:             */
125:            public int getBufferStartOffset();
126:
127:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.