📄 rectangle.java
字号:
/*
* Rectangle.java
*
* Copyright 1999 JJKING Software, Junichi Ito <jun1@mailhost.net>
* Permission to use, copy, modify, and distribute this software and its
* documentation without fee for NON-COMMERCIAL is free.
*/
/**
* This class represents a rectangle to specify the region on the screen.
*
* @version 1.0 1999/10/2
*/
public class Rectangle
{
/**
* The x-coordinate of top left of the rectangle.
*/
public int x;
/**
* The y-coordinate of top left of the rectangle.
*/
public int y;
/**
* The width of the rectangle.
*/
public int width;
/**
* The height of the rectangle.
*/
public int height;
/**
* Create new rectangle.
* @param x the x-coordinate of top left of the rectangle.
* @param y the y-coordinate of top left of the rectangle.
* @param width the width of the rectangle.
* @param height the height of the rectangle.
*/
public Rectangle(int x, int y, int width, int height)
{
this.x = x;
this.y = y;
this.width = width;
this.height = height;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -