|
|
@ -119,7 +119,7 @@ public class FormArea extends JComponent implements ScrollRulerComponent { |
|
|
|
// slidePane = new UINumberSlidePane(SLIDER_MIN, SLIDER_FLOAT);
|
|
|
|
// slidePane = new UINumberSlidePane(SLIDER_MIN, SLIDER_FLOAT);
|
|
|
|
// slidePane.setPreferredSize(new Dimension(260,20));
|
|
|
|
// slidePane.setPreferredSize(new Dimension(260,20));
|
|
|
|
slidePane = JFormSliderPane.getInstance(); |
|
|
|
slidePane = JFormSliderPane.getInstance(); |
|
|
|
slidePane.setPreferredSize(new Dimension(350, 20)); |
|
|
|
slidePane.setPreferredSize(new Dimension(200, 0)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JPanel resizePane = TableLayoutHelper.createCommonTableLayoutPane(new JComponent[][]{ |
|
|
|
JPanel resizePane = TableLayoutHelper.createCommonTableLayoutPane(new JComponent[][]{ |
|
|
@ -130,8 +130,8 @@ public class FormArea extends JComponent implements ScrollRulerComponent { |
|
|
|
setWidgetsConfig(); |
|
|
|
setWidgetsConfig(); |
|
|
|
// 先初始话滑块及对应事件,然后获取分辨率调整容器的显示大小
|
|
|
|
// 先初始话滑块及对应事件,然后获取分辨率调整容器的显示大小
|
|
|
|
slidePane.setEnabled(false); |
|
|
|
slidePane.setEnabled(false); |
|
|
|
slidePane.setVisible(true); |
|
|
|
slidePane.setVisible(false); |
|
|
|
initTransparent(); |
|
|
|
// initTransparent();
|
|
|
|
initCalculateSize(); |
|
|
|
initCalculateSize(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -162,11 +162,15 @@ public class FormArea extends JComponent implements ScrollRulerComponent { |
|
|
|
jf.resolution = (int) value; |
|
|
|
jf.resolution = (int) value; |
|
|
|
jf.getFormDesign().setResolution((int) value); |
|
|
|
jf.getFormDesign().setResolution((int) value); |
|
|
|
jf.getFormDesign().getArea().resolution = (int) value; |
|
|
|
jf.getFormDesign().getArea().resolution = (int) value; |
|
|
|
reCalculateRoot(value, true); |
|
|
|
double times = (double) resolution / 100; |
|
|
|
JTemplate form = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); |
|
|
|
// widthPane.setValue((int)(widthPane.getValue() * times));
|
|
|
|
if (form != null) { |
|
|
|
changeWidthPaneValue((int)(widthPane.getValue() * times)); |
|
|
|
form.fireTargetModified(); |
|
|
|
changeHeightPaneValue((int)(heightPane.getValue() * times)); |
|
|
|
} |
|
|
|
// reCalculateRoot(value, true);
|
|
|
|
|
|
|
|
// JTemplate form = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate();
|
|
|
|
|
|
|
|
// if (form != null) {
|
|
|
|
|
|
|
|
// form.fireTargetModified();
|
|
|
|
|
|
|
|
// }
|
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|