|
|
|
@ -1325,7 +1325,7 @@ public abstract class ElementCasePane<T extends TemplateElementCase> extends Tar
|
|
|
|
|
* @return 返回正在编辑的状态. |
|
|
|
|
*/ |
|
|
|
|
public EditingState createEditingState() { |
|
|
|
|
return new ElementCaseEditingState(this.selection, this.verScrollBar.getValue(), this.horScrollBar.getValue()); |
|
|
|
|
return new ElementCaseEditingState(this.selection, this.verScrollBar.getValue(), this.horScrollBar.getValue(), this.resolution); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setCellNeedTOFormat(CellSelection selection) { |
|
|
|
@ -1341,8 +1341,9 @@ public abstract class ElementCasePane<T extends TemplateElementCase> extends Tar
|
|
|
|
|
protected Selection selection; |
|
|
|
|
protected int verticalValue = 0; |
|
|
|
|
protected int horizontalValue = 0; |
|
|
|
|
protected int resolution = ScreenResolution.getScreenResolution(); |
|
|
|
|
|
|
|
|
|
protected ElementCaseEditingState(Selection selection, int verticalValue, int horizontalValue) { |
|
|
|
|
protected ElementCaseEditingState(Selection selection, int verticalValue, int horizontalValue, int resolution) { |
|
|
|
|
try { |
|
|
|
|
this.selection = selection.clone(); |
|
|
|
|
} catch (CloneNotSupportedException e) { |
|
|
|
@ -1350,6 +1351,7 @@ public abstract class ElementCasePane<T extends TemplateElementCase> extends Tar
|
|
|
|
|
} |
|
|
|
|
this.verticalValue = verticalValue; |
|
|
|
|
this.horizontalValue = horizontalValue; |
|
|
|
|
this.resolution = resolution; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -1363,7 +1365,8 @@ public abstract class ElementCasePane<T extends TemplateElementCase> extends Tar
|
|
|
|
|
|
|
|
|
|
ElementCasePane.this.getVerticalScrollBar().setValue(this.verticalValue); |
|
|
|
|
ElementCasePane.this.getHorizontalScrollBar().setValue(this.horizontalValue); |
|
|
|
|
|
|
|
|
|
// ElementCasePane.this.setResolution(this.resolution);
|
|
|
|
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().setScale(this.resolution); |
|
|
|
|
// 重绘.
|
|
|
|
|
ElementCasePane.this.repaint(); |
|
|
|
|
} |
|
|
|
|