Base java event POC
This commit is contained in:
15
src/main/java/ovh/gasser/newshapes/shapes/Shape.java
Normal file
15
src/main/java/ovh/gasser/newshapes/shapes/Shape.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package ovh.gasser.newshapes.shapes;
|
||||
|
||||
import ovh.gasser.newshapes.ShapeVisitor;
|
||||
import ovh.gasser.newshapes.attributes.Attributes;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
public interface Shape {
|
||||
void accept(ShapeVisitor visitor);
|
||||
void setLoc(Point newLoc);
|
||||
void translate(int dx, int dy);
|
||||
Attributes getAttributes(String key);
|
||||
void addAttributes(Attributes attr);
|
||||
Rectangle getBounds();
|
||||
}
|
||||
Reference in New Issue
Block a user