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
@@ -0,0 +1,22 @@
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>each_or_one (Profligacy::Swing::Build)</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 119</span>
14
+ 119: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_or_one</span>(<span class="ruby-identifier">component</span>)
15
+ 120: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">component</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:each</span>
16
+ 121: <span class="ruby-identifier">component</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">c</span> }
17
+ 122: <span class="ruby-keyword kw">else</span>
18
+ 123: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">component</span>
19
+ 124: <span class="ruby-keyword kw">end</span>
20
+ 125: <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,123 @@
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::Swing::Listeners</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::Swing::Listeners</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
+
88
+ <div id="constants-list">
89
+ <h3 class="section-bar">Constants</h3>
90
+
91
+ <div class="name-list">
92
+ <table summary="Constants">
93
+ <tr class="top-aligned-row context-row">
94
+ <td class="context-item-name">AWT_LISTENERS</td>
95
+ <td>=</td>
96
+ <td class="context-item-value">[&quot;Action&quot;,&quot;Adjustment&quot;,&quot;AWTEvent&quot;,&quot;Component&quot;,&quot;Container&quot;,&quot;Focus&quot;, &quot;HierarchyBounds&quot;,&quot;Hierarchy&quot;,&quot;InputMethod&quot;,&quot;Item&quot;,&quot;Key&quot;,&quot;Mouse&quot;, &quot;MouseMotion&quot;,&quot;MouseWheel&quot;,&quot;Text&quot;, &quot;WindowFocus&quot;,&quot;Window&quot;,&quot;WindowState&quot;,]</td>
97
+ </tr>
98
+ <tr class="top-aligned-row context-row">
99
+ <td class="context-item-name">SWING_LISTENERS</td>
100
+ <td>=</td>
101
+ <td class="context-item-value">[ &quot;Ancestor&quot;, &quot;Caret&quot;, &quot;CellEditor&quot;, &quot;Change&quot;, &quot;Document&quot;, &quot;Hyperlink&quot;, &quot;InternalFrame&quot;, &quot;ListData&quot;, &quot;ListSelection&quot;, &quot;MenuDragMouse&quot;, &quot;MenuKey&quot;, &quot;Menu&quot;, &quot;MouseInput&quot;, &quot;PopupMenu&quot;, &quot;TableColumnModel&quot;, &quot;TableModel&quot;, &quot;TreeExpansion&quot;, &quot;TreeModel&quot;, &quot;TreeSelection&quot;, &quot;TreeWillExpand&quot;, &quot;UndoableEdit&quot;, ]</td>
102
+ </tr>
103
+ </table>
104
+ </div>
105
+ </div>
106
+
107
+
108
+
109
+
110
+
111
+
112
+ <!-- if method_list -->
113
+
114
+
115
+ </div>
116
+
117
+
118
+ <div id="validator-badges">
119
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
120
+ </div>
121
+
122
+ </body>
123
+ </html>
@@ -0,0 +1,161 @@
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: Profligacy::Swing::RunnableProc</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">Profligacy::Swing::RunnableProc</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="#M000008">new</a>&nbsp;&nbsp;
90
+ <a href="#M000009">run</a>&nbsp;&nbsp;
91
+ </div>
92
+ </div>
93
+
94
+ </div>
95
+
96
+
97
+ <!-- if includes -->
98
+ <div id="includes">
99
+ <h3 class="section-bar">Included Modules</h3>
100
+
101
+ <div id="includes-list">
102
+ <span class="include-name">Runnable</span>
103
+ </div>
104
+ </div>
105
+
106
+ <div id="section">
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+ <!-- if method_list -->
116
+ <div id="methods">
117
+ <h3 class="section-bar">Public Class methods</h3>
118
+
119
+ <div id="method-M000008" class="method-detail">
120
+ <a name="M000008"></a>
121
+
122
+ <div class="method-heading">
123
+ <a href="RunnableProc.src/M000008.html" target="Code" class="method-signature"
124
+ onclick="popupCode('RunnableProc.src/M000008.html');return false;">
125
+ <span class="method-name">new</span><span class="method-args">(&amp;block)</span>
126
+ </a>
127
+ </div>
128
+
129
+ <div class="method-description">
130
+ </div>
131
+ </div>
132
+
133
+ <h3 class="section-bar">Public Instance methods</h3>
134
+
135
+ <div id="method-M000009" class="method-detail">
136
+ <a name="M000009"></a>
137
+
138
+ <div class="method-heading">
139
+ <a href="RunnableProc.src/M000009.html" target="Code" class="method-signature"
140
+ onclick="popupCode('RunnableProc.src/M000009.html');return false;">
141
+ <span class="method-name">run</span><span class="method-args">()</span>
142
+ </a>
143
+ </div>
144
+
145
+ <div class="method-description">
146
+ </div>
147
+ </div>
148
+
149
+
150
+ </div>
151
+
152
+
153
+ </div>
154
+
155
+
156
+ <div id="validator-badges">
157
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
158
+ </div>
159
+
160
+ </body>
161
+ </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>new (Profligacy::Swing::RunnableProc)</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 15</span>
14
+ 15: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
15
+ 16: <span class="ruby-ivar">@block</span> = <span class="ruby-identifier">block</span>
16
+ 17: <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>run (Profligacy::Swing::RunnableProc)</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 19</span>
14
+ 19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
15
+ 20: <span class="ruby-ivar">@block</span>.<span class="ruby-identifier">call</span>
16
+ 21: <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1 @@
1
+ Wed Jul 04 19:51:16 EDT 2007
@@ -0,0 +1,168 @@
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>File: COPYING</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="fileHeader">
50
+ <h1>COPYING</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>COPYING
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Wed Jul 04 17:54:24 EDT 2007</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <p>
73
+ <a href="../classes/Profligacy.html">Profligacy</a> is copyrighted free
74
+ software by Zed A. Shaw &lt;zedshaw at zedshaw dot com&gt; You can
75
+ redistribute it and/or modify it under either the terms of the GPL or the
76
+ conditions below:
77
+ </p>
78
+ <ol>
79
+ <li>You may make and give away verbatim copies of the source form of the
80
+ software without restriction, provided that you duplicate all of the
81
+ original copyright notices and associated disclaimers.
82
+
83
+ </li>
84
+ <li>You may modify your copy of the software in any way, provided that you do
85
+ at least ONE of the following:
86
+
87
+ <pre>
88
+ a) place your modifications in the Public Domain or otherwise make them
89
+ Freely Available, such as by posting said modifications to Usenet or an
90
+ equivalent medium, or by allowing the author to include your
91
+ modifications in the software.
92
+
93
+ b) use the modified software only within your corporation or
94
+ organization.
95
+
96
+ c) rename any non-standard executables so the names do not conflict with
97
+ standard executables, which must also be provided.
98
+
99
+ d) make other distribution arrangements with the author.
100
+ </pre>
101
+ </li>
102
+ <li>You may distribute the software in object code or executable form, provided
103
+ that you do at least ONE of the following:
104
+
105
+ <pre>
106
+ a) distribute the executables and library files of the software,
107
+ together with instructions (in the manual page or equivalent) on where
108
+ to get the original distribution.
109
+
110
+ b) accompany the distribution with the machine-readable source of the
111
+ software.
112
+
113
+ c) give non-standard executables non-standard names, with
114
+ instructions on where to get the original software distribution.
115
+
116
+ d) make other distribution arrangements with the author.
117
+ </pre>
118
+ </li>
119
+ <li>You may modify and include the part of the software into any other software
120
+ (possibly commercial). But some files in the distribution are not written
121
+ by the author, so that they are not under this terms.
122
+
123
+ </li>
124
+ <li>The scripts and library files supplied as input to or produced as output
125
+ from the software do not automatically fall under the copyright of the
126
+ software, but belong to whomever generated them, and may be sold
127
+ commercially, and may be aggregated with this software.
128
+
129
+ </li>
130
+ <li>THIS SOFTWARE IS PROVIDED &quot;AS IS&quot; AND WITHOUT ANY EXPRESS OR
131
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES
132
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
133
+
134
+ </li>
135
+ </ol>
136
+
137
+ </div>
138
+
139
+
140
+ </div>
141
+
142
+
143
+ </div>
144
+
145
+
146
+ <!-- if includes -->
147
+
148
+ <div id="section">
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+ <!-- if method_list -->
158
+
159
+
160
+ </div>
161
+
162
+
163
+ <div id="validator-badges">
164
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
165
+ </div>
166
+
167
+ </body>
168
+ </html>