搜索资源列表
-
0下载:
java事件处理事例,输入圆心坐标,单击鼠标取得半径画圆-java event handling example, enter the center point coordinates, click the mouse to obtain a radius of Circle
-
-
0下载:
编写JAVA程序求园柱体的表面积和体积,已知底面圆心p为(0,0),半径r为10,圆柱体高为5.-JAVA program written request park area and volume of cylinder, known as the bottom center of the circle p (0,0), radius r is 10, a cylinder height of 5.
-
-
0下载:
实验3类、对象以及包的使用(6学时)
1.实验内容
(1) 实现一个Point类,该类包含表示坐标的两个int型变量x、y,构造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,计算两点间距离的double distance(Point)方法。其中计算平方根用Math.sqrt()方法。
(2) 实现一个Circle类,该类包含表示圆心的Point型变量center,表示半径的int radius变量,以及
-
-
0下载:
点击鼠标左键确定圆心,然后多次点击空白处,可无限画圆-Click the left mouse button to determine the center of a circle, and then repeatedly click the blank space, unlimited circle
-
-
0下载:
绘制1个沿圆形轨道运动的红色球体和1个沿椭圆轨道运动的蓝色球体。两个轨道圆心重合,圆的半径为100,椭圆的长短轴半径分别为200和100,运动方向为顺时针-Draw a circular orbital motion along the red sphere and a movement along the elliptical orbit of the blue sphere. Center two tracks overlap, the circle
Radius of 100, the
-
-
0下载:
时钟界面,时钟界面的操作分为两块,首先是对Spinner的设置,要设置为时间格式,
通过API 的查找,找到日期格式的函数,然后经过字符串的截取得到时间格式,通过线程的学习,设置时间每隔一秒改变一次。其次是画时钟界面,首先计算圆心画一个圆,并在圆上标出12个点数和三根线段(起点坐标为圆心),通过对Spinner监听得到的返回值并进行坐标的计算,画出时针,分针,秒针的终点坐标位置。
-Clock interface clock interface operation is divided
-
-
0下载:
① Rectangle类有double型成员变量表示矩形左上角的位置坐标及矩形的宽和高,要求提供修改和返回各成员变量的方法。
② Circle类有double型成员变量表示圆心坐标和圆的半径,要求提供修改和返回各成员变量的方法。
③ Geometry类有Rectangle类和Circle型的成员变量rect和circle。即Geometry类创建的对象由一个矩形和一个圆组合而成。要求该类提供修改rect、circle位置和大小的方法;提供显示rect和circle位置关系的方法,并能够显
-