[Schmitzm-commits] r279 - in trunk/src: schmitzm/jfree/chart/style skrueger/swing

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Aug 1 22:48:16 CEST 2009


Author: alfonx
Date: 2009-08-01 22:48:15 +0200 (Sat, 01 Aug 2009)
New Revision: 279

Modified:
   trunk/src/schmitzm/jfree/chart/style/ChartAxisStyle.java
   trunk/src/skrueger/swing/TranslationEditJPanel.java
Log:
* Hackingsession: Charts ...

Modified: trunk/src/schmitzm/jfree/chart/style/ChartAxisStyle.java
===================================================================
--- trunk/src/schmitzm/jfree/chart/style/ChartAxisStyle.java	2009-08-01 20:02:57 UTC (rev 278)
+++ trunk/src/schmitzm/jfree/chart/style/ChartAxisStyle.java	2009-08-01 20:48:15 UTC (rev 279)
@@ -183,8 +183,10 @@
     
     // Apply common attributes
     axis.setLabel( axisLabel );
-    axis.setLabelPaint( getPaint() );
-    axis.setLabelAngle( getLabelAngle() );
+    if (getPaint()  != null)
+    	axis.setLabelPaint( getPaint() );
+    if (getLabelAngle()  != null)
+    	axis.setLabelAngle( getLabelAngle() );
     axis.setVisible( isVisible() );
 
     // Apply values format and angel according to the specific axis type

Modified: trunk/src/skrueger/swing/TranslationEditJPanel.java
===================================================================
--- trunk/src/skrueger/swing/TranslationEditJPanel.java	2009-08-01 20:02:57 UTC (rev 278)
+++ trunk/src/skrueger/swing/TranslationEditJPanel.java	2009-08-01 20:48:15 UTC (rev 279)
@@ -41,7 +41,7 @@
 
 import javax.swing.BorderFactory;
 import javax.swing.JLabel;
-import javax.swing.JPanel;
+import schmitzm.swing.JPanel;
 import javax.swing.JTextField;
 import javax.swing.SpringLayout;
 import javax.swing.SwingConstants;



More information about the Schmitzm-commits mailing list