Module  java.desktop

Class MetalBorders.MenuItemBorder

    • 字段详细信息

      • borderInsets

        protected static Insets borderInsets
        边界插入。
    • 构造方法详细信息

      • MenuItemBorder

        public MenuItemBorder​()
    • 方法详细信息

      • paintBorder

        public void paintBorder​(Component c,
                                Graphics g,
                                int x,
                                int y,
                                int w,
                                int h)
        描述从类复制: AbstractBorder
        此默认实现不绘画。
        Specified by:
        paintBorder在接口 Border
        重写:
        paintBorderAbstractBorder
        参数
        c - 正在绘制此边框的组件
        g - 油漆图形
        x - 绘画边框的x位置
        y - 绘画边框的y位置
        w - 绘制边框的宽度
        h - 绘画边框的高度
      • getBorderInsets

        public Insets getBorderInsets​(Component c,
                                      Insets newInsets)
        描述从类复制: AbstractBorder
        使用此Border的当前Insets重新初始化insets参数。
        重写:
        getBorderInsetsAbstractBorder
        参数
        c - 此边界插入值适用的组件
        newInsets - 要重新初始化的对象
        结果
        insets对象