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

📄 carshape.java~1~

📁 用JBuilder写的又一个接口示例程序,演示接口的用法,主要实现图形的移动.
💻 JAVA~1~
字号:
package com.bemjh.Shape;

import java.awt.Graphics;

/**
 * <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 CarShape implements IMoveable {
    public CarShape() {
    }

    /**
     * this function is to draw a graph
     *
     * @param g graphics object
     * @todo Implement this com.bemjh.Shape.IMoveable method
     */
    public void draw(Graphics g) {
    }

    /**
     * the function traslate is to increase the x and y of the object
     *
     * @param dx x direction to crease
     * @param dy y direction to crease
     * @todo Implement this com.bemjh.Shape.IMoveable method
     */
    public void translate(double dx, double dy) {
    }
}

⌨️ 快捷键说明

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