home *** CD-ROM | disk | FTP | other *** search
- package jclass.chart;
-
- import java.beans.FeatureDescriptor;
- import java.beans.PropertyDescriptor;
- import java.beans.PropertyEditor;
- import jclass.beans.JCPropertyEditor;
-
- public class ChartDataViewEditor extends JCPropertyEditor {
- protected void handleCustomEditor(PropertyEditor var1, PropertyDescriptor var2) {
- if (super.target != null) {
- try {
- JCChartArea var3 = ((ChartDataView)super.target).chart.chartArea;
- if (var3 == null) {
- return;
- }
-
- if (var1 instanceof AxisSelector) {
- if (((FeatureDescriptor)var2).getName().equals("YAxis")) {
- ((AxisSelector)var1).setAxes(var3.yaxes);
- return;
- }
-
- if (((FeatureDescriptor)var2).getName().equals("XAxis")) {
- ((AxisSelector)var1).setAxes(var3.xaxes);
- return;
- }
- }
- } catch (Exception var4) {
- }
-
- }
- }
- }
-