jruby-activemq 5.5.1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (302) hide show
  1. data/History.md +6 -0
  2. data/LICENSE +619 -0
  3. data/README.md +15 -0
  4. data/Rakefile +34 -0
  5. data/apache-activemq-5.5.1/LICENSE +619 -0
  6. data/apache-activemq-5.5.1/NOTICE +85 -0
  7. data/apache-activemq-5.5.1/README.txt +63 -0
  8. data/apache-activemq-5.5.1/WebConsole-README.txt +42 -0
  9. data/apache-activemq-5.5.1/activemq-all-5.5.1.jar +0 -0
  10. data/apache-activemq-5.5.1/bin/activemq +653 -0
  11. data/apache-activemq-5.5.1/bin/activemq-admin +155 -0
  12. data/apache-activemq-5.5.1/bin/linux-x86-32/activemq +543 -0
  13. data/apache-activemq-5.5.1/bin/linux-x86-32/libwrapper.so +0 -0
  14. data/apache-activemq-5.5.1/bin/linux-x86-32/wrapper +0 -0
  15. data/apache-activemq-5.5.1/bin/linux-x86-32/wrapper.conf +139 -0
  16. data/apache-activemq-5.5.1/bin/linux-x86-64/activemq +543 -0
  17. data/apache-activemq-5.5.1/bin/linux-x86-64/libwrapper.so +0 -0
  18. data/apache-activemq-5.5.1/bin/linux-x86-64/wrapper +0 -0
  19. data/apache-activemq-5.5.1/bin/linux-x86-64/wrapper.conf +139 -0
  20. data/apache-activemq-5.5.1/bin/macosx/activemq +537 -0
  21. data/apache-activemq-5.5.1/bin/macosx/libwrapper.jnilib +0 -0
  22. data/apache-activemq-5.5.1/bin/macosx/wrapper +0 -0
  23. data/apache-activemq-5.5.1/bin/macosx/wrapper.conf +139 -0
  24. data/apache-activemq-5.5.1/bin/run.jar +0 -0
  25. data/apache-activemq-5.5.1/bin/wrapper.jar +0 -0
  26. data/apache-activemq-5.5.1/conf/activemq-command.xml +52 -0
  27. data/apache-activemq-5.5.1/conf/activemq-demo.xml +289 -0
  28. data/apache-activemq-5.5.1/conf/activemq-dynamic-network-broker1.xml +108 -0
  29. data/apache-activemq-5.5.1/conf/activemq-dynamic-network-broker2.xml +109 -0
  30. data/apache-activemq-5.5.1/conf/activemq-jdbc.xml +98 -0
  31. data/apache-activemq-5.5.1/conf/activemq-scalability.xml +77 -0
  32. data/apache-activemq-5.5.1/conf/activemq-security.xml +132 -0
  33. data/apache-activemq-5.5.1/conf/activemq-specjms.xml +118 -0
  34. data/apache-activemq-5.5.1/conf/activemq-static-network-broker1.xml +100 -0
  35. data/apache-activemq-5.5.1/conf/activemq-static-network-broker2.xml +100 -0
  36. data/apache-activemq-5.5.1/conf/activemq-stomp.xml +133 -0
  37. data/apache-activemq-5.5.1/conf/activemq-throughput.xml +82 -0
  38. data/apache-activemq-5.5.1/conf/activemq.xml +136 -0
  39. data/apache-activemq-5.5.1/conf/broker-localhost.cert +0 -0
  40. data/apache-activemq-5.5.1/conf/broker.ks +0 -0
  41. data/apache-activemq-5.5.1/conf/broker.ts +0 -0
  42. data/apache-activemq-5.5.1/conf/camel.xml +66 -0
  43. data/apache-activemq-5.5.1/conf/client.ks +0 -0
  44. data/apache-activemq-5.5.1/conf/client.ts +0 -0
  45. data/apache-activemq-5.5.1/conf/credentials-enc.properties +22 -0
  46. data/apache-activemq-5.5.1/conf/credentials.properties +22 -0
  47. data/apache-activemq-5.5.1/conf/jetty-realm.properties +20 -0
  48. data/apache-activemq-5.5.1/conf/jetty.xml +112 -0
  49. data/apache-activemq-5.5.1/conf/jmx.access +18 -0
  50. data/apache-activemq-5.5.1/conf/jmx.password +18 -0
  51. data/apache-activemq-5.5.1/conf/log4j.properties +75 -0
  52. data/apache-activemq-5.5.1/conf/logging.properties +25 -0
  53. data/apache-activemq-5.5.1/data/activemq.log +0 -0
  54. data/apache-activemq-5.5.1/docs/index.html +22 -0
  55. data/apache-activemq-5.5.1/example/build.xml +317 -0
  56. data/apache-activemq-5.5.1/example/conf/activemq.xml +41 -0
  57. data/apache-activemq-5.5.1/example/conf/log4j.properties +39 -0
  58. data/apache-activemq-5.5.1/example/conf/resin-web.xml +35 -0
  59. data/apache-activemq-5.5.1/example/conf/web.xml +40 -0
  60. data/apache-activemq-5.5.1/example/perfharness/perfharness-activemq.sh +49 -0
  61. data/apache-activemq-5.5.1/example/ruby/README.txt +27 -0
  62. data/apache-activemq-5.5.1/example/ruby/catstomp.rb +49 -0
  63. data/apache-activemq-5.5.1/example/ruby/listener.rb +51 -0
  64. data/apache-activemq-5.5.1/example/ruby/publisher.rb +67 -0
  65. data/apache-activemq-5.5.1/example/ruby/stompcat.rb +50 -0
  66. data/apache-activemq-5.5.1/example/src/CommandLineSupport.java +120 -0
  67. data/apache-activemq-5.5.1/example/src/ConsumerTool.java +353 -0
  68. data/apache-activemq-5.5.1/example/src/EmbeddedBroker.java +41 -0
  69. data/apache-activemq-5.5.1/example/src/Log4jJMSAppenderExample.java +70 -0
  70. data/apache-activemq-5.5.1/example/src/ProducerAndConsumerTool.java +51 -0
  71. data/apache-activemq-5.5.1/example/src/ProducerTool.java +247 -0
  72. data/apache-activemq-5.5.1/example/src/RequesterTool.java +257 -0
  73. data/apache-activemq-5.5.1/example/src/StompExample.java +59 -0
  74. data/apache-activemq-5.5.1/example/src/TopicListener.java +118 -0
  75. data/apache-activemq-5.5.1/example/src/TopicPublisher.java +205 -0
  76. data/apache-activemq-5.5.1/example/src/jndi.properties +17 -0
  77. data/apache-activemq-5.5.1/example/src/log4j-jms.properties +31 -0
  78. data/apache-activemq-5.5.1/example/transactions/README.txt +40 -0
  79. data/apache-activemq-5.5.1/example/transactions/build.xml +113 -0
  80. data/apache-activemq-5.5.1/example/transactions/src/Retailer.java +107 -0
  81. data/apache-activemq-5.5.1/example/transactions/src/Supplier.java +135 -0
  82. data/apache-activemq-5.5.1/example/transactions/src/TransactionsDemo.java +47 -0
  83. data/apache-activemq-5.5.1/example/transactions/src/Vendor.java +302 -0
  84. data/apache-activemq-5.5.1/lib/a.sh +3 -0
  85. data/apache-activemq-5.5.1/lib/activation-1.1.jar +0 -0
  86. data/apache-activemq-5.5.1/lib/activemq-camel-5.5.1.jar +0 -0
  87. data/apache-activemq-5.5.1/lib/activemq-console-5.5.1.jar +0 -0
  88. data/apache-activemq-5.5.1/lib/activemq-core-5.5.1.jar +0 -0
  89. data/apache-activemq-5.5.1/lib/activemq-jaas-5.5.1.jar +0 -0
  90. data/apache-activemq-5.5.1/lib/activemq-protobuf-1.1.jar +0 -0
  91. data/apache-activemq-5.5.1/lib/activemq-rar.txt +20 -0
  92. data/apache-activemq-5.5.1/lib/activemq-web-5.5.1.jar +0 -0
  93. data/apache-activemq-5.5.1/lib/camel-core-2.7.0.jar +0 -0
  94. data/apache-activemq-5.5.1/lib/camel-jetty-2.7.0.jar +0 -0
  95. data/apache-activemq-5.5.1/lib/camel-jms-2.7.0.jar +0 -0
  96. data/apache-activemq-5.5.1/lib/camel-spring-2.7.0.jar +0 -0
  97. data/apache-activemq-5.5.1/lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar +0 -0
  98. data/apache-activemq-5.5.1/lib/geronimo-jms_1.1_spec-1.1.1.jar +0 -0
  99. data/apache-activemq-5.5.1/lib/geronimo-jta_1.0.1B_spec-1.0.1.jar +0 -0
  100. data/apache-activemq-5.5.1/lib/jaxb-api-2.1.jar +0 -0
  101. data/apache-activemq-5.5.1/lib/jaxb-impl-2.1.6.jar +0 -0
  102. data/apache-activemq-5.5.1/lib/jcl-over-slf4j-1.5.11.jar +0 -0
  103. data/apache-activemq-5.5.1/lib/kahadb-5.5.1.jar +0 -0
  104. data/apache-activemq-5.5.1/lib/optional/activeio-core-3.1.2.jar +0 -0
  105. data/apache-activemq-5.5.1/lib/optional/activemq-jmdns_1.0-5.5.1.jar +0 -0
  106. data/apache-activemq-5.5.1/lib/optional/activemq-optional-5.5.1.jar +0 -0
  107. data/apache-activemq-5.5.1/lib/optional/activemq-pool-5.5.1.jar +0 -0
  108. data/apache-activemq-5.5.1/lib/optional/activemq-spring-5.5.1.jar +0 -0
  109. data/apache-activemq-5.5.1/lib/optional/activemq-xmpp-5.5.1.jar +0 -0
  110. data/apache-activemq-5.5.1/lib/optional/commons-beanutils-1.6.1.jar +0 -0
  111. data/apache-activemq-5.5.1/lib/optional/commons-codec-1.2.jar +0 -0
  112. data/apache-activemq-5.5.1/lib/optional/commons-collections-3.2.1.jar +0 -0
  113. data/apache-activemq-5.5.1/lib/optional/commons-dbcp-1.2.2.jar +0 -0
  114. data/apache-activemq-5.5.1/lib/optional/commons-httpclient-3.1.jar +0 -0
  115. data/apache-activemq-5.5.1/lib/optional/commons-lang-2.4.jar +0 -0
  116. data/apache-activemq-5.5.1/lib/optional/commons-net-2.0.jar +0 -0
  117. data/apache-activemq-5.5.1/lib/optional/commons-pool-1.5.4.jar +0 -0
  118. data/apache-activemq-5.5.1/lib/optional/geronimo-j2ee-connector_1.5_spec-2.0.0.jar +0 -0
  119. data/apache-activemq-5.5.1/lib/optional/jasypt-1.7.jar +0 -0
  120. data/apache-activemq-5.5.1/lib/optional/jettison-1.2.jar +0 -0
  121. data/apache-activemq-5.5.1/lib/optional/josql-1.5.jar +0 -0
  122. data/apache-activemq-5.5.1/lib/optional/log4j-1.2.14.jar +0 -0
  123. data/apache-activemq-5.5.1/lib/optional/slf4j-log4j12-1.5.11.jar +0 -0
  124. data/apache-activemq-5.5.1/lib/optional/spring-aop-3.0.3.RELEASE.jar +0 -0
  125. data/apache-activemq-5.5.1/lib/optional/spring-asm-3.0.3.RELEASE.jar +0 -0
  126. data/apache-activemq-5.5.1/lib/optional/spring-beans-3.0.3.RELEASE.jar +0 -0
  127. data/apache-activemq-5.5.1/lib/optional/spring-context-3.0.3.RELEASE.jar +0 -0
  128. data/apache-activemq-5.5.1/lib/optional/spring-core-3.0.3.RELEASE.jar +0 -0
  129. data/apache-activemq-5.5.1/lib/optional/spring-expression-3.0.3.RELEASE.jar +0 -0
  130. data/apache-activemq-5.5.1/lib/optional/spring-jms-3.0.3.RELEASE.jar +0 -0
  131. data/apache-activemq-5.5.1/lib/optional/spring-oxm-tiger-1.5.8.jar +0 -0
  132. data/apache-activemq-5.5.1/lib/optional/spring-tx-3.0.3.RELEASE.jar +0 -0
  133. data/apache-activemq-5.5.1/lib/optional/stax2-api-3.0.1.jar +0 -0
  134. data/apache-activemq-5.5.1/lib/optional/velocity-1.6.2.jar +0 -0
  135. data/apache-activemq-5.5.1/lib/optional/woodstox-core-asl-4.0.7.jar +0 -0
  136. data/apache-activemq-5.5.1/lib/optional/xbean-spring-3.7.jar +0 -0
  137. data/apache-activemq-5.5.1/lib/optional/xpp3-1.1.4c.jar +0 -0
  138. data/apache-activemq-5.5.1/lib/optional/xstream-1.3.1.jar +0 -0
  139. data/apache-activemq-5.5.1/lib/slf4j-api-1.5.11.jar +0 -0
  140. data/apache-activemq-5.5.1/lib/stax-1.2.0.jar +0 -0
  141. data/apache-activemq-5.5.1/lib/stax-api-1.0.1.jar +0 -0
  142. data/apache-activemq-5.5.1/lib/web/commons-management-1.0.jar +0 -0
  143. data/apache-activemq-5.5.1/lib/web/core-3.1.1.jar +0 -0
  144. data/apache-activemq-5.5.1/lib/web/geronimo-servlet_2.5_spec-1.2.jar +0 -0
  145. data/apache-activemq-5.5.1/lib/web/jdom-1.0.jar +0 -0
  146. data/apache-activemq-5.5.1/lib/web/jetty-all-server-7.1.6.v20100715.jar +0 -0
  147. data/apache-activemq-5.5.1/lib/web/jetty-websocket-7.1.6.v20100715.jar +0 -0
  148. data/apache-activemq-5.5.1/lib/web/jsp-2.1-glassfish-2.1.v20100127.jar +0 -0
  149. data/apache-activemq-5.5.1/lib/web/jsp-api-2.1-glassfish-2.1.v20100127.jar +0 -0
  150. data/apache-activemq-5.5.1/lib/web/rome-0.8.jar +0 -0
  151. data/apache-activemq-5.5.1/lib/web/sitemesh-2.2.1.jar +0 -0
  152. data/apache-activemq-5.5.1/lib/web/spring-web-3.0.3.RELEASE.jar +0 -0
  153. data/apache-activemq-5.5.1/lib/web/spring-webmvc-3.0.3.RELEASE.jar +0 -0
  154. data/apache-activemq-5.5.1/user-guide.html +119 -0
  155. data/apache-activemq-5.5.1/webapps/admin/404.html +137 -0
  156. data/apache-activemq-5.5.1/webapps/admin/500.html +138 -0
  157. data/apache-activemq-5.5.1/webapps/admin/META-INF/LICENSE +1026 -0
  158. data/apache-activemq-5.5.1/webapps/admin/META-INF/NOTICE +107 -0
  159. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/WebConsoleStarter.class +0 -0
  160. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/CopyMessage.class +0 -0
  161. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/CreateDestination.class +0 -0
  162. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/CreateSubscriber.class +0 -0
  163. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteDestination.class +0 -0
  164. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteJob.class +0 -0
  165. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteMessage.class +0 -0
  166. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteSubscriber.class +0 -0
  167. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/MoveMessage.class +0 -0
  168. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/PurgeDestination.class +0 -0
  169. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/SendMessage.class +0 -0
  170. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/filter/ApplicationContextFilter$1.class +0 -0
  171. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/filter/ApplicationContextFilter$2.class +0 -0
  172. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/filter/ApplicationContextFilter.class +0 -0
  173. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/handler/BindingBeanNameUrlHandlerMapping.class +0 -0
  174. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/decorators.xml +30 -0
  175. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/dispatcher-servlet.xml +62 -0
  176. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/jspf/headertags.jspf +21 -0
  177. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/jspf/old.jspf +21 -0
  178. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/checkbox.tag +18 -0
  179. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/forEachMapEntry.tag +29 -0
  180. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/option.tag +20 -0
  181. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/short.tag +29 -0
  182. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/text.tag +30 -0
  183. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/tooltip.tag +29 -0
  184. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/uri.tag +18 -0
  185. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/forEachConnection.tag +35 -0
  186. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/forEachMessage.tag +34 -0
  187. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/formatTimestamp.tag +29 -0
  188. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/persistent.tag +27 -0
  189. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/web.xml +187 -0
  190. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-default.xml +26 -0
  191. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-embedded.xml +45 -0
  192. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-invm.xml +41 -0
  193. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-jndi.xml +39 -0
  194. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-properties.xml +39 -0
  195. data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-query.xml +25 -0
  196. data/apache-activemq-5.5.1/webapps/admin/browse.jsp +64 -0
  197. data/apache-activemq-5.5.1/webapps/admin/connection.jsp +138 -0
  198. data/apache-activemq-5.5.1/webapps/admin/connections.jsp +85 -0
  199. data/apache-activemq-5.5.1/webapps/admin/decorators/main.jsp +165 -0
  200. data/apache-activemq-5.5.1/webapps/admin/decorators/panel.jsp +31 -0
  201. data/apache-activemq-5.5.1/webapps/admin/decorators/printable.jsp +31 -0
  202. data/apache-activemq-5.5.1/webapps/admin/graph.jsp +67 -0
  203. data/apache-activemq-5.5.1/webapps/admin/images/activemq-logo.png +0 -0
  204. data/apache-activemq-5.5.1/webapps/admin/images/asf-logo.png +0 -0
  205. data/apache-activemq-5.5.1/webapps/admin/images/big-bullet.png +0 -0
  206. data/apache-activemq-5.5.1/webapps/admin/images/black-footer-bottom.png +0 -0
  207. data/apache-activemq-5.5.1/webapps/admin/images/black-footer-left.png +0 -0
  208. data/apache-activemq-5.5.1/webapps/admin/images/black-footer-right.png +0 -0
  209. data/apache-activemq-5.5.1/webapps/admin/images/bottom-red-bar.png +0 -0
  210. data/apache-activemq-5.5.1/webapps/admin/images/checker-bg.png +0 -0
  211. data/apache-activemq-5.5.1/webapps/admin/images/content-left.png +0 -0
  212. data/apache-activemq-5.5.1/webapps/admin/images/content-right.png +0 -0
  213. data/apache-activemq-5.5.1/webapps/admin/images/feed_atom.png +0 -0
  214. data/apache-activemq-5.5.1/webapps/admin/images/feed_rss.png +0 -0
  215. data/apache-activemq-5.5.1/webapps/admin/images/left-box-bottom.png +0 -0
  216. data/apache-activemq-5.5.1/webapps/admin/images/left-box-right.png +0 -0
  217. data/apache-activemq-5.5.1/webapps/admin/images/left-box-top.png +0 -0
  218. data/apache-activemq-5.5.1/webapps/admin/images/oval-arrow.png +0 -0
  219. data/apache-activemq-5.5.1/webapps/admin/images/right-box-bottom.png +0 -0
  220. data/apache-activemq-5.5.1/webapps/admin/images/right-box-left.png +0 -0
  221. data/apache-activemq-5.5.1/webapps/admin/images/right-box-top.png +0 -0
  222. data/apache-activemq-5.5.1/webapps/admin/images/small-bullet-gray.png +0 -0
  223. data/apache-activemq-5.5.1/webapps/admin/images/small-bullet-red.png +0 -0
  224. data/apache-activemq-5.5.1/webapps/admin/images/spacer.gif +0 -0
  225. data/apache-activemq-5.5.1/webapps/admin/images/top-red-bar.png +0 -0
  226. data/apache-activemq-5.5.1/webapps/admin/images/white-header-left.png +0 -0
  227. data/apache-activemq-5.5.1/webapps/admin/images/white-header-right.png +0 -0
  228. data/apache-activemq-5.5.1/webapps/admin/images/white-header-top.png +0 -0
  229. data/apache-activemq-5.5.1/webapps/admin/index.jsp +65 -0
  230. data/apache-activemq-5.5.1/webapps/admin/js/common.js +121 -0
  231. data/apache-activemq-5.5.1/webapps/admin/js/css.js +145 -0
  232. data/apache-activemq-5.5.1/webapps/admin/js/mochi/MochiKit.js +4804 -0
  233. data/apache-activemq-5.5.1/webapps/admin/js/mochi/__package__.js +14 -0
  234. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/Base.js +332 -0
  235. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/Canvas.js +707 -0
  236. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/Layout.js +588 -0
  237. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/SVG.js +677 -0
  238. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/SweetCanvas.js +281 -0
  239. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/SweetSVG.js +196 -0
  240. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/dummy.svg +15 -0
  241. data/apache-activemq-5.5.1/webapps/admin/js/plotkit/iecanvas.htc +389 -0
  242. data/apache-activemq-5.5.1/webapps/admin/js/prettify.js +1424 -0
  243. data/apache-activemq-5.5.1/webapps/admin/js/standardista-table-sorting.js +434 -0
  244. data/apache-activemq-5.5.1/webapps/admin/message.jsp +185 -0
  245. data/apache-activemq-5.5.1/webapps/admin/network.jsp +52 -0
  246. data/apache-activemq-5.5.1/webapps/admin/queueConsumers.jsp +79 -0
  247. data/apache-activemq-5.5.1/webapps/admin/queueGraph.jsp +68 -0
  248. data/apache-activemq-5.5.1/webapps/admin/queues.jsp +78 -0
  249. data/apache-activemq-5.5.1/webapps/admin/scheduled.jsp +67 -0
  250. data/apache-activemq-5.5.1/webapps/admin/send.jsp +173 -0
  251. data/apache-activemq-5.5.1/webapps/admin/styles/prettify.css +44 -0
  252. data/apache-activemq-5.5.1/webapps/admin/styles/site.css +206 -0
  253. data/apache-activemq-5.5.1/webapps/admin/styles/sorttable.css +70 -0
  254. data/apache-activemq-5.5.1/webapps/admin/styles/type-settings.css +177 -0
  255. data/apache-activemq-5.5.1/webapps/admin/subscribers.jsp +158 -0
  256. data/apache-activemq-5.5.1/webapps/admin/test/dummy.jsp +52 -0
  257. data/apache-activemq-5.5.1/webapps/admin/test/index.jsp +84 -0
  258. data/apache-activemq-5.5.1/webapps/admin/test/systemProperties.jsp +53 -0
  259. data/apache-activemq-5.5.1/webapps/admin/topics.jsp +66 -0
  260. data/apache-activemq-5.5.1/webapps/admin/xml/queues.jsp +34 -0
  261. data/apache-activemq-5.5.1/webapps/admin/xml/topics.jsp +29 -0
  262. data/apache-activemq-5.5.1/webapps/demo/META-INF/LICENSE +494 -0
  263. data/apache-activemq-5.5.1/webapps/demo/META-INF/NOTICE +82 -0
  264. data/apache-activemq-5.5.1/webapps/demo/WEB-INF/web.xml +111 -0
  265. data/apache-activemq-5.5.1/webapps/demo/chat.css +76 -0
  266. data/apache-activemq-5.5.1/webapps/demo/chat.html +219 -0
  267. data/apache-activemq-5.5.1/webapps/demo/index.html +181 -0
  268. data/apache-activemq-5.5.1/webapps/demo/js/amq.js +307 -0
  269. data/apache-activemq-5.5.1/webapps/demo/js/amq_dojo_adapter.js +84 -0
  270. data/apache-activemq-5.5.1/webapps/demo/js/amq_jquery_adapter.js +88 -0
  271. data/apache-activemq-5.5.1/webapps/demo/js/amq_prototype_adapter.js +84 -0
  272. data/apache-activemq-5.5.1/webapps/demo/js/chat.js +209 -0
  273. data/apache-activemq-5.5.1/webapps/demo/js/dojo.js +16 -0
  274. data/apache-activemq-5.5.1/webapps/demo/js/jquery-1.4.2.min.js +154 -0
  275. data/apache-activemq-5.5.1/webapps/demo/js/prototype.js +4874 -0
  276. data/apache-activemq-5.5.1/webapps/demo/portfolio/portfolio.html +87 -0
  277. data/apache-activemq-5.5.1/webapps/demo/portfolio/portfolio.js +91 -0
  278. data/apache-activemq-5.5.1/webapps/demo/sandbox/index.html +31 -0
  279. data/apache-activemq-5.5.1/webapps/demo/sandbox/portfolio.html +93 -0
  280. data/apache-activemq-5.5.1/webapps/demo/sandbox/portfolio.js +49 -0
  281. data/apache-activemq-5.5.1/webapps/demo/sandbox/util.js +52 -0
  282. data/apache-activemq-5.5.1/webapps/demo/sandbox/webmq.js +149 -0
  283. data/apache-activemq-5.5.1/webapps/demo/send.html +51 -0
  284. data/apache-activemq-5.5.1/webapps/demo/style.css +440 -0
  285. data/apache-activemq-5.5.1/webapps/demo/test/amq_test.html +311 -0
  286. data/apache-activemq-5.5.1/webapps/demo/test/assets/README +4 -0
  287. data/apache-activemq-5.5.1/webapps/demo/test/assets/jsunittest.js +1017 -0
  288. data/apache-activemq-5.5.1/webapps/demo/test/assets/unittest.css +54 -0
  289. data/apache-activemq-5.5.1/webapps/favicon.ico +0 -0
  290. data/apache-activemq-5.5.1/webapps/fileserver/META-INF/LICENSE +203 -0
  291. data/apache-activemq-5.5.1/webapps/fileserver/META-INF/NOTICE +5 -0
  292. data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/FilenameGuardFilter$GuardedHttpServletRequest.class +0 -0
  293. data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/FilenameGuardFilter.class +0 -0
  294. data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/IOHelper.class +0 -0
  295. data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/RestFilter.class +0 -0
  296. data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/web.xml +56 -0
  297. data/apache-activemq-5.5.1/webapps/fileserver/index.html +30 -0
  298. data/apache-activemq-5.5.1/webapps/index.html +145 -0
  299. data/apache-activemq-5.5.1/webapps/styles/site.css +206 -0
  300. data/apache-activemq-5.5.1/webapps/styles/type-settings.css +177 -0
  301. data/lib/activemq.rb +11 -0
  302. metadata +382 -0
