tidied up atom and RSS icons and fixed the queue graph to show the queue names on the X axis

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@398958 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-05-02 15:15:40 +00:00
parent fbc8053db8
commit a6a39433b5
6 changed files with 12 additions and 15 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 875 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 B

View File

@ -13,25 +13,22 @@
<body>
<script>
function drawGraph() {
var layout = new PlotKit.Layout("bar", {});
layout.addDataset(
"Queue Sizes",
[ <c:forEach items="${requestContext.brokerQuery.queues}" var="row" varStatus="status"> [${status.count},
${row.queueSize}], </c:forEach> ] );
layout.evaluate();
var options = {
"IECanvasHTC": "<c:url value="/js/plotkit/iecanvas.htc"/>",
"colorScheme": PlotKit.Base.palette(PlotKit.Base.baseColors()[0]),
"padding": {left: 0, right: 0, top: 10, bottom: 30},
"xTicks": [
<c:forEach items="${requestContext.brokerQuery.queues}" var="row" varStatus="status"> {v:${status.count}, label:"${row.name}"}, </c:forEach>
],
"drawYAxis": false
"xTicks": [<c:forEach items="${requestContext.brokerQuery.queues}" var="row" varStatus="status"
><c:if
test="${status.count > 1}">, </c:if>{v:${status.count}, label:"${row.name}"}</c:forEach>]
};
function drawGraph() {
var layout = new PlotKit.Layout("bar", options);
layout.addDataset("sqrt", [<c:forEach items="${requestContext.brokerQuery.queues}" var="row" varStatus="status"><c:if
test="${status.count > 1}">, </c:if> [${status.count}, ${row.queueSize}] </c:forEach> ]);
layout.evaluate();
var canvas = MochiKit.DOM.getElement("graph");
var plotter = new PlotKit.SweetCanvasRenderer(canvas, layout, options);
plotter.render();

View File

@ -44,8 +44,8 @@
<%--
<a href="graph.jsp?JMSDestination=${row.name}">Graph</a>
--%>
<a href="queueBrowse/${row.name}?view=rss&feedType=atom_1.0" title="Atom 1.0"><img src="images/atombadge.png"/></a>
<a href="queueBrowse/${row.name}?view=rss&ffeedType=rss_2.0" title="RSS 2.0"><img src="images/rssbadge.gif"/></a>
<a href="queueBrowse/${row.name}?view=rss&feedType=atom_1.0" title="Atom 1.0"><img src="images/feed_atom.png"/></a>
<a href="queueBrowse/${row.name}?view=rss&ffeedType=rss_2.0" title="RSS 2.0"><img src="images/feed_rss.png"/></a>
</td>
<td>
<a href="send.jsp?JMSDestination=${row.name}&JMSDestinationType=queue">Send To</a>