You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
klighd, klighd.piccolo & friends: added 'FOREGROUND_NODE' & 'BACKGROUND_FIGURE' to 'KlighdProperties', refactored handling of nodes and node figures to solve #151
* added corresponding convenience methods to 'DiagramSyntheses'
* added distinguished layers for regular nodes and foreground nodes in 'KChildAreaNode'
* refined 'fullPaint()' procedures for 'KChildAreaNode' and 'KNodeNode'
* refined figure filtering in 'KlighdFigureNode'
* added required state to 'KlighdPaintContext'
* added corresponding tests to 'klighd.piccolo.test' powered by the svg generator
* minor refinement in 'SemanticSVGGraphics2D' (generated white space)
Copy file name to clipboardExpand all lines: plugins/de.cau.cs.kieler.klighd.piccolo.freehep/src/de/cau/cs/kieler/klighd/piccolo/freehep/SemanticSVGGraphics2D.java
Copy file name to clipboardExpand all lines: plugins/de.cau.cs.kieler.klighd.piccolo/src/de/cau/cs/kieler/klighd/piccolo/internal/controller/AbstractKGERenderingController.java
+9
Original file line number
Diff line number
Diff line change
@@ -156,6 +156,9 @@ enum ElementMovement {
156
156
/** whether to synchronize the rendering with the model. */
157
157
privatebooleansyncRendering = false;
158
158
159
+
/** A flag for capturing whether some figure description parts are tagged as background figures. */
160
+
protectedbooleanbackgroundFiguresPresent = false;
161
+
159
162
/**
160
163
* A flag indicating the availability of {@link KStyle KStyles} with valid modifier ids in
161
164
* {@link #currentRendering}.
@@ -324,6 +327,9 @@ void updateRendering() {
324
327
// this call updates the 'currentRendering' field
325
328
getCurrentRendering();
326
329
330
+
// reset the flag before re-evaluating the current figure description
331
+
backgroundFiguresPresent = false;
332
+
327
333
// reset that flag as potentially available styles with a modifier might be removed now
Copy file name to clipboardExpand all lines: plugins/de.cau.cs.kieler.klighd.piccolo/src/de/cau/cs/kieler/klighd/piccolo/internal/controller/KNodeRenderingController.java
Copy file name to clipboardExpand all lines: plugins/de.cau.cs.kieler.klighd.piccolo/src/de/cau/cs/kieler/klighd/piccolo/internal/nodes/KChildAreaNode.java
0 commit comments