diff options
author | Sven Gothel <[email protected]> | 2023-12-19 17:31:11 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-12-19 17:31:11 +0100 |
commit | 53c2891909941d0261c15e5679bb108f3c70fb82 (patch) | |
tree | 141b82b16cdaad6f1b2bfa0d2b3fefff39daa532 /src/graphui/classes/com | |
parent | 1bf9f42690880413e8d58a5525ec76605bfdfe83 (diff) |
GraphUI Shape: setParent() pp -> protected, allow to override setName()
Diffstat (limited to 'src/graphui/classes/com')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/Shape.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Shape.java b/src/graphui/classes/com/jogamp/graph/ui/Shape.java index ccd4030fd..408b416cc 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/Shape.java +++ b/src/graphui/classes/com/jogamp/graph/ui/Shape.java @@ -138,7 +138,7 @@ public abstract class Shape { private static final int DIRTY_SHAPE = 1 << 0 ; private static final int DIRTY_STATE = 1 << 1 ; - + private Group parent; protected final AABBox box; @@ -207,7 +207,7 @@ public abstract class Shape { this.box = new AABBox(); } - /* pp */ void setParent(final Group c) { parent = c; } + protected void setParent(final Group c) { parent = c; } /** * Returns the last parent container {@link Group} this shape has been added to or {@code null}. * <p> @@ -216,15 +216,15 @@ public abstract class Shape { * </p> */ public Group getParent() { return parent; } - + /** Set a symbolic ID for this shape for identification. Default is -1 for noname. */ public final Shape setID(final int id) { this.id = id; return this; } /** Return the optional symbolic ID for this shape. */ public final int getID() { return this.id; } - /** Set a symbolic name for this shape for identification. Default is noname. */ - public final Shape setName(final String name) { this.name = name; return this; } - /** Return the optional symbolic name for this shape. */ + /** Set a symbolic name for this shape for identification. Default is `noname`. */ + public Shape setName(final String name) { this.name = name; return this; } + /** Return the optional symbolic name for this shape, defaults to `noname`. */ public final String getName() { return this.name; } /** Returns true if this shape denotes a {@link Group}, otherwise false. */ |