📄 bichartpresentationmanager.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><!--
Generated using api.website.xsl version 2003-07-17
-->
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>BiChartPresentationManager</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link type="text/css" rel="stylesheet" href="api.css"><script type="text/javascript">
function showDerivedClasses() {
var ul = document.getElementById("api-derived-classes");
var lis = ul.childNodes;
var l = lis.length;
for (var i = 1; i < l; i++)
lis[i].style.display = "";
lis[0].style.display = "none";
}
</script></head>
<body>
<h1 id="BiChartPresentationManager">BiChartPresentationManager</h1>
<p>
This class is used to find the properties for different visual aspects of
of the graph.
</p>
<p>This class extends
<code><a href="BiObject.html">BiObject</a></code>
and therefore all methods and fields available for
<code><a href="BiObject.html">BiObject</a></code>
are also available for <code>BiChartPresentationManager</code>.</p>
<ul class="partial-class-tree">
<li><code><a href="BiObject.html">BiObject</a></code><ul>
<li><code>BiChartPresentationManager</code><ul id="api-derived-classes"></ul></li></ul>
</li>
</ul>
<h2>Constructor</h2>
<p><code>
new BiChartPresentationManager(<span class="methodArgument">oGraph</span>)</code></p>
<h3>Parameters</h3>
<table>
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td class="optional-header">Optional</td>
<td>Default</td>
<td>Descripton</td>
</tr>
</thead>
<tbody>
<tr>
<td><code>oGraph</code></td>
<td><code class="type"><code><a href="BiGraph.html">BiGraph</a></code></code></td>
<td class="optional-column"></td>
<td></td>
<td>The graph that the presentation manager is part of</td>
</tr>
</tbody>
</table>
<h2>Properties</h2>
<p>None.</p>
<h2>Methods</h2>
<table>
<thead>
<tr>
<td>Name</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="#getBarSpacingForPoint">getBarSpacingForPoint</a></code></td>
<td>Returns the bar spacing for the graph.
The bar spacing is the same for the entire graph so the arguments are not used.</td>
</tr>
<tr>
<td><code><a href="#getDefaultColor">getDefaultColor</a></code></td>
<td>Returns the default color for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#getDefaultMarker">getDefaultMarker</a></code></td>
<td>Returns the default marker type for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#getExplodeForPoint">getExplodeForPoint</a></code></td>
<td>Returns the explode value (the distance to move the pie chart section) for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#getFillAngleForPoint">getFillAngleForPoint</a></code></td>
<td>Returns the fill angle for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#getFillColor2ForPoint">getFillColor2ForPoint</a></code></td>
<td>Returns the alternate fill color for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#getFillColorForPoint">getFillColorForPoint</a></code></td>
<td>Returns the fill color for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#getFillOpacityForPoint">getFillOpacityForPoint</a></code></td>
<td>Returns the fill opacity for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#getFillTypeForPoint">getFillTypeForPoint</a></code></td>
<td>Returns the fill type for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#getMarkerTypeForPoint">getMarkerTypeForPoint</a></code></td>
<td>Returns the marker type for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#getMarkerVisibleForPoint">getMarkerVisibleForPoint</a></code></td>
<td>Returns whether the marker should be visible for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#getStrokeColorForPoint">getStrokeColorForPoint</a></code></td>
<td>Returns the stroke color for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#getStrokeOpacityForPoint">getStrokeOpacityForPoint</a></code></td>
<td>Returns the stroke opacity for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#setBarSpacingForPoint">setBarSpacingForPoint</a></code></td>
<td>
Sets the bar spacing for the graph. Since the bar spacing is the
same for all charts in the graph the <code>sSeriesId</code> and
<code>sCategoryId</code> arguments are ignored here.
</td>
</tr>
<tr>
<td><code><a href="#setExplodeForPoint">setExplodeForPoint</a></code></td>
<td>Sets the explode value for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#setFillAngleForPoint">setFillAngleForPoint</a></code></td>
<td>Sets the fill angle for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#setFillColor2ForPoint">setFillColor2ForPoint</a></code></td>
<td>Sets the alternate fill color for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#setFillColorForPoint">setFillColorForPoint</a></code></td>
<td>Sets the fill color for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#setFillOpacityForPoint">setFillOpacityForPoint</a></code></td>
<td>Sets the fill opacity for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#setFillTypeForPoint">setFillTypeForPoint</a></code></td>
<td>Sets the fill type for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#setMarkerTypeForPoint">setMarkerTypeForPoint</a></code></td>
<td>Sets the marker type for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#setMarkerVisibleForPoint">setMarkerVisibleForPoint</a></code></td>
<td>Sets the marker visible for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#setStrokeColorForPoint">setStrokeColorForPoint</a></code></td>
<td>Sets the stroke color for the point with the given ids</td>
</tr>
<tr>
<td><code><a href="#setStrokeOpacityForPoint">setStrokeOpacityForPoint</a></code></td>
<td>Sets the stroke opacity for the point with the given ids</td>
</tr>
</tbody>
</table>
<h2>Events</h2>
<p>None.</p>
<h2>Static Methods</h2>
<p>None.</p>
<h2>Static Fields</h2>
<p>None.</p>
<h2>Remarks</h2>
<p>
Visual changes to points should be done using this class instead of directly
changing the <code><a href="BiAbstractChart.html">BiAbstractChart</a></code> or
the <code><a href="BiAbstractChartSection.html">BiAbstractChartSection</a></code>.
</p>
<h2>Method Details</h2>
<h3><a name="getBarSpacingForPoint"></a>getBarSpacingForPoint</h3>
<p>Returns the bar spacing for the graph.
The bar spacing is the same for the entire graph so the arguments are not used.</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getBarSpacingForPoint(<span class="methodArgument">sSeriesId</span> [, <span class="methodArgument">sCategoryId</span>])</pre>
<h4>Parameters</h4>
<table>
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td class="optional-header">Optional</td>
<td>Default</td>
<td>Descripton</td>
</tr>
</thead>
<tbody>
<tr>
<td><code>sSeriesId</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"></td>
<td></td>
<td>The series id of the point</td>
</tr>
<tr>
<td><code>sCategoryId</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>The category id of the point</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Number</code></p>
<h3><a name="getDefaultColor"></a>getDefaultColor</h3>
<p>Returns the default color for the point with the given ids</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getDefaultColor(<span class="methodArgument">sSeriesId</span> [, <span class="methodArgument">sCategoryId</span>])</pre>
<h4>Parameters</h4>
<table>
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td class="optional-header">Optional</td>
<td>Default</td>
<td>Descripton</td>
</tr>
</thead>
<tbody>
<tr>
<td><code>sSeriesId</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"></td>
<td></td>
<td>The id of the series</td>
</tr>
<tr>
<td><code>sCategoryId</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>The id of the category</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">String</code></p>
<h3><a name="getDefaultMarker"></a>getDefaultMarker</h3>
<p>Returns the default marker type for the point with the given ids</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getDefaultMarker(<span class="methodArgument">sSeriesId</span> [, <span class="methodArgument">sCategoryId</span>])</pre>
<h4>Parameters</h4>
<table>
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td class="optional-header">Optional</td>
<td>Default</td>
<td>Descripton</td>
</tr>
</thead>
<tbody>
<tr>
<td><code>sSeriesId</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"></td>
<td></td>
<td>The id of the series</td>
</tr>
<tr>
<td><code>sCategoryId</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>The id of the category</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">String</code></p>
<h3><a name="getExplodeForPoint"></a>getExplodeForPoint</h3>
<p>Returns the explode value (the distance to move the pie chart section) for the point with the given ids</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getExplodeForPoint(<span class="methodArgument">sSeriesId</span> [, <span class="methodArgument">sCategoryId</span>])</pre>
<h4>Parameters</h4>
<table>
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td class="optional-header">Optional</td>
<td>Default</td>
<td>Descripton</td>
</tr>
</thead>
<tbody>
<tr>
<td><code>sSeriesId</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"></td>
<td></td>
<td>The series id of the point</td>
</tr>
<tr>
<td><code>sCategoryId</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>The category id of the point</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Number</code></p>
<h3><a name="getFillAngleForPoint"></a>getFillAngleForPoint</h3>
<p>Returns the fill angle for the point with the given ids</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getFillAngleForPoint(<span class="methodArgument">sSeriesId</span> [, <span class="methodArgument">sCategoryId</span>])</pre>
<h4>Parameters</h4>
<table>
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td class="optional-header">Optional</td>
<td>Default</td>
<td>Descripton</td>
</tr>
</thead>
<tbody>
<tr>
<td><code>sSeriesId</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"></td>
<td></td>
<td>The series id of the point</td>
</tr>
<tr>
<td><code>sCategoryId</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>The category id of the point</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Number</code></p>
<h3><a name="getFillColor2ForPoint"></a>getFillColor2ForPoint</h3>
<p>Returns the alternate fill color for the point with the given ids</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getFillColor2ForPoint(<span class="methodArgument">sSeriesId</span> [, <span class="methodArgument">sCategoryId</span>])</pre>
<h4>Parameters</h4>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -