profligacy 0.2-jruby

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/COPYING +55 -0
  2. data/LICENSE +55 -0
  3. data/README +22 -0
  4. data/Rakefile +48 -0
  5. data/doc/rdoc/classes/Proc.html +152 -0
  6. data/doc/rdoc/classes/Proc.src/M000001.html +18 -0
  7. data/doc/rdoc/classes/Proc.src/M000002.html +18 -0
  8. data/doc/rdoc/classes/Profligacy.html +111 -0
  9. data/doc/rdoc/classes/Profligacy/Swing.html +113 -0
  10. data/doc/rdoc/classes/Profligacy/Swing/Build.html +238 -0
  11. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000003.html +23 -0
  12. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000004.html +18 -0
  13. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000005.html +45 -0
  14. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000006.html +18 -0
  15. data/doc/rdoc/classes/Profligacy/Swing/Build.src/M000007.html +22 -0
  16. data/doc/rdoc/classes/Profligacy/Swing/Listeners.html +123 -0
  17. data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.html +161 -0
  18. data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/M000008.html +18 -0
  19. data/doc/rdoc/classes/Profligacy/Swing/RunnableProc.src/M000009.html +18 -0
  20. data/doc/rdoc/created.rid +1 -0
  21. data/doc/rdoc/files/COPYING.html +168 -0
  22. data/doc/rdoc/files/LICENSE.html +168 -0
  23. data/doc/rdoc/files/README.html +127 -0
  24. data/doc/rdoc/files/lib/profligacy/swing_rb.html +108 -0
  25. data/doc/rdoc/fr_class_index.html +32 -0
  26. data/doc/rdoc/fr_file_index.html +30 -0
  27. data/doc/rdoc/fr_method_index.html +35 -0
  28. data/doc/rdoc/index.html +24 -0
  29. data/doc/rdoc/rdoc-style.css +208 -0
  30. data/examples/prefuse_sample.rb +62 -0
  31. data/examples/swing1.rb +19 -0
  32. data/examples/swing2.rb +26 -0
  33. data/examples/swing3.rb +38 -0
  34. data/examples/swing4.rb +34 -0
  35. data/examples/swing5.rb +31 -0
  36. data/examples/swing6.rb +33 -0
  37. data/examples/swing7.rb +37 -0
  38. data/examples/swing8.rb +64 -0
  39. data/lib/profligacy/swing.rb +139 -0
  40. data/tools/rakehelp.rb +121 -0
  41. metadata +88 -0
