shapeicon.java~1~

来自「用JBuilder写的又一个接口示例程序,演示接口的用法,主要实现图形的移动.」· JAVA~1~ 代码 · 共 56 行

JAVA~1~
56
字号
package com.bemjh.Shape;

import java.awt.Component;
import java.awt.Graphics;

import javax.swing.Icon;

/**
 * <p>Title: MultiMoveableShape</p>
 *
 * <p>Description: MultiMoveable Shape</p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: bemjh</p>
 *
 * @author bemjh
 * @version 1.0
 */
public class ShapeIcon implements Icon {
    public ShapeIcon() {
    }

    /**
     * Returns the icon's height.
     *
     * @return an int specifying the fixed height of the icon.
     * @todo Implement this javax.swing.Icon method
     */
    public int getIconHeight() {
        return 0;
    }

    /**
     * Returns the icon's width.
     *
     * @return an int specifying the fixed width of the icon.
     * @todo Implement this javax.swing.Icon method
     */
    public int getIconWidth() {
        return 0;
    }

    /**
     * Draw the icon at the specified location.
     *
     * @param c Component
     * @param g Graphics
     * @param x int
     * @param y int
     * @todo Implement this javax.swing.Icon method
     */
    public void paintIcon(Component c, Graphics g, int x, int y) {
    }
}

⌨️ 快捷键说明

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