Base java event POC

This commit is contained in:
2019-03-19 21:17:08 +01:00
parent 95cb82d419
commit 51885d8c53
16 changed files with 587 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package ovh.gasser.newshapes;
import ovh.gasser.newshapes.attributes.SelectionAttributes;
import ovh.gasser.newshapes.shapes.Shape;
public class Selection {
private final SelectionAttributes attributes;
public final Shape shape;
public Selection(final Shape shape, boolean selected) {
this(shape);
attributes.selected = selected;
}
private Selection(final Shape shape) {
attributes = (SelectionAttributes) shape.getAttributes(SelectionAttributes.ID);
this.shape = shape;
}
public void unselect() {
attributes.selected = false;
}
}