X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.editor%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Feditor%2Fhandles%2FHandle.java;h=cbfe2a2aa31d0e9193dd47d53363666dd5144355;hb=6b2af588898986c750a4121b49631dfc11e941db;hp=c8f93922184ffb2c0a875e1ff95082bbd82524f3;hpb=c030ee6409641b332aa9df02c1c23b669d42c556;p=Mograsim.git diff --git a/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/Handle.java b/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/Handle.java index c8f93922..cbfe2a2a 100644 --- a/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/Handle.java +++ b/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/Handle.java @@ -14,9 +14,11 @@ public abstract class Handle { private final Rectangle bounds; private final Collection redrawListeners, destroyListeners; + private final int priority; - public Handle() + public Handle(int priority) { + this.priority = priority; redrawListeners = new ArrayList<>(); destroyListeners = new ArrayList<>(); bounds = new Rectangle(0, 0, 0, 0); @@ -122,6 +124,11 @@ public abstract class Handle public void onDeselect() {} //@formatter:on + public final int getPriority() + { + return priority; + } + public abstract HandleType getType(); public static enum HandleType