krysalis-jcharts/src/documentation/content/xdocs/userGuide pie2dLabels.xml,NONE,1.1 pie2dBorderStroke.xml,NONE,1.1 pie2dZeroDegreeOffset.xml,NONE,1.1

"Nathaniel G. Auvil" <[email protected]> Tue, 01 Jun 2004 00:49:52 +0000
Newsgroups gmane.comp.krysalis.jcharts.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13239/src/documentation/content/xdocs/userGuide

Added Files:
	pie2dLabels.xml pie2dBorderStroke.xml 
	pie2dZeroDegreeOffset.xml 
Log Message:


--- NEW FILE: pie2dZeroDegreeOffset.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd">
<document>
	<header>
		<title>Pie Charts</title>
		<authors>
			<person name="Nathaniel Auvil" email="[email protected]"/>
		</authors>
	</header>
	<body>
		<section>
			<title>Zero Degree Offset</title>
			<p>
			 	If we would like to have the 'first' slice of the pie start at somewhere besides zero degrees, we could add the following code to make it start at 45 degrees. 
				Note where the blue slice starts.
         </p>
			<source>
pieChart2DProperties.setZeroDegreeOffset( 45f );
			</source>
			<figure src="images/userGuide/pieCharts/pieChartZeroOffset.png" alt="Pie Chart Zero Degree Offset"/>
		</section>
	</body>
</document>



--- NEW FILE: pie2dBorderStroke.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd">
<document>
	<header>
		<title>Pie Charts</title>
		<authors>
			<person name="Nathaniel Auvil" email="[email protected]"/>
		</authors>
	</header>
	<body>
		<section>
			<title>Border Stroke</title>
			<p>
			 	The border of the Pie Chart uses the <code>java.awt.Stroke</code> Interface to control its rendering 
				properties. There are several implementations of the <code>java.awt.Stroke</code> Interface in the 
				<code>java.awt</code> Package to choose from. 
			</p>
			<p>
				The border of the Pie Chart uses the <code>java.awt.Paint</code> interface to control its rendering 
				properties. There are several implementations of the <code>java.awt.Paint</code> Interface in the 
				<code>java.awt</code> Package to choose from.
			</p>
			<source>
ChartStroke chartStroke= new ChartStroke( new BasicStroke( 4f ), Color.orange );
pieChart2DProperties.setBorderChartStroke( chartStroke ); 
			</source>
			<figure src="images/userGuide/pieCharts/pieChartBorderStroke.png" alt="Pie Chart Border Stroke"/>
		</section>
	</body>
</document>



--- NEW FILE: pie2dLabels.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd">
<document>
	<header>
		<title>Pie Charts</title>
		<authors>
			<person name="Nathaniel Auvil" email="[email protected]"/>
		</authors>
	</header>
	<body>
		<section>
			<title>Legend Labels</title>
			<p>
				You can display the Legend label next to each slice by doing the following:
			</p>
			<source>
pieChart2DProperties.setPieLabelType( PieLabelType.LEGEND_LABELS );
			</source>
			<figure src="images/userGuide/pieCharts/pieChartLegendLabels.png" alt="Pie Chart Value Labels"/>
		</section>		
		<section>
			<title>Value Labels</title>
			<p>
				You can display the Value of each slice by doing the following:
			</p>
			<source>
pieChart2DProperties.setPieLabelType( PieLabelType.VALUE_LABELS );
			</source>
			<figure src="images/userGuide/pieCharts/pieChartValueLabels.png" alt="Pie Chart Value Labels"/>
		</section>
		<note>
			The ability to display the percentage of each pie slice is not supported in this release.  You could
			get around this by either modifying the source ;), or by calculating this yourself and setting the 
			values in the pie as the values to plot.
		</note>
	</body>
</document>





-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click