Source Code Cross Referenced for SyntaxStyle.java in  » Database-Client » squirrel-sql-2.6.5a » net » sourceforge » squirrel_sql » plugins » syntax » 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 » Database Client » squirrel sql 2.6.5a » net.sourceforge.squirrel_sql.plugins.syntax 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package net.sourceforge.squirrel_sql.plugins.syntax;
002:
003:        /*
004:         * Copyright (C) 2003 Colin Bell
005:         * colbell@users.sourceforge.net
006:         * 
007:         * This is based on the text editor demonstration class that comes with
008:         * the Ostermiller Syntax Highlighter Copyright (C) 2001 Stephen Ostermiller 
009:         * http://ostermiller.org/contact.pl?regarding=Syntax+Highlighting
010:         *
011:         * This program is free software; you can redistribute it and/or
012:         * modify it under the terms of the GNU General Public License
013:         * as published by the Free Software Foundation; either version 2
014:         * of the License, or any later version.
015:         *
016:         * This program is distributed in the hope that it will be useful,
017:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
018:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
019:         * GNU General Public License for more details.
020:         *
021:         * You should have received a copy of the GNU General Public License
022:         * along with this program; if not, write to the Free Software
023:         * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
024:         */
025:        import java.awt.Color;
026:
027:        /**
028:         * Defines the attributes for a syntax style.
029:         *
030:         * @author  <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
031:         */
032:        public class SyntaxStyle {
033:            /** name fo this style. */
034:            private String _name;
035:
036:            /** Is this an italic style. */
037:            private boolean _isItalic = false;
038:
039:            /** Is this an bold style. */
040:            private boolean _isBold = false;
041:
042:            private int _textRGB = Color.black.getRGB();
043:
044:            private int _backgroundRGB = Color.white.getRGB();
045:
046:            /**
047:             * Default ctor.
048:             */
049:            public SyntaxStyle() {
050:                super ();
051:            }
052:
053:            /**
054:             * Copy ctor.
055:             */
056:            public SyntaxStyle(SyntaxStyle rhs) {
057:                super ();
058:                setName(rhs.getName());
059:                setItalic(rhs.isItalic());
060:                setBold(rhs.isBold());
061:                setTextRGB(rhs.getTextRGB());
062:                setBackgroundRGB(rhs.getBackgroundRGB());
063:            }
064:
065:            /**
066:             * Retrieve the name of this style.
067:             * 
068:             * @return	The name of this style.
069:             */
070:            public String getName() {
071:                return _name;
072:            }
073:
074:            /**
075:             * Set the name of this style.
076:             * 
077:             * @value	The name of this style.
078:             */
079:            public void setName(String value) {
080:                _name = value;
081:            }
082:
083:            /**
084:             * Is this an italic style?
085:             * 
086:             * @return	<TT>true</TT> if this is an italic style.
087:             */
088:            public boolean isItalic() {
089:                return _isItalic;
090:            }
091:
092:            /**
093:             * Specify whether this is an italic style.
094:             * 
095:             * @param	value	<TT>true</TT> if this is an italic style.
096:             */
097:            public void setItalic(boolean value) {
098:                _isItalic = value;
099:            }
100:
101:            /**
102:             * Is this a bold style?
103:             * 
104:             * @return	<TT>true</TT> if this is a bold style.
105:             */
106:            public boolean isBold() {
107:                return _isBold;
108:            }
109:
110:            /**
111:             * Specify whether this is a bold style.
112:             * 
113:             * @param	value	<TT>true</TT> if this is a bold style.
114:             */
115:            public void setBold(boolean value) {
116:                _isBold = value;
117:            }
118:
119:            /**
120:             * Retrieve the RGB value for the text color.
121:             * 
122:             * @return	RGB value for text color.
123:             */
124:            public int getTextRGB() {
125:                return _textRGB;
126:            }
127:
128:            /**
129:             * Set the RGB value for the text color.
130:             * 
131:             * @param	value	The RGB value for text color.
132:             */
133:            public void setTextRGB(int value) {
134:                _textRGB = value;
135:            }
136:
137:            /**
138:             * Retrieve the RGB value for the background color.
139:             * 
140:             * @return	RGB value for text color.
141:             */
142:            public int getBackgroundRGB() {
143:                return _backgroundRGB;
144:            }
145:
146:            /**
147:             * Set the RGB value for the background color.
148:             * 
149:             * @param	value	The RGB value for text color.
150:             */
151:            public void setBackgroundRGB(int value) {
152:                _backgroundRGB = value;
153:            }
154:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.