blob: f880c3f3886994efebbbfe6e801458f2d4dfe56d [file] [log] [blame]
<!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:59:05 CEST 2020 -->
<title>BranchRenderer</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="BranchRenderer";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":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/BranchRenderer.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>Prev&nbsp;Class</li>
<li><a href="../../../../../../org/eclipse/nebula/widgets/grid/internal/CheckBoxRenderer.html" title="class in org.eclipse.nebula.widgets.grid.internal"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/eclipse/nebula/widgets/grid/internal/BranchRenderer.html" target="_top">Frames</a></li>
<li><a href="BranchRenderer.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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.grid.internal</div>
<h2 title="Class BranchRenderer" class="title">Class BranchRenderer</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html" title="class in org.eclipse.nebula.widgets.grid">org.eclipse.nebula.widgets.grid.AbstractRenderer</a></li>
<li>
<ul class="inheritance">
<li>org.eclipse.nebula.widgets.grid.internal.BranchRenderer</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../../org/eclipse/nebula/widgets/grid/IRenderer.html" title="interface in org.eclipse.nebula.widgets.grid">IRenderer</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">BranchRenderer</span>
extends <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html" title="class in org.eclipse.nebula.widgets.grid">AbstractRenderer</a></pre>
<div class="block">Renders the tree branch hierarchy for a <a href="../../../../../../org/eclipse/nebula/widgets/grid/GridColumn.html" title="class in org.eclipse.nebula.widgets.grid"><code>GridColumn</code></a></div>
</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">&nbsp;</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/grid/internal/BranchRenderer.html#ASCENDER">ASCENDER</a></span></code>
<div class="block">A vertical bar from the top to the toggle</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/grid/internal/BranchRenderer.html#DESCENDER">DESCENDER</a></span></code>
<div class="block">A vertical bar from the toggle to the bottom</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/grid/internal/BranchRenderer.html#H_CENTRE_TOGGLE">H_CENTRE_TOGGLE</a></span></code>
<div class="block">A horizontal bar from the centre to the toggle</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/grid/internal/BranchRenderer.html#H_FULL">H_FULL</a></span></code>
<div class="block">A full-width horizontal bar</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/grid/internal/BranchRenderer.html#H_LEFT_TOGGLE">H_LEFT_TOGGLE</a></span></code>
<div class="block">A horizontal bar from the left to the toggle</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/grid/internal/BranchRenderer.html#H_RIGHT">H_RIGHT</a></span></code>
<div class="block">A horizontal bar from the centre to the right</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/grid/internal/BranchRenderer.html#I">I</a></span></code>
<div class="block">Indicates that a branch should be rendered as a 'I' shape.</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/grid/internal/BranchRenderer.html#L">L</a></span></code>
<div class="block">Indicates that a branch should be rendered as an 'L' shape.</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/grid/internal/BranchRenderer.html#LAST_ROOT">LAST_ROOT</a></span></code>
<div class="block">Indicates that the decoration for the last root node should be drawn</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/grid/internal/BranchRenderer.html#LEAF">LEAF</a></span></code>
<div class="block">Indicates that the decoration for a leaf node should be drawn</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/grid/internal/BranchRenderer.html#NODE">NODE</a></span></code>
<div class="block">Indicates that the toggle decoration for an expanded parent should be drawn</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/grid/internal/BranchRenderer.html#NONE">NONE</a></span></code>
<div class="block">Indicates that a branch should not be rendered.</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/grid/internal/BranchRenderer.html#ROOT">ROOT</a></span></code>
<div class="block">Indicates that the decoration for a root node should be drawn</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/grid/internal/BranchRenderer.html#SMALL_L">SMALL_L</a></span></code>
<div class="block">A half-width L used on roots with no children</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/grid/internal/BranchRenderer.html#SMALL_T">SMALL_T</a></span></code>
<div class="block">A half-width T used on roots with no children</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/grid/internal/BranchRenderer.html#T">T</a></span></code>
<div class="block">Indicates that a branch should be rendered as a 'T' shape.</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/grid/internal/BranchRenderer.html#V_FULL">V_FULL</a></span></code>
<div class="block">A full-height vertical bar</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/grid/internal/BranchRenderer.html#V_TOP">V_TOP</a></span></code>
<div class="block">A vertical bar from the top to the middle</div>
</td>
</tr>
</table>
</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">&nbsp;</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/grid/internal/BranchRenderer.html#BranchRenderer--">BranchRenderer</a></span>()</code>&nbsp;</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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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>org.eclipse.swt.graphics.Point</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/grid/internal/BranchRenderer.html#computeSize-org.eclipse.swt.graphics.GC-int-int-java.lang.Object-">computeSize</a></span>(org.eclipse.swt.graphics.GC&nbsp;gc,
int&nbsp;hint,
int&nbsp;hint2,
java.lang.Object&nbsp;value)</code>
<div class="block">Returns the size of the given value's visual representation.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/grid/internal/BranchRenderer.html#paint-org.eclipse.swt.graphics.GC-java.lang.Object-">paint</a></span>(org.eclipse.swt.graphics.GC&nbsp;gc,
java.lang.Object&nbsp;value)</code>
<div class="block">Paints the visual representation of the given value on the given GC.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/grid/internal/BranchRenderer.html#setBranches-int:A-">setBranches</a></span>(int[]&nbsp;branches)</code>
<div class="block">Sets the branches that will be used.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/grid/internal/BranchRenderer.html#setIndent-int-">setIndent</a></span>(int&nbsp;toggleIndent)</code>
<div class="block">Sets the indent used for rendering the tree branches</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/grid/internal/BranchRenderer.html#setToggleBounds-org.eclipse.swt.graphics.Rectangle-">setToggleBounds</a></span>(org.eclipse.swt.graphics.Rectangle&nbsp;toggleBounds)</code>
<div class="block">Sets bounds of the toggle control.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.nebula.widgets.grid.AbstractRenderer">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.nebula.widgets.grid.<a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html" title="class in org.eclipse.nebula.widgets.grid">AbstractRenderer</a></h3>
<code><a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#getBounds--">getBounds</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#getDisplay--">getDisplay</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#getSize--">getSize</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#isExpanded--">isExpanded</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#isFocus--">isFocus</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#isHover--">isHover</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#isMouseDown--">isMouseDown</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#isSelected--">isSelected</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setBounds-int-int-int-int-">setBounds</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setBounds-org.eclipse.swt.graphics.Rectangle-">setBounds</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setDisplay-org.eclipse.swt.widgets.Display-">setDisplay</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setExpanded-boolean-">setExpanded</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setFocus-boolean-">setFocus</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setHover-boolean-">setHover</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setLocation-int-int-">setLocation</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setLocation-org.eclipse.swt.graphics.Point-">setLocation</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setMouseDown-boolean-">setMouseDown</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setSelected-boolean-">setSelected</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setSize-int-int-">setSize</a>, <a href="../../../../../../org/eclipse/nebula/widgets/grid/AbstractRenderer.html#setSize-org.eclipse.swt.graphics.Point-">setSize</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</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="H_FULL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>H_FULL</h4>
<pre>public static final&nbsp;int H_FULL</pre>
<div class="block">A full-width horizontal bar</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.H_FULL">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="H_RIGHT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>H_RIGHT</h4>
<pre>public static final&nbsp;int H_RIGHT</pre>
<div class="block">A horizontal bar from the centre to the right</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.H_RIGHT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="H_CENTRE_TOGGLE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>H_CENTRE_TOGGLE</h4>
<pre>public static final&nbsp;int H_CENTRE_TOGGLE</pre>
<div class="block">A horizontal bar from the centre to the toggle</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.H_CENTRE_TOGGLE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="H_LEFT_TOGGLE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>H_LEFT_TOGGLE</h4>
<pre>public static final&nbsp;int H_LEFT_TOGGLE</pre>
<div class="block">A horizontal bar from the left to the toggle</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.H_LEFT_TOGGLE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="V_FULL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>V_FULL</h4>
<pre>public static final&nbsp;int V_FULL</pre>
<div class="block">A full-height vertical bar</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.V_FULL">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="V_TOP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>V_TOP</h4>
<pre>public static final&nbsp;int V_TOP</pre>
<div class="block">A vertical bar from the top to the middle</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.V_TOP">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="DESCENDER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DESCENDER</h4>
<pre>public static final&nbsp;int DESCENDER</pre>
<div class="block">A vertical bar from the toggle to the bottom</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.DESCENDER">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ASCENDER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ASCENDER</h4>
<pre>public static final&nbsp;int ASCENDER</pre>
<div class="block">A vertical bar from the top to the toggle</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.ASCENDER">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NONE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NONE</h4>
<pre>public static final&nbsp;int NONE</pre>
<div class="block">Indicates that a branch should not be rendered.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.NONE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="T">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>T</h4>
<pre>public static final&nbsp;int T</pre>
<div class="block">Indicates that a branch should be rendered as a 'T' shape. This
is used for normal children with following siblings</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.T">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="L">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>L</h4>
<pre>public static final&nbsp;int L</pre>
<div class="block">Indicates that a branch should be rendered as an 'L' shape. This
is used for the last child element</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.L">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="I">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>I</h4>
<pre>public static final&nbsp;int I</pre>
<div class="block">Indicates that a branch should be rendered as a 'I' shape. This
is used for connecting children when intermediate children are shown.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.I">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NODE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NODE</h4>
<pre>public static final&nbsp;int NODE</pre>
<div class="block">Indicates that the toggle decoration for an expanded parent should be drawn</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.NODE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="LEAF">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LEAF</h4>
<pre>public static final&nbsp;int LEAF</pre>
<div class="block">Indicates that the decoration for a leaf node should be drawn</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.LEAF">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ROOT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ROOT</h4>
<pre>public static final&nbsp;int ROOT</pre>
<div class="block">Indicates that the decoration for a root node should be drawn</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.ROOT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="LAST_ROOT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LAST_ROOT</h4>
<pre>public static final&nbsp;int LAST_ROOT</pre>
<div class="block">Indicates that the decoration for the last root node should be drawn</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.LAST_ROOT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="SMALL_T">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SMALL_T</h4>
<pre>public static final&nbsp;int SMALL_T</pre>
<div class="block">A half-width T used on roots with no children</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.SMALL_T">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="SMALL_L">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SMALL_L</h4>
<pre>public static final&nbsp;int SMALL_L</pre>
<div class="block">A half-width L used on roots with no children</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.eclipse.nebula.widgets.grid.internal.BranchRenderer.SMALL_L">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="BranchRenderer--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>BranchRenderer</h4>
<pre>public&nbsp;BranchRenderer()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="computeSize-org.eclipse.swt.graphics.GC-int-int-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeSize</h4>
<pre>public&nbsp;org.eclipse.swt.graphics.Point&nbsp;computeSize(org.eclipse.swt.graphics.GC&nbsp;gc,
int&nbsp;hint,
int&nbsp;hint2,
java.lang.Object&nbsp;value)</pre>
<div class="block">Returns the size of the given value's visual representation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>gc</code> - convenience GC for string and text extents</dd>
<dd><code>hint</code> - given width (or SWT.DEFAULT)</dd>
<dd><code>hint2</code> - given height (or SWT.DEFAULT)</dd>
<dd><code>value</code> - value to be sized</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the size</dd>
</dl>
</li>
</ul>
<a name="paint-org.eclipse.swt.graphics.GC-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>paint</h4>
<pre>public&nbsp;void&nbsp;paint(org.eclipse.swt.graphics.GC&nbsp;gc,
java.lang.Object&nbsp;value)</pre>
<div class="block">Paints the visual representation of the given value on the given GC. The
actual class of the value object is determined by the use of the
implementing class.
<p>
Implementors need to respect the bounds values that may have been
specified. The bounds values may affect the x and y values for all
drawing operations as well as the width and heights. Implementors may use
a <code>Transform</code> to translate the coordinates of all the
drawing operations, otherwise they will need to offset each draw.
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>gc</code> - GC to paint with</dd>
<dd><code>value</code> - the value being painted</dd>
</dl>
</li>
</ul>
<a name="setBranches-int:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBranches</h4>
<pre>public&nbsp;void&nbsp;setBranches(int[]&nbsp;branches)</pre>
<div class="block">Sets the branches that will be used. The values are taken from the constants in this class such as
I, L, T, NODE, LEAF and NONE, which represent the branch type to be used for each level.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>branches</code> - an array of branch types</dd>
</dl>
</li>
</ul>
<a name="setIndent-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setIndent</h4>
<pre>public&nbsp;void&nbsp;setIndent(int&nbsp;toggleIndent)</pre>
<div class="block">Sets the indent used for rendering the tree branches</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>toggleIndent</code> - the indent used for the tree</dd>
</dl>
</li>
</ul>
<a name="setToggleBounds-org.eclipse.swt.graphics.Rectangle-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setToggleBounds</h4>
<pre>public&nbsp;void&nbsp;setToggleBounds(org.eclipse.swt.graphics.Rectangle&nbsp;toggleBounds)</pre>
<div class="block">Sets bounds of the toggle control. This is used to position the downwards branches</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>toggleBounds</code> - the bounds of the toggle control</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/BranchRenderer.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>Prev&nbsp;Class</li>
<li><a href="../../../../../../org/eclipse/nebula/widgets/grid/internal/CheckBoxRenderer.html" title="class in org.eclipse.nebula.widgets.grid.internal"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/eclipse/nebula/widgets/grid/internal/BranchRenderer.html" target="_top">Frames</a></li>
<li><a href="BranchRenderer.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>