<html> <head> <META http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>SensorPanel</title> <link rel="stylesheet" type="text/css" href="../../../../../style.css"> </head> <body> <div class="CommonContent"> <div class="CommonContentArea"> <h1>SensorPanel</h1><script> //We attach this function to a browser object as a variable so that if multiple of these blocks are //present on the same page, then they will simply over-write eachother with the same function instead //of generating a naming collision. window.WikiCodeFormattingCopyToClipboard = function copyToClipboard(sID){ var sContent = document.getElementById(sID).innerText; if( window.clipboardData && clipboardData.setData ) { clipboardData.setData("Text", sContent); } else { alert("You must enable javascript access to your clipboard for this feature to work. Please referr to your browser documentation or Google search for instructions."); } } </script><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">SensorPanel.java</span></div><div class="fscCode"><pre ID="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">01</span><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_0_67_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_0_67_Open_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_0_67_Closed_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_0_67_Closed_Text').style.display='inline';"/><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_0_67_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_0_67_Closed_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_0_67_Open_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_0_67_Open_Text').style.display='inline';"/><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_0_67_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_0_67_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;"> Copyright (C) 2004 - 2007 db4objects Inc. </span><span style="color: #008000; text-decoration: underline;">http://www.db4o.com</span><span style="color: #008000;"> </span><span style="color: #008000;">*/</span></span><span style="color: #000000;"> </span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/> </span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">package</span><span style="color: #000000;"> com.db4odoc.taexamples.instrumented; </span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/> </span><span style="color: #008080;">05</span><span style="color: #000000;"><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_140_811_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_140_811_Open_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_140_811_Closed_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_140_811_Closed_Text').style.display='inline';"/><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_140_811_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_140_811_Closed_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_140_811_Open_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_140_811_Open_Text').style.display='inline';"/></span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">class</span><span style="color: #000000;"> SensorPanel </span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_140_811_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_140_811_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> Object _sensor; </span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> SensorPanel _next; </span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">11</span><span style="color: #000000;"><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_218_265_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_218_265_Open_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_218_265_Closed_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_218_265_Closed_Text').style.display='inline';"/><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_218_265_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_218_265_Closed_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_218_265_Open_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_218_265_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> SensorPanel() </span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_218_265_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_218_265_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008000;">//</span><span style="color: #008000;"> default constructor for instantiation</span><span style="color: #008000;"> </span><span style="color: #008080;">13</span><span style="color: #008000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/></span><span style="color: #000000;"> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">15</span><span style="color: #000000;"><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_298_334_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_298_334_Open_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_298_334_Closed_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_298_334_Closed_Text').style.display='inline';"/><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_298_334_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_298_334_Closed_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_298_334_Open_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_298_334_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> SensorPanel(</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> value) </span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_298_334_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_298_334_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> _sensor </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Integer(value); </span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">19</span><span style="color: #000000;"><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_379_415_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_379_415_Open_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_379_415_Closed_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_379_415_Closed_Text').style.display='inline';"/><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_379_415_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_379_415_Closed_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_379_415_Open_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_379_415_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> SensorPanel createList(</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> length) </span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_379_415_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_379_415_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> createList(length, </span><span style="color: #000000;">1</span><span style="color: #000000;">); </span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">22</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">23</span><span style="color: #000000;"><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_471_662_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_471_662_Open_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_471_662_Closed_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_471_662_Closed_Text').style.display='inline';"/><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_471_662_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_471_662_Closed_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_471_662_Open_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_471_662_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> SensorPanel createList(</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> length, </span><span style="color: #0000FF;">int</span><span style="color: #000000;"> first) </span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_471_662_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_471_662_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">int</span><span style="color: #000000;"> val </span><span style="color: #000000;">=</span><span style="color: #000000;"> first; </span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> SensorPanel root </span><span style="color: #000000;">=</span><span style="color: #000000;"> newElement(first); </span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> SensorPanel list </span><span style="color: #000000;">=</span><span style="color: #000000;"> root; </span><span style="color: #008080;">27</span><span style="color: #000000;"><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_582_644_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_582_644_Open_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_582_644_Closed_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_582_644_Closed_Text').style.display='inline';"/><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_582_644_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_582_644_Closed_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_582_644_Open_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_582_644_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">while</span><span style="color: #000000;"> (</span><span style="color: #000000;">--</span><span style="color: #000000;">length </span><span style="color: #000000;">></span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;">) </span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_582_644_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_582_644_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> list._next </span><span style="color: #000000;">=</span><span style="color: #000000;"> newElement(</span><span style="color: #000000;">++</span><span style="color: #000000;">val); </span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> list </span><span style="color: #000000;">=</span><span style="color: #000000;"> list._next; </span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">31</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> root; </span><span style="color: #008080;">32</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">33</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">34</span><span style="color: #000000;"><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_709_746_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_709_746_Open_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_709_746_Closed_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_709_746_Closed_Text').style.display='inline';"/><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_709_746_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_709_746_Closed_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_709_746_Open_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_709_746_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">protected</span><span style="color: #000000;"> SensorPanel newElement(</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> value) </span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_709_746_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_709_746_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">35</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> SensorPanel(value); </span><span style="color: #008080;">36</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">37</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">38</span><span style="color: #000000;"><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_774_809_Open_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_774_809_Open_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_774_809_Closed_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_774_809_Closed_Text').style.display='inline';"/><img id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_774_809_Closed_Image" src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_774_809_Closed_Text').style.display='none'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_774_809_Open_Image').style.display='inline'; document.getElementById('....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_774_809_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> String toString() </span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_774_809_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="....TAExamplesJava.ZipsinstrumentedSensorPanel.Java_InstrumentedSensorPanel.Java_0_61_774_809_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">39</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> </span><span style="color: #000000;">"</span><span style="color: #000000;">Sensor #</span><span style="color: #000000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> _sensor; </span><span style="color: #008080;">40</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> }</span></span><span style="color: #000000;"> </span><span style="color: #008080;">41</span><span style="color: #000000;"><img src="../../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>}</span></span></div></pre></div></div></div> </div> <div id="footer"> This revision (1) was last Modified 2007-10-28T17:00:30 by Tetyana. </div> </body> </html>