📄 insetspanel.java
字号:
package at.ac.uni_linz.tk.vchat;
import java.awt.*;
/**
* Extends a normVec Panel's functionality with methods for defining margins.
*
* @author Arno Huetter
* (C)opyright by the Institute for Computer Science, Telecooperation Department, University of Linz
*/
public class InsetsPanel extends Panel {
Insets insets;
public InsetsPanel() {
this(0, 0, 0, 0);
}
/**
* Constructs the InsetsPanel.
*
* @param top the inset from the top
* @param left the inset from the left
* @param bottom the inset from the bottom
* @param right the inset from the right
*/
public InsetsPanel(int top, int left, int bottom, int right) {
super();
insets = new Insets(top, left, bottom, right);
}
/**
* Constructs the InsetsPanel.
*
* @param insetsParam the Insets
*/
public InsetsPanel(Insets insetsParam) {
super();
insets = insetsParam;
}
/**
* Determines the Insets, which indicate the size of the Container's border.
*/
public Insets getInsets() {
return insets;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -