| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_201) on Thu Jul 23 15:58:57 CEST 2020 --> |
| <title>Plotter</title> |
| <meta name="date" content="2020-07-23"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Plotter"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Plotter.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/OscilloscopeStackAdapter.html" title="class in org.eclipse.nebula.widgets.oscilloscope.multichannel"><span class="typeNameLink">Prev Class</span></a></li> |
| <li>Next Class</li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html" target="_top">Frames</a></li> |
| <li><a href="Plotter.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.eclipse.nebula.widgets.oscilloscope.multichannel</div> |
| <h2 title="Class Plotter" class="title">Class Plotter</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.swt.widgets.Widget</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.swt.widgets.Control</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.swt.widgets.Scrollable</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.swt.widgets.Composite</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.swt.widgets.Canvas</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd>org.eclipse.swt.graphics.Drawable</dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">Plotter</span> |
| extends org.eclipse.swt.widgets.Canvas</pre> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#BASE_CENTER">BASE_CENTER</a></span></code> |
| <div class="block">The base of the line is positioned at the center of the widget.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#CURSOR_START_DEFAULT">CURSOR_START_DEFAULT</a></span></code> |
| <div class="block">The default cursor starting position.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#DEFAULT_HEIGHT">DEFAULT_HEIGHT</a></span></code> |
| <div class="block">The default comfortable widget height.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#DEFAULT_WIDTH">DEFAULT_WIDTH</a></span></code> |
| <div class="block">The default comfortable widget width.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#LINE_WIDTH_DEFAULT">LINE_WIDTH_DEFAULT</a></span></code> |
| <div class="block">The default line width.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#PROGRESSION_DEFAULT">PROGRESSION_DEFAULT</a></span></code> |
| <div class="block">The default tail fade percentage</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#STEADYPOSITION_75PERCENT">STEADYPOSITION_75PERCENT</a></span></code> |
| <div class="block">Steady position @ 75% of graph.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILFADE_DEFAULT">TAILFADE_DEFAULT</a></span></code> |
| <div class="block">The default amount of tail fading in percentages (25).</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILFADE_NONE">TAILFADE_NONE</a></span></code> |
| <div class="block">No tailfade.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILFADE_PERCENTAGE">TAILFADE_PERCENTAGE</a></span></code> |
| <div class="block">The default tail fade percentage</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_DEFAULT">TAILSIZE_DEFAULT</a></span></code> |
| <div class="block">The default tail size is 75% of the width.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_FILL">TAILSIZE_FILL</a></span></code> |
| <div class="block">Will draw a tail from the left border but is only valid if the boolean in |
| <code>#setSteady(boolean, int)</code> was set to true, will default to |
| <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_MAX"><code>TAILSIZE_MAX</code></a> otherwise.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_MAX">TAILSIZE_MAX</a></span></code> |
| <div class="block">Will draw a maximum tail.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.eclipse.swt.widgets.Control"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.eclipse.swt.widgets.Control</h3> |
| <code>handle</code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#Plotter-int-org.eclipse.swt.widgets.Composite-int-">Plotter</a></span>(int channels, |
| org.eclipse.swt.widgets.Composite parent, |
| int style)</code> |
| <div class="block">Creates a new plotter with <code>channels</code> channels.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#Plotter-int-org.eclipse.swt.widgets.Composite-int-org.eclipse.swt.graphics.Color-org.eclipse.swt.graphics.Color-">Plotter</a></span>(int channels, |
| org.eclipse.swt.widgets.Composite parent, |
| int style, |
| org.eclipse.swt.graphics.Color backgroundColor, |
| org.eclipse.swt.graphics.Color foregroundColor)</code> |
| <div class="block">Creates a new plotter with <code>channels</code> channels</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#controlMoved-org.eclipse.swt.widgets.Event-">controlMoved</a></span>(org.eclipse.swt.widgets.Event e)</code> </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#controlResized-org.eclipse.swt.widgets.Event-">controlResized</a></span>(org.eclipse.swt.widgets.Event e)</code> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>protected int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#ConvertValueToScreenPosition-int-int-">ConvertValueToScreenPosition</a></span>(int Value, |
| int ScreenHeight)</code> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getBase-int-">getBase</a></span>(int channel)</code> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getBaseOffset-int-">getBaseOffset</a></span>(int channel)</code> |
| <div class="block">Gets the relative location where the line is drawn in the widget.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getChannelName-int-">getChannelName</a></span>(int channel)</code> |
| <div class="block">get the descriptive name of the channel</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getChannels--">getChannels</a></span>()</code> |
| <div class="block">Returns the number of channels on the plotter This method can be called |
| outside of the UI thread.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getData-boolean-">getData</a></span>(boolean addHeader)</code> |
| <div class="block">Returns the data in CSV format using the semicolon (;) as separator and |
| delegating to <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getData-boolean-java.lang.String-"><code>getData(boolean, String)</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getData-boolean-java.lang.String-">getData</a></span>(boolean addHeader, |
| java.lang.String separator)</code> |
| <div class="block">This method returns the data in csv format using the passed separator as |
| field separator.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>org.eclipse.swt.graphics.Color</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getForeground-int-">getForeground</a></span>(int channel)</code> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getLineWidth-int-">getLineWidth</a></span>(int channel)</code> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getRangeHighValue--">getRangeHighValue</a></span>()</code> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getRangeLowValue--">getRangeLowValue</a></span>()</code> </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getTailFade-int-">getTailFade</a></span>(int channel)</code> |
| <div class="block">Gets the percentage of tail that must be faded out.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getTailSize-int-">getTailSize</a></span>(int channel)</code> |
| <div class="block">Returns the size of the tail.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#isAntiAlias-int-">isAntiAlias</a></span>(int channel)</code> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#isConnect-int-">isConnect</a></span>(int channel)</code> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#isFade-int-">isFade</a></span>(int channel)</code> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#isPercentage-int-">isPercentage</a></span>(int channel)</code> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#isSteady-int-">isSteady</a></span>(int channel)</code> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#paintControl-org.eclipse.swt.widgets.Event-">paintControl</a></span>(org.eclipse.swt.widgets.Event e)</code> </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#PositionPolyLine-int:A-">PositionPolyLine</a></span>(int[] l1)</code> </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setAntialias-int-boolean-">setAntialias</a></span>(int channel, |
| boolean antialias)</code> |
| <div class="block">Sets if the line must be anti-aliased which uses more processing power in |
| return of a smoother image.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setBaseOffset-int-int-">setBaseOffset</a></span>(int channel, |
| int newBaseOffset)</code> |
| <div class="block">Gets the relative location where the line is drawn in the widget, the default |
| is <code>BASE_CENTER</code> which is in the middle of the plotter.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#SetChannelName-int-java.lang.String-">SetChannelName</a></span>(int channel, |
| java.lang.String name)</code> |
| <div class="block">Set the descriptive name of the channel</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setConnect-int-boolean-">setConnect</a></span>(int channel, |
| boolean connectHeadAndTail)</code> |
| <div class="block">Connects head and tail only if tail size is <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_MAX"><code>TAILSIZE_MAX</code></a> and no |
| fading.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setFade-int-boolean-">setFade</a></span>(int channel, |
| boolean fade)</code> |
| <div class="block">Sets fade mode so that a percentage of the tail will be faded out at the |
| costs of extra CPU utilization (no beauty without pain or as the Dutch say: |
| "Wie mooi wil gaan moet pijn doorstaan").</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setForeground-int-org.eclipse.swt.graphics.Color-">setForeground</a></span>(int channel, |
| org.eclipse.swt.graphics.Color color)</code> |
| <div class="block">Sets the foreground color for the supplied channel.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setLineWidth-int-int-">setLineWidth</a></span>(int channel, |
| int lineWidth)</code> |
| <div class="block">Sets the line width.</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setPercentage-int-boolean-">setPercentage</a></span>(int channel, |
| boolean percentage)</code> |
| <div class="block">If set to true then the values are treated as percentages of the available |
| space rather than absolute values.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setRange-int-int-">setRange</a></span>(int lowValue, |
| int highValue)</code> </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setSteady-int-boolean-int-">setSteady</a></span>(int channel, |
| boolean steady, |
| int steadyPosition)</code> |
| <div class="block">If steady is true the graph will draw on a steady position instead of |
| advancing.</div> |
| </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setTailFade-int-int-">setTailFade</a></span>(int channel, |
| int newTailFade)</code> |
| <div class="block">Sets the percentage of tail that must be faded out.</div> |
| </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setTailSize-int-int-">setTailSize</a></span>(int channel, |
| int newSize)</code> |
| <div class="block">The tail size defaults to TAILSIZE_DEFAULT which is 75% of the width.</div> |
| </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setValue-int-int-">setValue</a></span>(int channel, |
| int value)</code> |
| <div class="block">Sets a value to be drawn relative to the center of the channel.</div> |
| </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#widgetDisposed-org.eclipse.swt.widgets.Event-">widgetDisposed</a></span>(org.eclipse.swt.widgets.Event e)</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Canvas"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.swt.widgets.Canvas</h3> |
| <code>drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME</code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Composite"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.swt.widgets.Composite</h3> |
| <code>changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList</code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Scrollable"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.swt.widgets.Scrollable</h3> |
| <code>computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar</code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Control"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.swt.widgets.Control</h3> |
| <code>addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update</code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Widget"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.swt.widgets.Widget</h3> |
| <code>addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString</code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.graphics.Drawable"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.eclipse.swt.graphics.Drawable</h3> |
| <code>isAutoScalable</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="BASE_CENTER"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>BASE_CENTER</h4> |
| <pre>public static final int BASE_CENTER</pre> |
| <div class="block">The base of the line is positioned at the center of the widget.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>#setBaseOffset(int)</code>, |
| <a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.BASE_CENTER">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="CURSOR_START_DEFAULT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>CURSOR_START_DEFAULT</h4> |
| <pre>public static final int CURSOR_START_DEFAULT</pre> |
| <div class="block">The default cursor starting position.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.CURSOR_START_DEFAULT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_HEIGHT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_HEIGHT</h4> |
| <pre>public static final int DEFAULT_HEIGHT</pre> |
| <div class="block">The default comfortable widget height.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.DEFAULT_HEIGHT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_WIDTH"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_WIDTH</h4> |
| <pre>public static final int DEFAULT_WIDTH</pre> |
| <div class="block">The default comfortable widget width.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.DEFAULT_WIDTH">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="LINE_WIDTH_DEFAULT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>LINE_WIDTH_DEFAULT</h4> |
| <pre>public static final int LINE_WIDTH_DEFAULT</pre> |
| <div class="block">The default line width.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.LINE_WIDTH_DEFAULT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="PROGRESSION_DEFAULT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>PROGRESSION_DEFAULT</h4> |
| <pre>public static final int PROGRESSION_DEFAULT</pre> |
| <div class="block">The default tail fade percentage</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.PROGRESSION_DEFAULT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="STEADYPOSITION_75PERCENT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>STEADYPOSITION_75PERCENT</h4> |
| <pre>public static final int STEADYPOSITION_75PERCENT</pre> |
| <div class="block">Steady position @ 75% of graph.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.STEADYPOSITION_75PERCENT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="TAILFADE_DEFAULT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>TAILFADE_DEFAULT</h4> |
| <pre>public static final int TAILFADE_DEFAULT</pre> |
| <div class="block">The default amount of tail fading in percentages (25).</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.TAILFADE_DEFAULT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="TAILFADE_NONE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>TAILFADE_NONE</h4> |
| <pre>public static final int TAILFADE_NONE</pre> |
| <div class="block">No tailfade.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.TAILFADE_NONE">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="TAILFADE_PERCENTAGE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>TAILFADE_PERCENTAGE</h4> |
| <pre>public static final int TAILFADE_PERCENTAGE</pre> |
| <div class="block">The default tail fade percentage</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.TAILFADE_PERCENTAGE">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="TAILSIZE_DEFAULT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>TAILSIZE_DEFAULT</h4> |
| <pre>public static final int TAILSIZE_DEFAULT</pre> |
| <div class="block">The default tail size is 75% of the width.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.TAILSIZE_DEFAULT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="TAILSIZE_FILL"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>TAILSIZE_FILL</h4> |
| <pre>public static final int TAILSIZE_FILL</pre> |
| <div class="block">Will draw a tail from the left border but is only valid if the boolean in |
| <code>#setSteady(boolean, int)</code> was set to true, will default to |
| <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_MAX"><code>TAILSIZE_MAX</code></a> otherwise.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.TAILSIZE_FILL">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="TAILSIZE_MAX"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>TAILSIZE_MAX</h4> |
| <pre>public static final int TAILSIZE_MAX</pre> |
| <div class="block">Will draw a maximum tail.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.oscilloscope.multichannel.Plotter.TAILSIZE_MAX">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="Plotter-int-org.eclipse.swt.widgets.Composite-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>Plotter</h4> |
| <pre>public Plotter(int channels, |
| org.eclipse.swt.widgets.Composite parent, |
| int style)</pre> |
| <div class="block">Creates a new plotter with <code>channels</code> channels.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channels</code> - </dd> |
| <dd><code>parent</code> - </dd> |
| <dd><code>style</code> - </dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="Plotter-int-org.eclipse.swt.widgets.Composite-int-org.eclipse.swt.graphics.Color-org.eclipse.swt.graphics.Color-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>Plotter</h4> |
| <pre>public Plotter(int channels, |
| org.eclipse.swt.widgets.Composite parent, |
| int style, |
| org.eclipse.swt.graphics.Color backgroundColor, |
| org.eclipse.swt.graphics.Color foregroundColor)</pre> |
| <div class="block">Creates a new plotter with <code>channels</code> channels</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channels</code> - </dd> |
| <dd><code>parent</code> - </dd> |
| <dd><code>style</code> - </dd> |
| <dd><code>backgroundColor</code> - if null use default background</dd> |
| <dd><code>foregroundColor</code> - if null use default foreground</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="paintControl-org.eclipse.swt.widgets.Event-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>paintControl</h4> |
| <pre>protected void paintControl(org.eclipse.swt.widgets.Event e)</pre> |
| </li> |
| </ul> |
| <a name="setValue-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setValue</h4> |
| <pre>public void setValue(int channel, |
| int value)</pre> |
| <div class="block">Sets a value to be drawn relative to the center of the channel. Supply a |
| positive or negative value. This method will only accept values if the width |
| of the plotter > 0. The values will be stored in a stack and popped once a |
| value is needed. The size of the stack is the width of the widget. If you |
| resize the widget, the old stack will be copied into a new stack with the new |
| capacity. |
| <p/> |
| This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - </dd> |
| <dd><code>value</code> - which is an absolute value or a percentage</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#isPercentage-int-"><code>isPercentage(int)</code></a>, |
| <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#setBaseOffset-int-int-"><code>setBaseOffset(int, int)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getRangeLowValue--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRangeLowValue</h4> |
| <pre>public int getRangeLowValue()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the value represented by the bottom of the plotter</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getRangeHighValue--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRangeHighValue</h4> |
| <pre>public int getRangeHighValue()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the value represented by the top of the plotter</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="PositionPolyLine-int:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>PositionPolyLine</h4> |
| <pre>protected void PositionPolyLine(int[] l1)</pre> |
| </li> |
| </ul> |
| <a name="ConvertValueToScreenPosition-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ConvertValueToScreenPosition</h4> |
| <pre>protected int ConvertValueToScreenPosition(int Value, |
| int ScreenHeight)</pre> |
| </li> |
| </ul> |
| <a name="setRange-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setRange</h4> |
| <pre>public void setRange(int lowValue, |
| int highValue)</pre> |
| </li> |
| </ul> |
| <a name="getData-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getData</h4> |
| <pre>public java.lang.String getData(boolean addHeader)</pre> |
| <div class="block">Returns the data in CSV format using the semicolon (;) as separator and |
| delegating to <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getData-boolean-java.lang.String-"><code>getData(boolean, String)</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>addHeader</code> - true to add the header</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the CSV string.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#getData-boolean-java.lang.String-"><code>getData(boolean, String)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getData-boolean-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getData</h4> |
| <pre>public java.lang.String getData(boolean addHeader, |
| java.lang.String separator)</pre> |
| <div class="block">This method returns the data in csv format using the passed separator as |
| field separator. if addHeader is true a header is added based on the names of |
| the channels. Use <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#SetChannelName-int-java.lang.String-"><code>SetChannelName(int, String)</code></a> to set the names.</div> |
| </li> |
| </ul> |
| <a name="SetChannelName-int-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SetChannelName</h4> |
| <pre>public void SetChannelName(int channel, |
| java.lang.String name)</pre> |
| <div class="block">Set the descriptive name of the channel</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - the channel to set the name for</dd> |
| <dd><code>name</code> - the descriptive name</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getChannelName-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getChannelName</h4> |
| <pre>public java.lang.String getChannelName(int channel)</pre> |
| <div class="block">get the descriptive name of the channel</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - the channel to get the name from returns the descriptive name</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setSteady-int-boolean-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSteady</h4> |
| <pre>public void setSteady(int channel, |
| boolean steady, |
| int steadyPosition)</pre> |
| <div class="block">If steady is true the graph will draw on a steady position instead of |
| advancing. |
| <p/> |
| This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>steady</code> - </dd> |
| <dd><code>steadyPosition</code> - </dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isSteady-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isSteady</h4> |
| <pre>public boolean isSteady(int channel)</pre> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>boolean steady indicator</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Oscilloscope#setSteady(boolean, int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getBase-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBase</h4> |
| <pre>public int getBase(int channel)</pre> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the base of the line.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getBaseOffset-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBaseOffset</h4> |
| <pre>public int getBaseOffset(int channel)</pre> |
| <div class="block">Gets the relative location where the line is drawn in the widget. This method |
| can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>baseOffset</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getChannels--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getChannels</h4> |
| <pre>public int getChannels()</pre> |
| <div class="block">Returns the number of channels on the plotter This method can be called |
| outside of the UI thread.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>int, number of channels.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getForeground-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getForeground</h4> |
| <pre>public org.eclipse.swt.graphics.Color getForeground(int channel)</pre> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - </dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the foreground color associated with the supplied channel.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLineWidth-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLineWidth</h4> |
| <pre>public int getLineWidth(int channel)</pre> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>int, the width of the line.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>#setLineWidth(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getTailFade-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTailFade</h4> |
| <pre>public int getTailFade(int channel)</pre> |
| <div class="block">Gets the percentage of tail that must be faded out. This method can be called |
| outside of the UI thread.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>int percentage</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>#setFade(boolean)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getTailSize-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTailSize</h4> |
| <pre>public int getTailSize(int channel)</pre> |
| <div class="block">Returns the size of the tail. This method can be called outside of the UI |
| thread.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>int</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>#setTailSize(int)</code>, |
| <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_DEFAULT"><code>TAILSIZE_DEFAULT</code></a>, |
| <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_FILL"><code>TAILSIZE_FILL</code></a>, |
| <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_MAX"><code>TAILSIZE_MAX</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isConnect-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isConnect</h4> |
| <pre>public boolean isConnect(int channel)</pre> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>boolean, true if the tail and the head of the graph must be connected |
| if tail size is <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_MAX"><code>TAILSIZE_MAX</code></a> no fading graph.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isFade-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isFade</h4> |
| <pre>public boolean isFade(int channel)</pre> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>boolean fade</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>#setFade(boolean)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isPercentage-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isPercentage</h4> |
| <pre>public boolean isPercentage(int channel)</pre> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>boolean</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>#setPercentage(boolean)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isAntiAlias-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isAntiAlias</h4> |
| <pre>public boolean isAntiAlias(int channel)</pre> |
| <div class="block">This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>boolean anti-alias indicator</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Oscilloscope.html#setAntialias-int-boolean-"><code>Oscilloscope.setAntialias(int, boolean)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setTailSize-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setTailSize</h4> |
| <pre>public void setTailSize(int channel, |
| int newSize)</pre> |
| <div class="block">The tail size defaults to TAILSIZE_DEFAULT which is 75% of the width. Setting |
| it with TAILSIZE_MAX will leave one pixel between the tail and the head. All |
| values are absolute except TAILSIZE*. If the width is smaller then the tail |
| size then the tail size will behave like TAILSIZE_MAX.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>size</code> - the size of the tail</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>#getTailSize()</code>, |
| <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_DEFAULT"><code>TAILSIZE_DEFAULT</code></a>, |
| <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_FILL"><code>TAILSIZE_FILL</code></a>, |
| <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_MAX"><code>TAILSIZE_MAX</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="widgetDisposed-org.eclipse.swt.widgets.Event-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>widgetDisposed</h4> |
| <pre>protected void widgetDisposed(org.eclipse.swt.widgets.Event e)</pre> |
| </li> |
| </ul> |
| <a name="controlMoved-org.eclipse.swt.widgets.Event-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>controlMoved</h4> |
| <pre>protected void controlMoved(org.eclipse.swt.widgets.Event e)</pre> |
| </li> |
| </ul> |
| <a name="controlResized-org.eclipse.swt.widgets.Event-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>controlResized</h4> |
| <pre>protected void controlResized(org.eclipse.swt.widgets.Event e)</pre> |
| </li> |
| </ul> |
| <a name="setTailFade-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setTailFade</h4> |
| <pre>public void setTailFade(int channel, |
| int newTailFade)</pre> |
| <div class="block">Sets the percentage of tail that must be faded out. If you supply 100 then |
| the tail is faded out all the way to the top. The effect will become |
| increasingly less obvious. |
| <p/> |
| This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>tailFade</code> - </dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setFade-int-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setFade</h4> |
| <pre>public void setFade(int channel, |
| boolean fade)</pre> |
| <div class="block">Sets fade mode so that a percentage of the tail will be faded out at the |
| costs of extra CPU utilization (no beauty without pain or as the Dutch say: |
| "Wie mooi wil gaan moet pijn doorstaan"). The reason for this is that each |
| pixel must be drawn separately with alpha faded in instead of the elegant |
| <code>GC.drawPolygon(int[])</code> routine which does not support alpha blending. |
| <p> |
| In addition to this, set the percentage of tail that must be faded out |
| <code>#setTailFade(int)</code>. |
| <p> |
| This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>fade</code> - true or false</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>#setTailFade(int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setForeground-int-org.eclipse.swt.graphics.Color-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setForeground</h4> |
| <pre>public void setForeground(int channel, |
| org.eclipse.swt.graphics.Color color)</pre> |
| <div class="block">Sets the foreground color for the supplied channel. |
| <p/> |
| This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - </dd> |
| <dd><code>color</code> - </dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setLineWidth-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setLineWidth</h4> |
| <pre>public void setLineWidth(int channel, |
| int lineWidth)</pre> |
| <div class="block">Sets the line width. A value equal or below zero is ignored. The default |
| width is 1. This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>lineWidth</code> - </dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setPercentage-int-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setPercentage</h4> |
| <pre>public void setPercentage(int channel, |
| boolean percentage)</pre> |
| <div class="block">If set to true then the values are treated as percentages of the available |
| space rather than absolute values. This will scale the amplitudes if the |
| control is resized. Default is false. |
| <p/> |
| This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>percentage</code> - true if percentages</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setBaseOffset-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setBaseOffset</h4> |
| <pre>public void setBaseOffset(int channel, |
| int newBaseOffset)</pre> |
| <div class="block">Gets the relative location where the line is drawn in the widget, the default |
| is <code>BASE_CENTER</code> which is in the middle of the plotter. This |
| method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>baseOffset</code> - must be between 100 and -100, exceeding values are rounded to the |
| closest allowable value.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setConnect-int-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setConnect</h4> |
| <pre>public void setConnect(int channel, |
| boolean connectHeadAndTail)</pre> |
| <div class="block">Connects head and tail only if tail size is <a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html#TAILSIZE_MAX"><code>TAILSIZE_MAX</code></a> and no |
| fading. This method can be called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>connectHeadAndTail</code> - </dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setAntialias-int-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>setAntialias</h4> |
| <pre>public void setAntialias(int channel, |
| boolean antialias)</pre> |
| <div class="block">Sets if the line must be anti-aliased which uses more processing power in |
| return of a smoother image. The default value is false. This method can be |
| called outside of the UI thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - </dd> |
| <dd><code>antialias</code> - </dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Plotter.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../org/eclipse/nebula/widgets/oscilloscope/multichannel/OscilloscopeStackAdapter.html" title="class in org.eclipse.nebula.widgets.oscilloscope.multichannel"><span class="typeNameLink">Prev Class</span></a></li> |
| <li>Next Class</li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/eclipse/nebula/widgets/oscilloscope/multichannel/Plotter.html" target="_top">Frames</a></li> |
| <li><a href="Plotter.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |