krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/allChart ChartPropertiesTab.java,1.2,1.3

"Nathaniel G. Auvil" <[email protected]> Tue, 25 May 2004 01:03:06 +0000
Newsgroups gmane.comp.krysalis.jcharts.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/allChart
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3831/src/java/org/krysalis/jcharts/designer/tabs/allChart

Modified Files:
	ChartPropertiesTab.java 
Log Message:


Index: ChartPropertiesTab.java
===================================================================
RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/allChart/ChartPropertiesTab.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ChartPropertiesTab.java	2 Sep 2003 08:48:19 -0000	1.2
--- ChartPropertiesTab.java	25 May 2004 01:03:04 -0000	1.3
***************
*** 42,45 ****
--- 42,47 ----
  import org.krysalis.jcharts.designer.common.stroke.StrokeChooser;
  import org.krysalis.jcharts.designer.exceptions.DesignerException;
+ import org.krysalis.jcharts.designer.tabs.allChart.items.EdgePadding;
+ import org.krysalis.jcharts.properties.ChartProperties;
  
  
***************
*** 55,58 ****
--- 57,61 ----
  	private FontChooser titleFont;
  	private StrokeChooser borderStroke;
+ 	private EdgePadding edgePadding;
  
  
***************
*** 68,83 ****
  		allChartTabs.addTab( "Chart Properties", this );
  
! 		this.titleFont= new org.krysalis.jcharts.designer.common.font.FontChooser( "Title Font" );
  		this.add( this.titleFont );
  
! 		this.borderStroke= new org.krysalis.jcharts.designer.common.stroke.StrokeChooser( "Border Stroke" );
  		this.add( this.borderStroke );
  	}
  
  
! 
! 	public void updateChartProperties( org.krysalis.jcharts.properties.ChartProperties chartProperties ) throws DesignerException
  	{
  		chartProperties.setTitleFont( this.titleFont.getChartFont() );
  	}
  }
--- 71,97 ----
  		allChartTabs.addTab( "Chart Properties", this );
  
! 		this.titleFont= new FontChooser( "Title Font" );
  		this.add( this.titleFont );
  
! 		this.borderStroke= new StrokeChooser( "Border Stroke" );
  		this.add( this.borderStroke );
+ 		
+ 		this.edgePadding= new EdgePadding( "Edge Padding" );
+ 		this.add( this.edgePadding );
  	}
  
  
! 	/******************************************************************
! 	 * 
! 	 * @param chartProperties
! 	 * @throws DesignerException
! 	 *****************************************************************/
! 	public void updateChartProperties( ChartProperties chartProperties ) throws DesignerException
  	{
  		chartProperties.setTitleFont( this.titleFont.getChartFont() );
+ 		chartProperties.setBorderStroke( this.borderStroke.getChartStroke() );
+ 		chartProperties.setEdgePadding( this.edgePadding.getEdgePadding() );
+ 		
+ 		//TODO add more stuff
  	}
  }



-------------------------------------------------------
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