Graphics: remove hidden box lines in 2D view (in fine to remove them in export) 37/10537/2
Calixte DENIZET [Tue, 19 Feb 2013 13:12:04 +0000 (14:12 +0100)]
Change-Id: Ic1421f874f7e5e05aaeee80554c12c562d5d9a58

scilab/modules/renderer/src/java/org/scilab/modules/renderer/JoGLView/axes/AxesDrawer.java

index e0735dd..bb02744 100644 (file)
@@ -239,11 +239,12 @@ public class AxesDrawer {
             /**
              * Draw hidden part of box.
              */
-            appearance.setLineColor(ColorFactory.createColor(colorMap, axes.getHiddenAxisColor()));
-            appearance.setLineWidth(axes.getLineThickness().floatValue());
-            appearance.setLinePattern(HIDDEN_BORDER_PATTERN.asPattern());
-            drawingTools.draw(geometries.getHiddenBoxBorderGeometry(), appearance);
-
+            if (!visitor.is2DView()) {
+                appearance.setLineColor(ColorFactory.createColor(colorMap, axes.getHiddenAxisColor()));
+                appearance.setLineWidth(axes.getLineThickness().floatValue());
+                appearance.setLinePattern(HIDDEN_BORDER_PATTERN.asPattern());
+                drawingTools.draw(geometries.getHiddenBoxBorderGeometry(), appearance);
+            }
 
             if (boxed != Box.BoxType.HIDDEN_AXES) {