<?xml version="1.0" encoding="UTF-8"?>
<!--
 -
 - Copyright (c) 2006 The Apache Software Foundation
 -
 - Licensed under the Apache License, Version 2.0 (the "License");
 - you may not use this file except in compliance with the License.
 - You may obtain a copy of the License at
 -
 -    http://www.apache.org/licenses/LICENSE-2.0
 -
 - Unless required by applicable law or agreed to in writing, software
 - distributed under the License is distributed on an "AS IS" BASIS,
 - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 - See the License for the specific language governing permissions and
 - limitations under the License.
 -
 -->
<!DOCTYPE Dashboard PUBLIC "-//MC4J//DTD Dashboard 1.0//EN" "http://mc4j.sourceforge.net/Dashboard_1_0.dtd">

<Dashboard version="1.0" name="Qpid Queue Statistics Graph">

  <Description>This dashboard shows the statistics of a Qpid Queue</Description>
 
  <DashboardMatch type="Bean">
      <BeanMatch id="QueueNode" type="Single">
          <Condition type="BeanObjectNameCondition" filter="type=Queue"/>
      </BeanMatch>
  </DashboardMatch>

  <LayoutManager type="java.awt.BorderLayout"/>
  <Content>
    
    <!-- *** The header section displays title and a refresh control *** -->
    <Component type="javax.swing.JPanel">
        <Constraint type="BorderConstraints" direction="NORTH"/>
        <LayoutManager type="java.awt.BorderLayout"/>
        <Border type="javax.swing.border.EmptyBorder" top="(Literal)2" left="(Literal)5" bottom="(Literal)2" right="(Literal)5"/>
        <Content>
            <Component type="javax.swing.JPanel">
                <Constraint type="BorderConstraints" direction="CENTER"/>
                <LayoutManager type="java.awt.BorderLayout"/>
                <Content>
                    <Component type="javax.swing.JLabel" id="titleLable">
                        <Constraint type="BorderConstraints" direction="CENTER"/>
                        <Attribute name="text" value="DashboardName"/>
                        <Attribute name="font" value="(Literal)SansSerif bold 20"/>
                        <Attribute name="foreground" value="(Literal)0x666666"/>
                    </Component>
                    <Component type="javax.swing.JTextArea">
                        <Constraint type="BorderConstraints" direction="SOUTH"/>
                        <Attribute name="text" value="DashboardDescription"/>
                        <Attribute name="font" value="(Literal)DialogInput bold 14"/>
                        <Attribute name="opaque" value="(Literal)false"/>
                        <Attribute name="editable" value="(Literal)false"/>
                    </Component>
                </Content>
            </Component>
        </Content>
    </Component>
    
    
    <!-- *** Scroll pane of info *** -->
    <Component type="javax.swing.JScrollPane">
            <Attribute name="background" value="(Literal)0xFFFFFF"/>
            <Content>
                <Component type="javax.swing.JPanel">
                    <Attribute name="background" value="(Literal)0xFFFFFF"/>
                    <Constraint type="BorderConstraints" direction="CENTER"/>
                    <Attribute name="preferredSize" value="100,100"/>
                    <LayoutManager type="java.awt.BoxLayout" axis="Y_AXIS"/>
                    <Content>

                        <Component type="org.mc4j.console.swing.SectionHolder">
                            <Attribute name="title" value="(Literal)Queue Depth"/>
                            <Attribute name="background" value="(Literal)0xFFFFFF"/>
                            <LayoutManager type="java.awt.GridLayout" rows="1" cols="1"/>
                            <Content>
                                <Component type="org.mc4j.console.dashboard.components.NumericAttributeGraph">
                                    <Attribute name="beanNode" value="QueueNode"/>

                                    <Attribute name="preferredSize" value="(Literal)400,150"/>
                                    <Attribute name="attributeName" value="(Literal)MessageCount"/>
                                 </Component>
                            </Content>
                        </Component>

                        <Component type="org.mc4j.console.dashboard.components.FillerComponent">
                            <Attribute name="type" value="(Literal)VERTICAL_GLUE_SHAPE"/>
                        </Component>
                    </Content>
    
                </Component>
            </Content>
    </Component>
    
    
  </Content>
</Dashboard>
