⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 insetspanel.java

📁 借的别人的 只想在这里下点东西
💻 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 + -