Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/demo/userGuide
In directory sc8-pr-cvs1:/tmp/cvs-serv2517
Modified Files:
UserGuideBase.java
Log Message:
added 3D Pie code framework
Index: UserGuideBase.java
===================================================================
RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/demo/userGuide/UserGuideBase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** UserGuideBase.java 8 Aug 2003 08:51:27 -0000 1.4
--- UserGuideBase.java 3 Sep 2003 02:40:13 -0000 1.5
***************
*** 49,54 ****
public class UserGuideBase
{
! private static final String dir= "/userGuide/";
! private static String path;
private static String subdir;
--- 49,53 ----
public class UserGuideBase
{
! private static String path= "./src/documentation/resources/images/userGuide/";
private static String subdir;
***************
*** 60,75 ****
public static void main( String[] args ) throws Throwable
{
! if( args.length == 0 || args.length > 2 )
{
! System.out.println( "Usage - java UserGuideBase outputPath whatToRun" );
return;
}
else
{
! UserGuideBase.path = args[0];
!
! if( args.length == 2 )
{
! String whatToRun = args[1];
System.out.println( "running user guide charts for section: " + whatToRun );
--- 59,72 ----
public static void main( String[] args ) throws Throwable
{
! if( args.length > 2 )
{
! System.out.println( "Usage - java UserGuideBase <whatToRun>" );
return;
}
else
{
! if( args.length == 1 )
{
! String whatToRun = args[0];
System.out.println( "running user guide charts for section: " + whatToRun );
***************
*** 102,105 ****
--- 99,109 ----
}
+ if( whatToRun.equals( "pie3d" ) )
+ {
+ UserGuideBase.subdir= "pieChart3d/";
+ PieChart3DGuide pieChart3D = new PieChart3DGuide();
+ pieChart3D.run();
+ }
+
if( whatToRun.equals( "axis" ) )
{
***************
*** 158,161 ****
--- 162,168 ----
pieChart.run();
+ PieChart3DGuide pieChart3d = new PieChart3DGuide();
+ pieChart3d.run();
+
AxisChartsGuide axisCharts = new AxisChartsGuide();
axisCharts.run();
***************
*** 194,198 ****
try
{
! fileOutputStream = new FileOutputStream( UserGuideBase.path + UserGuideBase.dir + UserGuideBase.subdir + fileName + extension );
PNGEncoder.encode( chart, fileOutputStream );
//JPEGEncoder13.encode( chart, 1.0f, fileOutputStream );
--- 201,205 ----
try
{
! fileOutputStream = new FileOutputStream( UserGuideBase.path + UserGuideBase.subdir + fileName + extension );
PNGEncoder.encode( chart, fileOutputStream );
//JPEGEncoder13.encode( chart, 1.0f, fileOutputStream );
|