<?xml version="1.0" encoding="UTF-8"?>
<otrunk id="33754150-b594-11d9-9669-0800200c9a66" >
  <imports>
    <import class="org.concord.otrunk.OTSystem"/>
    <import class="org.concord.otrunk.view.OTViewBundle"/>
    <import class="org.concord.otrunk.view.OTViewEntry"/>   
    <import class="org.concord.otrunk.view.document.OTCompoundDoc"/>
    <import class="org.concord.data.state.OTPropertyDataProducer"/>
    <import class="org.concord.datagraph.state.OTDataAxis"/>
    <import class="org.concord.datagraph.state.OTDataGraphable"/>
    <import class="org.concord.datagraph.state.OTDataCollector"/>
    <import class="org.concord.otrunk.ui.OTSlider"/>
  </imports>
  <objects>
    <OTSystem>
      <bundles>
        <OTViewBundle>
          <views>
            <OTViewEntry 
               objectClass="org.concord.otrunk.view.document.OTCompoundDoc"
               viewClass="org.concord.otrunk.view.document.OTDocumentView"/>
            <OTViewEntry
              objectClass="org.concord.datagraph.state.OTDataCollector" 
              viewClass="org.concord.datagraph.state.OTDataCollectorView"/>
            <OTViewEntry 
               objectClass="org.concord.otrunk.ui.OTSlider"
               viewClass="org.concord.otrunk.ui.swing.OTSliderView"/>              
          </views>
        </OTViewBundle>
      </bundles>
      <root>
        <OTCompoundDoc name="Compound Document">
          <bodyText>
            <table border="0">
             <tr>
               <td>
                 <object refid="${graph}"/>
               </td>
              </tr>
              <tr>
               <td>
                 <object refid="${slider}"/>
               </td>
             </tr>
            </table>
          </bodyText>
          <children>
            <!--  the graph which displays the value of the slider -->
            <OTDataCollector local_id="graph" name="Graph">
              <source>
                <OTDataGraphable connectPoints="true" color="0x0000ff"
                  drawMarks="false" name="Slider Value" xColumn="0" yColumn="1">
                  <dataProducer>
                    <OTPropertyDataProducer  timeScale="1" sampleTime="0.1"
                      property="value"
                      target="${slider}" />
                  </dataProducer>
                </OTDataGraphable>
              </source>
              <xDataAxis>
                <OTDataAxis min="0" max="20" label="Time" units="s"/>
              </xDataAxis>
              <yDataAxis>
                <OTDataAxis min="0" max="10" label="meters" units="m"/>
              </yDataAxis>
            </OTDataCollector>
            <!--  the slider itself -->
            <OTSlider local_id="slider" name="Slider" minimum="0" maximum="10" value="0" vertical="false"/>
          </children>
        </OTCompoundDoc>
      </root>
    </OTSystem>
  </objects>
</otrunk>
