Browse Source

REPORT-104017 不专门适配fvs了,编辑窗口根据模版主题适配图层的功能可以兼容fvs场景,fvs创建图层时处理一下为black即可

new-design
obo 1 year ago
parent
commit
bb1b959606
  1. 10
      designer-chart/src/main/java/com/fr/van/chart/map/designer/type/GisLayerPane.java

10
designer-chart/src/main/java/com/fr/van/chart/map/designer/type/GisLayerPane.java

@ -62,11 +62,6 @@ public class GisLayerPane extends JPanel implements UIObserver {
private String[] layers = MapLayerConfigManager.getCustomLayerItems(); private String[] layers = MapLayerConfigManager.getCustomLayerItems();
/**
* fvs的具体类型
*/
private static final String FVS_TEMPLATE_CLASS = "com.fr.plugin.wysiwyg.report.JDuchamp";
public GisLayerPane() { public GisLayerPane() {
initComps(); initComps();
} }
@ -352,14 +347,11 @@ public class GisLayerPane extends JPanel implements UIObserver {
* @param layer 图层 * @param layer 图层
*/ */
private void adaptEditingTemplateTheme(GisLayer layer) { private void adaptEditingTemplateTheme(GisLayer layer) {
if (GeneralContext.isSimpleChineseEnv()) { if (Locale.CHINA.equals(GeneralContext.getLocale())) {
return; return;
} }
JTemplate<?, ?> currentEditingTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); JTemplate<?, ?> currentEditingTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();
if (JTemplate.isValid(currentEditingTemplate)) { if (JTemplate.isValid(currentEditingTemplate)) {
if (FVS_TEMPLATE_CLASS.equals(currentEditingTemplate.getClass().getName())) {
return;
}
boolean dark = currentEditingTemplate.getTemplateTheme().isDark(); boolean dark = currentEditingTemplate.getTemplateTheme().isDark();
String name = dark ? Toolkit.i18nText("Fine-Design_Chart_Layer_Black") : Toolkit.i18nText("Fine-Design_Chart_Layer_MapBox"); String name = dark ? Toolkit.i18nText("Fine-Design_Chart_Layer_Black") : Toolkit.i18nText("Fine-Design_Chart_Layer_MapBox");
layer.setLayerName(name); layer.setLayerName(name);

Loading…
Cancel
Save