@@ -0,0 +1,588 @@
1
+ /*
2
+ PlotKit Layout
3
+ --------------
4
+
5
+ Handles laying out data on to a virtual canvas square canvas between 0.0
6
+ and 1.0. If you want to add new chart/plot types such as point plots,
7
+ you need to add them here.
8
+
9
+ Copyright
10
+ ---------
11
+ Copyright 2005,2006 (c) Alastair Tse <alastair^liquidx.net>
12
+ For use under the BSD license. <http://www.liquidx.net/plotkit>
13
+
14
+ */
15
+
16
+ try {
17
+ if (typeof(PlotKit.Base) == 'undefined')
18
+ {
19
+ throw ""
20
+ }
21
+ }
22
+ catch (e) {
23
+ throw "PlotKit.Layout depends on MochiKit.{Base,Color,DOM,Format} and PlotKit.Base"
24
+ }
25
+
26
+ // --------------------------------------------------------------------
27
+ // Start of Layout definition
28
+ // --------------------------------------------------------------------
29
+
30
+ if (typeof(PlotKit.Layout) == 'undefined') {
31
+ PlotKit.Layout = {};
32
+ }
33
+
34
+ PlotKit.Layout.NAME = "PlotKit.Layout";
35
+ PlotKit.Layout.VERSION = PlotKit.VERSION;
36
+
37
+ PlotKit.Layout.__repr__ = function() {
38
+ return "[" + this.NAME + " " + this.VERSION + "]";
39
+ };
40
+
41
+ PlotKit.Layout.toString = function() {
42
+ return this.__repr__();
43
+ }
44
+
45
+ PlotKit.Layout.valid_styles = ["bar", "line", "pie", "point"];
46
+
47
+ // --------------------------------------------------------------------
48
+ // Start of Layout definition
49
+ // --------------------------------------------------------------------
50
+
51
+ PlotKit.Layout = function(style, options) {
52
+
53
+ this.options = {
54
+ "barWidthFillFraction": 0.75,
55
+ "xOriginIsZero": true,
56
+ "yOriginIsZero": true,
57
+ "xAxis": null, // [xmin, xmax]
58
+ "yAxis": null, // [ymin, ymax]
59
+ "xTicks": null, // [{label: "somelabel", v: value}, ..] (label opt.)
60
+ "yTicks": null, // [{label: "somelabel", v: value}, ..] (label opt.)
61
+ "xNumberOfTicks": 10,
62
+ "yNumberOfTicks": 5,
63
+ "xTickPrecision": 1,
64
+ "yTickPrecision": 3,
65
+ "pieRadius": 0.4
66
+ };
67
+
68
+ // valid external options : TODO: input verification
69
+ this.style = style;
70
+ MochiKit.Base.update(this.options, options ? options : {});
71
+
72
+ // externally visible states
73
+ // overriden if xAxis and yAxis are set in options
74
+ if (!MochiKit.Base.isUndefinedOrNull(this.options.xAxis)) {
75
+ this.minxval = this.options.xAxis[0];
76
+ this.maxxval = this.options.xAxis[1];
77
+ this.xscale = this.maxxval - this.minxval;
78
+ }
79
+ else {
80
+ this.minxval = 0;
81
+ this.maxxval = null;
82
+ this.xscale = null; // val -> pos factor (eg, xval * xscale = xpos)
83
+ }
84
+
85
+ if (!MochiKit.Base.isUndefinedOrNull(this.options.yAxis)) {
86
+ this.minyval = this.options.yAxis[0];
87
+ this.maxyval = this.options.yAxis[1];
88
+ this.yscale = this.maxyval - this.maxymin;
89
+ }
90
+ else {
91
+ this.minyval = 0;
92
+ this.maxyval = null;
93
+ this.yscale = null;
94
+ }
95
+
96
+ this.bars = new Array(); // array of bars to plot for bar charts
97
+ this.points = new Array(); // array of points to plot for line plots
98
+ this.slices = new Array(); // array of slices to draw for pie charts
99
+
100
+ this.xticks = new Array();
101
+ this.yticks = new Array();
102
+
103
+ // internal states
104
+ this.datasets = new Array();
105
+ this.minxdelta = 0;
106
+ this.xrange = 1;
107
+ this.yrange = 1;
108
+
109
+ this.hitTestCache = {x2maxy: null};
110
+
111
+ };
112
+
113
+ // --------------------------------------------------------------------
114
+ // Dataset Manipulation
115
+ // --------------------------------------------------------------------
116
+
117
+
118
+ PlotKit.Layout.prototype.addDataset = function(setname, set_xy) {
119
+ this.datasets[setname] = set_xy;
120
+ };
121
+
122
+ PlotKit.Layout.prototype.removeDataset = function(setname, set_xy) {
123
+ this.datasets[setname] = null;
124
+ };
125
+
126
+ PlotKit.Layout.prototype.addDatasetFromTable = function(name, tableElement, xcol, ycol) {
127
+ var isNil = MochiKit.Base.isUndefinedOrNull;
128
+ var scrapeText = MochiKit.DOM.scrapeText;
129
+ var strip = MochiKit.Format.strip;
130
+
131
+ if (isNil(xcol))
132
+ xcol = 0;
133
+ if (isNil(ycol))
134
+ ycol = 1;
135
+
136
+ var rows = tableElement.tBodies[0].rows;
137
+ var data = new Array();
138
+ if (!isNil(rows)) {
139
+ for (var i = 0; i < rows.length; i++) {
140
+ data.push([parseFloat(strip(scrapeText(rows[i].cells[xcol]))),
141
+ parseFloat(strip(scrapeText(rows[i].cells[ycol])))]);
142
+ }
143
+ this.addDataset(name, data);
144
+ return true;
145
+ }
146
+ return false;
147
+ };
148
+
149
+ // --------------------------------------------------------------------
150
+ // Evaluates the layout for the current data and style.
151
+ // --------------------------------------------------------------------
152
+
153
+ PlotKit.Layout.prototype.evaluate = function() {
154
+ this._evaluateLimits();
155
+ this._evaluateScales();
156
+ if (this.style == "bar") {
157
+ this._evaluateBarCharts();
158
+ this._evaluateBarTicks();
159
+ }
160
+ else if (this.style == "line") {
161
+ this._evaluateLineCharts();
162
+ this._evaluateLineTicks();
163
+ }
164
+ else if (this.style == "pie") {
165
+ this._evaluatePieCharts();
166
+ this._evaluatePieTicks();
167
+ }
168
+ };
169
+
170
+
171
+
172
+ // Given the fractional x, y positions, report the corresponding
173
+ // x, y values.
174
+ PlotKit.Layout.prototype.hitTest = function(x, y) {
175
+ // TODO: make this more efficient with better datastructures
176
+ // for this.bars, this.points and this.slices
177
+
178
+ var f = MochiKit.Format.twoDigitFloat;
179
+
180
+ if ((this.style == "bar") && this.bars && (this.bars.length > 0)) {
181
+ for (var i = 0; i < this.bars.length; i++) {
182
+ var bar = this.bars[i];
183
+ if ((x >= bar.x) && (x <= bar.x + bar.w)
184
+ && (y >= bar.y) && (y - bar.y <= bar.h))
185
+ return bar;
186
+ }
187
+ }
188
+
189
+ else if (this.style == "line") {
190
+ if (this.hitTestCache.x2maxy == null) {
191
+ this._regenerateHitTestCache();
192
+ }
193
+
194
+ // 1. find the xvalues that equal or closest to the give x
195
+ var xval = x / this.xscale;
196
+ var xvalues = this.hitTestCache.xvalues;
197
+ var xbefore = null;
198
+ var xafter = null;
199
+
200
+ for (var i = 1; i < xvalues.length; i++) {
201
+ if (xvalues[i] > xval) {
202
+ xbefore = xvalues[i-1];
203
+ xafter = xvalues[i];
204
+ break;
205
+ }
206
+ }
207
+
208
+ if ((xbefore != null)) {
209
+ var ybefore = this.hitTestCache.x2maxy[xbefore];
210
+ var yafter = this.hitTestCache.x2maxy[xafter];
211
+ var yval = (1.0 - y)/this.yscale;
212
+
213
+ // interpolate whether we will fall inside or outside
214
+ var gradient = (yafter - ybefore) / (xafter - xbefore);
215
+ var projmaxy = ybefore + gradient * (xval - xbefore);
216
+ if (projmaxy >= yval) {
217
+ // inside the highest curve (roughly)
218
+ var obj = {xval: xval, yval: yval,
219
+ xafter: xafter, yafter: yafter,
220
+ xbefore: xbefore, ybefore: ybefore,
221
+ yprojected: projmaxy
222
+ };
223
+ return obj;
224
+ }
225
+ }
226
+ }
227
+
228
+ else if (this.style == "pie") {
229
+ var dist = Math.sqrt((y-0.5)*(y-0.5) + (x-0.5)*(x-0.5));
230
+ if (dist > this.options.pieRadius)
231
+ return null;
232
+
233
+ // TODO: actually doesn't work if we don't know how the Canvas
234
+ // lays it out, need to fix!
235
+ var angle = Math.atan2(y - 0.5, x - 0.5) - Math.PI/2;
236
+ for (var i = 0; i < this.slices.length; i++) {
237
+ var slice = this.slices[i];
238
+ if (slice.startAngle < angle && slice.endAngle >= angle)
239
+ return slice;
240
+ }
241
+ }
242
+
243
+ return null;
244
+ };
245
+
246
+ // Reports valid position rectangle for X value (only valid for bar charts)
247
+ PlotKit.Layout.prototype.rectForX = function(x) {
248
+ return null;
249
+ };
250
+
251
+ // Reports valid angles through which X value encloses (only valid for pie charts)
252
+ PlotKit.Layout.prototype.angleRangeForX = function(x) {
253
+ return null;
254
+ };
255
+
256
+ // --------------------------------------------------------------------
257
+ // START Internal Functions
258
+ // --------------------------------------------------------------------
259
+
260
+ PlotKit.Layout.prototype._evaluateLimits = function() {
261
+ // take all values from all datasets and find max and min
262
+ var map = MochiKit.Base.map;
263
+ var items = MochiKit.Base.items;
264
+ var itemgetter = MochiKit.Base.itemgetter;
265
+ var collapse = PlotKit.Base.collapse;
266
+ var listMin = MochiKit.Base.listMin;
267
+ var listMax = MochiKit.Base.listMax;
268
+ var isNil = MochiKit.Base.isUndefinedOrNull;
269
+
270
+ var all = collapse(map(itemgetter(1), items(this.datasets)));
271
+
272
+ if (isNil(this.options.xAxis)) {
273
+ if (this.options.xOriginIsZero)
274
+ this.minxval = 0;
275
+ else
276
+ this.minxval = listMin(map(parseFloat, map(itemgetter(0), all)));
277
+ }
278
+
279
+ if (isNil(this.options.yAxis)) {
280
+ if (this.options.yOriginIsZero)
281
+ this.minyval = 0;
282
+ else
283
+ this.minyval = listMin(map(parseFloat, map(itemgetter(1), all)));
284
+ }
285
+
286
+ this.maxxval = listMax(map(parseFloat, map(itemgetter(0), all)));
287
+ this.maxyval = listMax(map(parseFloat, map(itemgetter(1), all)));
288
+ };
289
+
290
+ PlotKit.Layout.prototype._evaluateScales = function() {
291
+ var isNil = MochiKit.Base.isUndefinedOrNull;
292
+
293
+ this.xrange = this.maxxval - this.minxval;
294
+ if (this.xrange == 0)
295
+ this.xscale = 1.0;
296
+ else
297
+ this.xscale = 1/this.xrange;
298
+
299
+ this.yrange = this.maxyval - this.minyval;
300
+ if (this.yrange == 0)
301
+ this.yscale = 1.0;
302
+ else
303
+ this.yscale = 1/this.yrange;
304
+ };
305
+
306
+ PlotKit.Layout.prototype._uniqueXValues = function() {
307
+ var collapse = PlotKit.Base.collapse;
308
+ var map = MochiKit.Base.map;
309
+ var uniq = PlotKit.Base.uniq;
310
+ var getter = MochiKit.Base.itemgetter;
311
+
312
+ var xvalues = map(parseFloat, map(getter(0), collapse(map(getter(1), items(this.datasets)))));
313
+ xvalues.sort(MochiKit.Base.compare);
314
+ return uniq(xvalues);
315
+ };
316
+
317
+ // Create the bars
318
+ PlotKit.Layout.prototype._evaluateBarCharts = function() {
319
+ var keys = MochiKit.Base.keys;
320
+ var items = MochiKit.Base.items;
321
+
322
+ var setCount = keys(this.datasets).length;
323
+
324
+ // work out how far separated values are
325
+ var xdelta = 10000000;
326
+ var xvalues = this._uniqueXValues();
327
+ for (var i = 1; i < xvalues.length; i++) {
328
+ xdelta = Math.min(Math.abs(xvalues[i] - xvalues[i-1]), xdelta);
329
+ }
330
+
331
+ var barWidth = 0;
332
+ var barWidthForSet = 0;
333
+ var barMargin = 0;
334
+ if (xvalues.length == 1) {
335
+ // note we have to do something smarter if we only plot one value
336
+ xdelta = 1.0;
337
+ this.xscale = 1.0;
338
+ this.minxval = xvalues[0];
339
+ barWidth = 1.0 * this.options.barWidthFillFraction;
340
+ barWidthForSet = barWidth/setCount;
341
+ barMargin = (1.0 - this.options.barWidthFillFraction)/2;
342
+ }
343
+ else {
344
+ // readjust xscale to fix with bar charts
345
+ this.xscale = (1.0 - xdelta/this.xrange)/this.xrange;
346
+ barWidth = xdelta * this.xscale * this.options.barWidthFillFraction;
347
+ barWidthForSet = barWidth / setCount;
348
+ barMargin = xdelta * this.xscale * (1.0 - this.options.barWidthFillFraction)/2;
349
+ }
350
+
351
+ this.minxdelta = xdelta; // need this for tick positions
352
+
353
+ // add all the rects
354
+ this.bars = new Array();
355
+ var i = 0;
356
+ for (var setName in this.datasets) {
357
+ var dataset = this.datasets[setName];
358
+ for (var j = 0; j < dataset.length; j++) {
359
+ var item = dataset[j];
360
+ var rect = {
361
+ x: ((parseFloat(item[0]) - this.minxval) * this.xscale) + (i * barWidthForSet) + barMargin,
362
+ y: 1.0 - ((parseFloat(item[1]) - this.minyval) * this.yscale),
363
+ w: barWidthForSet,
364
+ h: ((parseFloat(item[1]) - this.minyval) * this.yscale),
365
+ xval: parseFloat(item[0]),
366
+ yval: parseFloat(item[1]),
367
+ name: setName
368
+ };
369
+ this.bars.push(rect);
370
+ }
371
+ i++;
372
+ }
373
+ };
374
+
375
+
376
+ // Create the line charts
377
+ PlotKit.Layout.prototype._evaluateLineCharts = function() {
378
+ var keys = MochiKit.Base.keys;
379
+ var items = MochiKit.Base.items;
380
+
381
+ var setCount = keys(this.datasets).length;
382
+
383
+ // add all the rects
384
+ this.points = new Array();
385
+ var i = 0;
386
+ for (var setName in this.datasets) {
387
+ var dataset = this.datasets[setName];
388
+ dataset.sort(function(a, b) { return compare(parseFloat(a[0]), parseFloat(b[0])); });
389
+ for (var j = 0; j < dataset.length; j++) {
390
+ var item = dataset[j];
391
+ var point = {
392
+ x: ((parseFloat(item[0]) - this.minxval) * this.xscale),
393
+ y: 1.0 - ((parseFloat(item[1]) - this.minyval) * this.yscale),
394
+ xval: parseFloat(item[0]),
395
+ yval: parseFloat(item[1]),
396
+ name: setName
397
+ };
398
+ this.points.push(point);
399
+ }
400
+ i++;
401
+ }
402
+ };
403
+
404
+ // Create the pie charts
405
+ PlotKit.Layout.prototype._evaluatePieCharts = function() {
406
+ var items = MochiKit.Base.items;
407
+ var sum = MochiKit.Iter.sum;
408
+ var getter = MochiKit.Base.itemgetter;
409
+
410
+ var setCount = keys(this.datasets).length;
411
+
412
+ // we plot the y values of the first dataset
413
+ var dataset = items(this.datasets)[0][1];
414
+ var total = sum(map(getter(1), dataset));
415
+
416
+ this.slices = new Array();
417
+ var currentAngle = 0.0;
418
+ for (var i = 0; i < dataset.length; i++) {
419
+ var fraction = dataset[i][1] / total;
420
+ var startAngle = currentAngle * Math.PI * 2;
421
+ var endAngle = (currentAngle + fraction) * Math.PI * 2;
422
+
423
+ var slice = {fraction: fraction,
424
+ xval: dataset[i][0],
425
+ yval: dataset[i][1],
426
+ startAngle: startAngle,
427
+ endAngle: endAngle
428
+ };
429
+ this.slices.push(slice);
430
+ currentAngle += fraction;
431
+ }
432
+ };
433
+
434
+ PlotKit.Layout.prototype._evaluateLineTicksForXAxis = function() {
435
+ var isNil = MochiKit.Base.isUndefinedOrNull;
436
+
437
+ if (this.options.xTicks) {
438
+ // we use use specified ticks with optional labels
439
+
440
+ this.xticks = new Array();
441
+ var makeTicks = function(tick) {
442
+ var label = tick.label;
443
+ if (isNil(label))
444
+ label = tick.v.toString();
445
+ var pos = this.xscale * (tick.v - this.minxval);
446
+ this.xticks.push([pos, label]);
447
+ };
448
+ MochiKit.Iter.forEach(this.options.xTicks, bind(makeTicks, this));
449
+ }
450
+ else if (this.options.xNumberOfTicks) {
451
+ // we use defined number of ticks as hint to auto generate
452
+ var xvalues = this._uniqueXValues();
453
+ var roughSeparation = this.xrange / this.options.xNumberOfTicks;
454
+ var tickCount = 0;
455
+
456
+ this.xticks = new Array();
457
+ for (var i = 0; i <= xvalues.length; i++) {
458
+ if (xvalues[i] >= (tickCount) * roughSeparation) {
459
+ var pos = this.xscale * (xvalues[i] - this.minxval);
460
+ if ((pos > 1.0) || (pos < 0.0))
461
+ return;
462
+ this.xticks.push([pos, xvalues[i]]);
463
+ tickCount++;
464
+ }
465
+ if (tickCount > this.options.xNumberOfTicks)
466
+ break;
467
+ }
468
+ }
469
+ };
470
+
471
+ PlotKit.Layout.prototype._evaluateLineTicksForYAxis = function() {
472
+ var isNil = MochiKit.Base.isUndefinedOrNull;
473
+
474
+
475
+ if (this.options.yTicks) {
476
+ this.yticks = new Array();
477
+ var makeTicks = function(tick) {
478
+ var label = tick.label;
479
+ if (isNil(label))
480
+ label = tick.v.toString();
481
+ var pos = 1.0 - (this.yscale * (tick.v + this.minxval));
482
+ if ((pos < 0.0) || (pos > 1.0))
483
+ return;
484
+ this.yticks.push([pos, label]);
485
+ };
486
+ MochiKit.Iter.forEach(this.options.yTicks, bind(makeTicks, this));
487
+ }
488
+ else if (this.options.yNumberOfTicks) {
489
+ // We use the optionally defined number of ticks as a guide
490
+ this.yticks = new Array();
491
+
492
+ // if we get this separation right, we'll have good looking graphs
493
+ var roundInt = PlotKit.Base.roundInterval;
494
+ var prec = this.options.yTickPrecision;
495
+ var roughSeparation = roundInt(this.yrange,
496
+ this.options.yNumberOfTicks,
497
+ this.options.yTickPrecision);
498
+
499
+ for (var i = 0; i <= this.options.yNumberOfTicks; i++) {
500
+ var yval = this.minyval + (i * roughSeparation);
501
+ var pos = 1.0 - ((yval - this.minyval) * this.yscale);
502
+ this.yticks.push([pos, MochiKit.Format.roundToFixed(yval, 1)]);
503
+ }
504
+ }
505
+ };
506
+
507
+ PlotKit.Layout.prototype._evaluateLineTicks = function() {
508
+ this._evaluateLineTicksForXAxis();
509
+ this._evaluateLineTicksForYAxis();
510
+ };
511
+
512
+ PlotKit.Layout.prototype._evaluateBarTicks = function() {
513
+ this._evaluateLineTicks();
514
+ var centerInBar = function(tick) {
515
+ return [tick[0] + (this.minxdelta * this.xscale)/2, tick[1]];
516
+ };
517
+ this.xticks = MochiKit.Base.map(bind(centerInBar, this), this.xticks);
518
+ };
519
+
520
+ PlotKit.Layout.prototype._evaluatePieTicks = function() {
521
+ var isNil = MochiKit.Base.isUndefinedOrNull;
522
+ var formatter = MochiKit.Format.numberFormatter("#%");
523
+
524
+ this.xticks = new Array();
525
+ if (this.options.xTicks) {
526
+ // make a lookup dict for x->slice values
527
+ var lookup = new Array();
528
+ for (var i = 0; i < this.slices.length; i++) {
529
+ lookup[this.slices[i].xval] = this.slices[i];
530
+ }
531
+
532
+ for (var i =0; i < this.options.xTicks.length; i++) {
533
+ var tick = this.options.xTicks[i];
534
+ var slice = lookup[tick.v];
535
+ var label = tick.label;
536
+ if (slice) {
537
+ if (isNil(label))
538
+ label = tick.v.toString();
539
+ label += " (" + formatter(slice.fraction) + ")";
540
+ this.xticks.push([tick.v, label]);
541
+ }
542
+ }
543
+ }
544
+ else {
545
+ // we make our own labels from all the slices
546
+ for (var i =0; i < this.slices.length; i++) {
547
+ var slice = this.slices[i];
548
+ var label = slice.xval + " (" + formatter(slice.fraction) + ")";
549
+ this.xticks.push([slice.xval, label]);
550
+ }
551
+ }
552
+ };
553
+
554
+ PlotKit.Layout.prototype._regenerateHitTestCache = function() {
555
+ this.hitTestCache.xvalues = this._uniqueXValues();
556
+ this.hitTestCache.xlookup = new Array();
557
+ this.hitTestCache.x2maxy = new Array();
558
+
559
+ var listMax = MochiKit.Base.listMax;
560
+ var itemgetter = MochiKit.Base.itemgetter;
561
+ var map = MochiKit.Base.map;
562
+
563
+ // generate a lookup table for x values to y values
564
+ var setNames = keys(this.datasets);
565
+ for (var i = 0; i < setNames.length; i++) {
566
+ var dataset = this.datasets[setNames[i]];
567
+ for (var j = 0; j < dataset.length; j++) {
568
+ var xval = dataset[j][0];
569
+ var yval = dataset[j][1];
570
+ if (this.hitTestCache.xlookup[xval])
571
+ this.hitTestCache.xlookup[xval].push([yval, setNames[i]]);
572
+ else
573
+ this.hitTestCache.xlookup[xval] = [[yval, setNames[i]]];
574
+ }
575
+ }
576
+
577
+ for (var x in this.hitTestCache.xlookup) {
578
+ var yvals = this.hitTestCache.xlookup[x];
579
+ this.hitTestCache.x2maxy[x] = listMax(map(itemgetter(0), yvals));
580
+ }
581
+
582
+
583
+ };
584
+
585
+ // --------------------------------------------------------------------
586
+ // END Internal Functions
587
+ // --------------------------------------------------------------------
588
+