aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph/ui/Shape.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-08-28 22:59:57 +0200
committerSven Gothel <[email protected]>2023-08-28 22:59:57 +0200
commit7fd51917b0cc85c3dc3d07592093a62b213d1ea5 (patch)
tree19d6acb59d319fd04c8d222b4b5c1e8c132d5795 /src/graphui/classes/com/jogamp/graph/ui/Shape.java
parent920e529516bb264f04138ed1caca80d4925e3773 (diff)
GraphUI Shape: Show dirty-state in getSubString()
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/Shape.java')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/Shape.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Shape.java b/src/graphui/classes/com/jogamp/graph/ui/Shape.java
index eaf38ffb0..1890ccf14 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/Shape.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/Shape.java
@@ -391,6 +391,18 @@ public abstract class Shape {
return 0 != ( dirty & DIRTY_STATE ) ;
}
+ protected final String getDirtyString() {
+ if( isShapeDirty() && isShapeDirty() ) {
+ return "dirty[shape, state]";
+ } else if( isShapeDirty() ) {
+ return "dirty[shape]";
+ } else if( isStateDirty() ) {
+ return "dirty[state]";
+ } else {
+ return "clean";
+ }
+ }
+
/**
* Returns the unscaled bounding {@link AABBox} for this shape, borrowing internal instance.
*
@@ -1028,7 +1040,7 @@ public abstract class Shape {
}
final String ps = hasPadding() ? padding.toString()+", " : "";
final String bs = hasBorder() ? "Border "+getBorderThickness()+", " : "";
- return "enabled "+enabled+", toggle[able "+toggleable+", state "+toggle+
+ return getDirtyString()+", enabled "+enabled+", toggle[able "+toggleable+", state "+toggle+
"], able[iactive "+isInteractive()+", resize "+isResizable()+", move "+this.isDraggable()+
"], pos["+position+"], "+pivotS+scaleS+rotateS+
ps+bs+"box"+box;