shine
3 years ago
8 changed files with 80 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