|
|
@ -25,7 +25,7 @@ public class GisMapPlotPane extends AbstractDeprecatedChartTypePane { |
|
|
|
private static final long serialVersionUID = 2595221900000305396L; |
|
|
|
private static final long serialVersionUID = 2595221900000305396L; |
|
|
|
|
|
|
|
|
|
|
|
private static final int GISMAP = 0; |
|
|
|
private static final int GISMAP = 0; |
|
|
|
|
|
|
|
|
|
|
|
private UITextField keyInput; |
|
|
|
private UITextField keyInput; |
|
|
|
|
|
|
|
|
|
|
|
public GisMapPlotPane(){ |
|
|
|
public GisMapPlotPane(){ |
|
|
@ -34,7 +34,7 @@ public class GisMapPlotPane extends AbstractDeprecatedChartTypePane { |
|
|
|
Component[][] components = null; |
|
|
|
Component[][] components = null; |
|
|
|
|
|
|
|
|
|
|
|
styleList = createStyleList(); |
|
|
|
styleList = createStyleList(); |
|
|
|
|
|
|
|
|
|
|
|
checkDemosBackground(); |
|
|
|
checkDemosBackground(); |
|
|
|
|
|
|
|
|
|
|
|
JPanel layoutPane = FRGUIPaneFactory.createNColumnGridInnerContainer_S_Pane(4); |
|
|
|
JPanel layoutPane = FRGUIPaneFactory.createNColumnGridInnerContainer_S_Pane(4); |
|
|
@ -45,7 +45,7 @@ public class GisMapPlotPane extends AbstractDeprecatedChartTypePane { |
|
|
|
tmp.setDemoGroup(styleList.toArray(new ChartSelectDemoPane[styleList.size()])); |
|
|
|
tmp.setDemoGroup(styleList.toArray(new ChartSelectDemoPane[styleList.size()])); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
keyInput = new UITextField(); |
|
|
|
keyInput = new UITextField(); |
|
|
|
|
|
|
|
|
|
|
|
double[] columnSize = { f }; |
|
|
|
double[] columnSize = { f }; |
|
|
@ -58,16 +58,16 @@ public class GisMapPlotPane extends AbstractDeprecatedChartTypePane { |
|
|
|
new Component[]{keyInput}, |
|
|
|
new Component[]{keyInput}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
JPanel panel = TableLayoutHelper.createTableLayoutPane(components,rowSize,columnSize); |
|
|
|
JPanel panel = TableLayoutHelper.createTableLayoutPane(components,rowSize,columnSize); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.add(panel,BorderLayout.CENTER); |
|
|
|
this.add(panel,BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void reLayout(String chartID){ |
|
|
|
public void reLayout(String chartID){ |
|
|
|
|
|
|
|
//do nothing
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -88,7 +88,8 @@ public class GisMapPlotPane extends AbstractDeprecatedChartTypePane { |
|
|
|
return ChartConstants.GIS_CHAER; |
|
|
|
return ChartConstants.GIS_CHAER; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected String[] getTypeLayoutPath() { |
|
|
|
@Override |
|
|
|
|
|
|
|
protected String[] getTypeLayoutPath() { |
|
|
|
return new String[]{"/com/fr/design/images/chart/GisMapPlot/layout/0.png", |
|
|
|
return new String[]{"/com/fr/design/images/chart/GisMapPlot/layout/0.png", |
|
|
|
"/com/fr/design/images/chart/GisMapPlot/layout/1.png", |
|
|
|
"/com/fr/design/images/chart/GisMapPlot/layout/1.png", |
|
|
|
}; |
|
|
|
}; |
|
|
@ -105,6 +106,7 @@ public class GisMapPlotPane extends AbstractDeprecatedChartTypePane { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 保存界面属性 |
|
|
|
* 保存界面属性 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
public void updateBean(Chart chart) { |
|
|
|
public void updateBean(Chart chart) { |
|
|
|
if(needsResetChart(chart)){ |
|
|
|
if(needsResetChart(chart)){ |
|
|
|
resetChart(chart); |
|
|
|
resetChart(chart); |
|
|
@ -121,14 +123,14 @@ public class GisMapPlotPane extends AbstractDeprecatedChartTypePane { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
plot = new GisMapPlot(); |
|
|
|
plot = new GisMapPlot(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
chart.switchPlot((Plot)plot.clone()); |
|
|
|
chart.switchPlot((Plot)plot.clone()); |
|
|
|
} catch (CloneNotSupportedException e) { |
|
|
|
} catch (CloneNotSupportedException e) { |
|
|
|
FineLoggerFactory.getLogger().error("Error In LineChart"); |
|
|
|
FineLoggerFactory.getLogger().error("Error In LineChart"); |
|
|
|
chart.switchPlot(new GisMapPlot()); |
|
|
|
chart.switchPlot(new GisMapPlot()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
plot = (GisMapPlot) chart.getPlot(); |
|
|
|
plot = (GisMapPlot) chart.getPlot(); |
|
|
|
boolean index = plot.isGisType(); |
|
|
|
boolean index = plot.isGisType(); |
|
|
|
if(styleList.get(BAIDU).isPressing){ |
|
|
|
if(styleList.get(BAIDU).isPressing){ |
|
|
@ -136,7 +138,7 @@ public class GisMapPlotPane extends AbstractDeprecatedChartTypePane { |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
plot.setGisType(false); |
|
|
|
plot.setGisType(false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(index != plot.isGisType()){ |
|
|
|
if(index != plot.isGisType()){ |
|
|
|
if(plot.isGisType()){ |
|
|
|
if(plot.isGisType()){ |
|
|
|
this.keyInput.setText(plot.getBaiduKey()); |
|
|
|
this.keyInput.setText(plot.getBaiduKey()); |
|
|
@ -156,15 +158,16 @@ public class GisMapPlotPane extends AbstractDeprecatedChartTypePane { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 更新界面内容 |
|
|
|
* 更新界面内容 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
public void populateBean(Chart chart) { |
|
|
|
public void populateBean(Chart chart) { |
|
|
|
typeDemo.get(0).isPressing = true; |
|
|
|
typeDemo.get(0).isPressing = true; |
|
|
|
GisMapPlot plot = (GisMapPlot) chart.getPlot(); |
|
|
|
GisMapPlot plot = (GisMapPlot) chart.getPlot(); |
|
|
|
|
|
|
|
|
|
|
|
if(plot.isGisType()){ |
|
|
|
if(plot.isGisType()){ |
|
|
|
styleList.get(BAIDU).isPressing = true; |
|
|
|
styleList.get(BAIDU).isPressing = true; |
|
|
|
styleList.get(GOOGLE).isPressing = false; |
|
|
|
styleList.get(GOOGLE).isPressing = false; |
|
|
|
keyInput.setText(plot.getBaiduKey()); |
|
|
|
keyInput.setText(plot.getBaiduKey()); |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
styleList.get(GOOGLE).isPressing = true; |
|
|
|
styleList.get(GOOGLE).isPressing = true; |
|
|
|
styleList.get(BAIDU).isPressing =false; |
|
|
|
styleList.get(BAIDU).isPressing =false; |
|
|
@ -178,6 +181,7 @@ public class GisMapPlotPane extends AbstractDeprecatedChartTypePane { |
|
|
|
* 界面标题 |
|
|
|
* 界面标题 |
|
|
|
* @return 标题 |
|
|
|
* @return 标题 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
public String title4PopupWindow() { |
|
|
|
public String title4PopupWindow() { |
|
|
|
return Toolkit.i18nText("Fine-Design_Chart_GIS_Map_OLD"); |
|
|
|
return Toolkit.i18nText("Fine-Design_Chart_GIS_Map_OLD"); |
|
|
|
} |
|
|
|
} |
|
|
@ -191,7 +195,8 @@ public class GisMapPlotPane extends AbstractDeprecatedChartTypePane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Chart getDefaultChart() { |
|
|
|
@Override |
|
|
|
|
|
|
|
public Chart getDefaultChart() { |
|
|
|
return GisMapIndependentChart.gisChartTypes[0]; |
|
|
|
return GisMapIndependentChart.gisChartTypes[0]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |