|
|
|
@ -52,6 +52,15 @@ public abstract class BasicDialog extends UIDialog {
|
|
|
|
|
super.setSize(FineUIScale.scale(d.width), FineUIScale.scale(d.height)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 设置对话框大小,本方法不进行主动缩放 |
|
|
|
|
* |
|
|
|
|
* @param d 对话框尺寸 |
|
|
|
|
*/ |
|
|
|
|
protected void setBasicDialogSizeNoScale(Dimension d) { |
|
|
|
|
super.setSize(FineUIScale.scale(d.width), FineUIScale.scale(d.height)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 设置对话框大小,方法内已进行dpi适配,传参无需考虑dpi适配 |
|
|
|
|
* |
|
|
|
@ -62,6 +71,16 @@ public abstract class BasicDialog extends UIDialog {
|
|
|
|
|
setBasicDialogSize(new Dimension(w, h)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 设置对话框大小,本方法不进行主动缩放 |
|
|
|
|
* |
|
|
|
|
* @param w 宽度 |
|
|
|
|
* @param h 高度 |
|
|
|
|
*/ |
|
|
|
|
protected void setBasicDialogSizeNoScale(int w, int h) { |
|
|
|
|
setBasicDialogSizeNoScale(new Dimension(w, h)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setSize(Dimension d) { |
|
|
|
|
throw new UnsupportedOperationException(); |
|
|
|
|