Browse Source
Merge in DESIGN/design from ~ZHENG/c-design:feature/big-screen to feature/big-screen * commit '65d5e8179b44118b44a52a4569168d38625b4e02': api level feat:编辑器模式 没有单元格数据源 图表切换 监控刷新等配置项feature/big-screen
zheng
3 years ago
9 changed files with 84 additions and 9 deletions
@ -0,0 +1,26 @@ |
|||||||
|
package com.fr.design.mainframe.chart.mode; |
||||||
|
|
||||||
|
import com.fr.common.annotations.Open; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author shine |
||||||
|
* @version 10.0 |
||||||
|
* Created by shine on 2021/6/4 |
||||||
|
*/ |
||||||
|
@Open |
||||||
|
public class ChartEditContext { |
||||||
|
|
||||||
|
private static ChartEditMode current = ChartEditMode.NORMAL; |
||||||
|
|
||||||
|
public static void switchTo(ChartEditMode mode) { |
||||||
|
current = mode; |
||||||
|
} |
||||||
|
|
||||||
|
public static boolean duchampMode() { |
||||||
|
return current == ChartEditMode.DUCHAMP; |
||||||
|
} |
||||||
|
|
||||||
|
public static boolean normalMode() { |
||||||
|
return current == ChartEditMode.NORMAL; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
package com.fr.design.mainframe.chart.mode; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author shine |
||||||
|
* @version 10.0 |
||||||
|
* Created by shine on 2021/6/4 |
||||||
|
*/ |
||||||
|
//todo:refactor 弹出框图表没有单元格数据源,就不用一层层传下去了
|
||||||
|
public enum ChartEditMode { |
||||||
|
NORMAL, |
||||||
|
DUCHAMP |
||||||
|
} |
Loading…
Reference in new issue