📄 leftl.java
字号:
import java.awt.*;
public class LeftL extends SquareShape {
private Color leftLColor=new Color(0,0,255);
public LeftL() {
super();
this.color=leftLColor;
// TODO Auto-generated constructor stub
}
protected void defaultRotate() {
// TODO Auto-generated method stub
for(int i=0;i<3;i++)
{
postion[i][0]=xpos;
postion[i][1]=ypos+i*20;
}
postion[3][0]=xpos+20;
postion[3][1]=ypos+40;
}
protected void firstRotate() {
// TODO Auto-generated method stub
for(int i=0;i<3;i++)
{
postion[i][0]=xpos+(i-1)*20;
postion[i][1]=ypos;
}
postion[3][0]=xpos-20;
postion[3][1]=ypos+20;
}
protected void secondRotate() {
// TODO Auto-generated method stub
for(int i=0;i<3;i++)
{
postion[i][0]=xpos;
postion[i][1]=ypos+i*20;
}
postion[3][0]=xpos-20;
postion[3][1]=ypos;
}
protected void thirdRotate() {
// TODO Auto-generated method stub
for(int i=0;i<3;i++)
{
postion[i][0]=xpos+(i-1)*20;
postion[i][1]=ypos+20;
}
postion[3][0]=xpos+20;
postion[3][1]=ypos;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -