drawable.java

来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 45 行

JAVA
45
字号
/*
 * $Id: Drawable.java,v 1.1 2004/02/26 21:17:12 lsantha Exp $
 */
package org.jnode.wt.components;

import org.jnode.wt.components.Validateable;

import java.awt.Color;

/**
 * @author vali
 */
public interface Drawable extends Validateable {

    /**
     * Repaint this component.
     */
    public void repaint();

    /**
     * Sets the background color of this component.
     * @param c
     */
    public void setBackground(Color c);

    /**
     * Gets the background color of this component.
     * @return Color
     */
    public Color getBackground();

    /**
     * Gets the foreground color of this component.
     * @return Color
     */
    public Color getForeground();

    /**
     * Sets the foreground color of this component.
     * @param c
     */
    public void setForeground(Color c);

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?