Skip to content

Commit c4fb352

Browse files
committed
added PrintWithGraphics::getLayer()
1 parent 0c27053 commit c4fb352

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/main/java/com/marginallyclever/nodegraphcore/PrintWithGraphics.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ public interface PrintWithGraphics {
1212
* @param g the {@link java.awt.Graphics} context.
1313
*/
1414
void print(java.awt.Graphics g);
15+
16+
/**
17+
* The lowest layer is drawn first.
18+
* @return the layer number.
19+
*/
20+
int getLayer();
1521
}

src/main/java/com/marginallyclever/nodegraphcore/Subgraph.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,9 @@ public void print(Graphics g) {
158158
}
159159
}
160160
}
161+
162+
@Override
163+
public int getLayer() {
164+
return 0;
165+
}
161166
}

0 commit comments

Comments
 (0)