home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VCafe / JCLASS.BIN / KLG.JAR / jclass / chart / ChartDataViewEditor.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-12-05  |  1.0 KB  |  34 lines

  1. package jclass.chart;
  2.  
  3. import java.beans.FeatureDescriptor;
  4. import java.beans.PropertyDescriptor;
  5. import java.beans.PropertyEditor;
  6. import jclass.beans.JCPropertyEditor;
  7.  
  8. public class ChartDataViewEditor extends JCPropertyEditor {
  9.    protected void handleCustomEditor(PropertyEditor var1, PropertyDescriptor var2) {
  10.       if (super.target != null) {
  11.          try {
  12.             JCChartArea var3 = ((ChartDataView)super.target).chart.chartArea;
  13.             if (var3 == null) {
  14.                return;
  15.             }
  16.  
  17.             if (var1 instanceof AxisSelector) {
  18.                if (((FeatureDescriptor)var2).getName().equals("YAxis")) {
  19.                   ((AxisSelector)var1).setAxes(var3.yaxes);
  20.                   return;
  21.                }
  22.  
  23.                if (((FeatureDescriptor)var2).getName().equals("XAxis")) {
  24.                   ((AxisSelector)var1).setAxes(var3.xaxes);
  25.                   return;
  26.                }
  27.             }
  28.          } catch (Exception var4) {
  29.          }
  30.  
  31.       }
  32.    }
  33. }
  34.