data/COPYING ADDED
@@ -0,0 +1,55 @@
1
+ Profligacy is copyrighted free software by Zed A. Shaw
2
+ <zedshaw at zedshaw dot com> You can redistribute it and/or modify it under
3
+ either the terms of the GPL or the conditions below:
4
+
5
+ 1. You may make and give away verbatim copies of the source form of the
6
+ software without restriction, provided that you duplicate all of the
7
+ original copyright notices and associated disclaimers.
8
+
9
+ 2. You may modify your copy of the software in any way, provided that
10
+ you do at least ONE of the following:
11
+
12
+ a) place your modifications in the Public Domain or otherwise make them
13
+ Freely Available, such as by posting said modifications to Usenet or an
14
+ equivalent medium, or by allowing the author to include your
15
+ modifications in the software.
16
+
17
+ b) use the modified software only within your corporation or
18
+ organization.
19
+
20
+ c) rename any non-standard executables so the names do not conflict with
21
+ standard executables, which must also be provided.
22
+
23
+ d) make other distribution arrangements with the author.
24
+
25
+ 3. You may distribute the software in object code or executable
26
+ form, provided that you do at least ONE of the following:
27
+
28
+ a) distribute the executables and library files of the software,
29
+ together with instructions (in the manual page or equivalent) on where
30
+ to get the original distribution.
31
+
32
+ b) accompany the distribution with the machine-readable source of the
33
+ software.
34
+
35
+ c) give non-standard executables non-standard names, with
36
+ instructions on where to get the original software distribution.
37
+
38
+ d) make other distribution arrangements with the author.
39
+
40
+ 4. You may modify and include the part of the software into any other
41
+ software (possibly commercial). But some files in the distribution
42
+ are not written by the author, so that they are not under this terms.
43
+
44
+ 5. The scripts and library files supplied as input to or produced as
45
+ output from the software do not automatically fall under the
46
+ copyright of the software, but belong to whomever generated them,
47
+ and may be sold commercially, and may be aggregated with this
48
+ software.
49
+
50
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
51
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
52
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
53
+ PURPOSE.
54
+
55
+
data/LICENSE ADDED
@@ -0,0 +1,55 @@
1
+ Profligacy is copyrighted free software by Zed A. Shaw
2
+ <zedshaw at zedshaw dot com> You can redistribute it and/or modify it under
3
+ either the terms of the GPL or the conditions below:
4
+
5
+ 1. You may make and give away verbatim copies of the source form of the
6
+ software without restriction, provided that you duplicate all of the
7
+ original copyright notices and associated disclaimers.
8
+
9
+ 2. You may modify your copy of the software in any way, provided that
10
+ you do at least ONE of the following:
11
+
12
+ a) place your modifications in the Public Domain or otherwise make them
13
+ Freely Available, such as by posting said modifications to Usenet or an
14
+ equivalent medium, or by allowing the author to include your
15
+ modifications in the software.
16
+
17
+ b) use the modified software only within your corporation or
18
+ organization.
19
+
20
+ c) rename any non-standard executables so the names do not conflict with
21
+ standard executables, which must also be provided.
22
+
23
+ d) make other distribution arrangements with the author.
24
+
25
+ 3. You may distribute the software in object code or executable
26
+ form, provided that you do at least ONE of the following:
27
+
28
+ a) distribute the executables and library files of the software,
29
+ together with instructions (in the manual page or equivalent) on where
30
+ to get the original distribution.
31
+
32
+ b) accompany the distribution with the machine-readable source of the
33
+ software.
34
+
35
+ c) give non-standard executables non-standard names, with
36
+ instructions on where to get the original software distribution.
37
+
38
+ d) make other distribution arrangements with the author.
39
+
40
+ 4. You may modify and include the part of the software into any other
41
+ software (possibly commercial). But some files in the distribution
42
+ are not written by the author, so that they are not under this terms.
43
+
44
+ 5. The scripts and library files supplied as input to or produced as
45
+ output from the software do not automatically fall under the
46
+ copyright of the software, but belong to whomever generated them,
47
+ and may be sold commercially, and may be aggregated with this
48
+ software.
49
+
50
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
51
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
52
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
53
+ PURPOSE.
54
+
55
+
data/README ADDED
@@ -0,0 +1,22 @@
1
+ = Profligacy: A Swing Improvement
2
+
3
+ == RubyForge Project
4
+
5
+ The project is hosted at:
6
+
7
+ http://ihate.rubyforge.org/profligacy/
8
+
9
+ Where you can file bugs and other things, as well as download gems manually.
10
+
11
+ == Motivation
12
+
13
+ == Installing
14
+
15
+ == License
16
+
17
+ See the COPYING file included with the source. It's the same license as Ruby but
18
+ Copyright Zed A. Shaw 2007 All Right Reserved.
19
+
20
+ == Source Code
21
+
22
+ Source is available from the ihate project page.
data/Rakefile ADDED
@@ -0,0 +1,48 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+ require 'rake/clean'
4
+ require 'rake/gempackagetask'
5
+ require 'rake/rdoctask'
6
+ require 'tools/rakehelp'
7
+ require 'fileutils'
8
+ include FileUtils
9
+
10
+ setup_tests
11
+ setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config", "ext/**/Makefile"]
12
+
13
+ setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
14
+
15
+ desc "Does a full compile, test run"
16
+ task :default => [:ragel, :test]
17
+
18
+ version="0.2"
19
+ name="profligacy"
20
+
21
+ setup_gem(name, version) do |spec|
22
+ spec.summary = "Profligacy is a Swing helper for JRuby."
23
+ spec.description = spec.summary
24
+ spec.author="Zed A. Shaw"
25
+ spec.files += Dir.glob("resources/**/*")
26
+ spec.files += Dir.glob("ext/**/*.rl")
27
+ spec.platform = "jruby"
28
+ end
29
+
30
+ task :ragel do
31
+ sh %{/usr/local/bin/ragel -J lib/profligacy/LELParser.rl | /usr/local/bin/rlgen-java -o lib/profligacy/LELParser.java}
32
+ sh %{javac lib/profligacy/LELParser.java}
33
+ end
34
+
35
+ task :install => [:test, :package] do
36
+ sh %{sudo gem install pkg/#{name}-#{version}.gem}
37
+ end
38
+
39
+ task :uninstall => [:clean] do
40
+ sh %{sudo gem uninstall #{name}}
41
+ end
42
+
43
+ task :site do
44
+ sh %{pushd doc/site; webgen; popd}
45
+ sh %{rsync -av doc/rdoc doc/site/output/* rubyforge.org:/var/www/gforge-projects/ihate/profligacy}
46
+ end
47
+
48
+ task :project => [:clean, :ragel, :default, :test, :rdoc, :package, :site]
@@ -0,0 +1,152 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Proc</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Proc</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/profligacy/swing_rb.html">
59
+ lib/profligacy/swing.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000001">to_listener</a>&nbsp;&nbsp;
90
+ <a href="#M000002">to_runnable</a>&nbsp;&nbsp;
91
+ </div>
92
+ </div>
93
+
94
+ </div>
95
+
96
+
97
+ <!-- if includes -->
98
+
99
+ <div id="section">
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ <!-- if method_list -->
109
+ <div id="methods">
110
+ <h3 class="section-bar">Public Instance methods</h3>
111
+
112
+ <div id="method-M000001" class="method-detail">
113
+ <a name="M000001"></a>
114
+
115
+ <div class="method-heading">
116
+ <a href="Proc.src/M000001.html" target="Code" class="method-signature"
117
+ onclick="popupCode('Proc.src/M000001.html');return false;">
118
+ <span class="method-name">to_listener</span><span class="method-args">(action)</span>
119
+ </a>
120
+ </div>
121
+
122
+ <div class="method-description">
123
+ </div>
124
+ </div>
125
+
126
+ <div id="method-M000002" class="method-detail">
127
+ <a name="M000002"></a>
128
+
129
+ <div class="method-heading">
130
+ <a href="Proc.src/M000002.html" target="Code" class="method-signature"
131
+ onclick="popupCode('Proc.src/M000002.html');return false;">
132
+ <span class="method-name">to_runnable</span><span class="method-args">()</span>
133
+ </a>
134
+ </div>
135
+
136
+ <div class="method-description">
137
+ </div>
138
+ </div>
139
+
140
+
141
+ </div>
142
+
143
+
144
+ </div>
145
+
146
+
147
+ <div id="validator-badges">
148
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
149
+ </div>
150
+
151
+ </body>
152
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>to_listener (Proc)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 132</span>
14
+ 132: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_listener</span>(<span class="ruby-identifier">action</span>)
15
+ 133: <span class="ruby-constant">Profligacy</span><span class="ruby-operator">::</span><span class="ruby-constant">Swing</span><span class="ruby-operator">::</span><span class="ruby-constant">Listeners</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-node">&quot;#{action.to_s.capitalize}ListenerProc&quot;</span>).<span class="ruby-identifier">new</span> <span class="ruby-operator">&amp;</span><span class="ruby-keyword kw">self</span>
16
+ 134: <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>to_runnable (Proc)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre> <span class="ruby-comment cmt"># File lib/profligacy/swing.rb, line 136</span>
14
+ 136: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_runnable</span>
15
+ 137: <span class="ruby-constant">Profligacy</span><span class="ruby-operator">::</span><span class="ruby-constant">Swing</span><span class="ruby-operator">::</span><span class="ruby-constant">RunnableProc</span>.<span class="ruby-identifier">new</span> <span class="ruby-operator">&amp;</span><span class="ruby-keyword kw">self</span>
16
+ 138: <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,111 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Profligacy</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Profligacy</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/profligacy/swing_rb.html">
59
+ lib/profligacy/swing.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+
80
+ </div>
81
+
82
+
83
+ <!-- if includes -->
84
+
85
+ <div id="section">
86
+
87
+ <div id="class-list">
88
+ <h3 class="section-bar">Classes and Modules</h3>
89
+
90
+ Module <a href="Profligacy/Swing.html" class="link">Profligacy::Swing</a><br />
91
+
92
+ </div>
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <!-- if method_list -->
101
+
102
+
103
+ </div>
104
+
105
+
106
+ <div id="validator-badges">
107
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
108
+ </div>
109
+
110
+ </body>
111
+ </html>