📄 diverseshapefactory.java
字号:
package com.diverseShapeFactory;
import com.decorators.*;
import com.moveShape.Shape;
public abstract class DiverseShapeFactory
{
//crossed
public static Shape createCrossedShape(Shape shape)
{
return (new Cross(shape));
}
//bordered
public static Shape createBorderedShape(Shape shape)
{
return null;
}
//texted rec
public static Shape createTextedShape(Shape shape)
{
return (new Text(shape));
}
//crossed bordered
public static Shape createCrossedBorderedShape(Shape shape)
{
return null;
}
//crossed texted
public static Shape createCrossedTextedShape(Shape shape)
{
return (new Text(new Cross(shape)));
}
//bordered texted
public static Shape createBorderedTextedShape(Shape shape)
{
return null;
}
//crossed bordered texted
public static Shape createCrossedTextedBorderedShape(Shape shape)
{
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -