krysalis-jcharts/src/java/org/krysalis/jcharts/chartData AxisChartDataSet.java,1.1,1.2

Chris McKay <[email protected]> Thu, 01 Jul 2004 01:37:52 +0000
Newsgroups gmane.comp.krysalis.jcharts.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/chartData
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7698/src/java/org/krysalis/jcharts/chartData

Modified Files:
	AxisChartDataSet.java 
Log Message:
Dual Y axis changes, add boolean to signify that DataSet is to be plotted against RHS

Index: AxisChartDataSet.java
===================================================================
RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/chartData/AxisChartDataSet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** AxisChartDataSet.java	17 May 2003 16:58:10 -0000	1.1
--- AxisChartDataSet.java	1 Jul 2004 01:37:50 -0000	1.2
***************
*** 53,56 ****
--- 53,57 ----
  {
  	private ChartType chartType;
+ 	private boolean plotAgainstRHS = false;
  
  
***************
*** 78,81 ****
--- 79,106 ----
  
  
+ 	/******************************************************************************************
+ 	 * Constructor
+ 	 *
+ 	 * @param data the data sets to be displayed in the chart.
+ 	 * @param plotAgainstRHS whether to plot the data set against the right hand Y Axis
+ 	 * @param legendLabels if this is: NULL there will be no Legend. Otherwise, there must be an
+ 	 *           one to one mapping of labels to data sets.
+ 	 * @param paints paints to use for the data sets. There must be an one to one mapping of
+ 	 *           labels to data sets.
+ 	 * @param chartType constant defining how this data should be rendered
+ 	 * @param chartTypeProperties properties Object specific to the type of chart you are rendering.
+ 	 * @throws ChartDataException if data is not in correct form.
+ 	 *******************************************************************************************/
+ 	public AxisChartDataSet( double[][] data, boolean plotAgainstRHS, 
+ 									 String[] legendLabels,
+ 									 Paint[] paints,
+ 									 ChartType chartType,
+ 									 ChartTypeProperties chartTypeProperties ) throws ChartDataException
+ 	{
+ 		super( data, legendLabels, paints, chartTypeProperties );
+ 		this.chartType=chartType;
+ 		this.plotAgainstRHS = plotAgainstRHS;
+ 	}
+ 
  	/************************************************************************************************
  	 * Performs a limited validation of data. This is static and not called by the rendering engine
***************
*** 126,129 ****
--- 151,165 ----
  	}
  
+ 	/******************************************************************************************
+ 	 * Returns whether the data set should be plotted against the rught hand Y axis
+ 	 *
+ 	 * @return plotAgainstRHS
+ 	 * @see ChartType
+ 	 *******************************************************************************************/
+ 	public final boolean getPlotAgainstRHS()
+ 	{
+ 		return this.plotAgainstRHS;
+ 	}
+ 
  
  	/******************************************************************************************



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com