ThreeDSideView(ThreeDTab dialog) { this.dialog = dialog; addMouseListener(this); addMouseMotionListener(this); LayerVisibility lv = LayerVisibility.getLayerVisibility(); for (Iterator<Layer> it = dialog.curTech.getLayers(); it.hasNext(); ) { Layer layer = it.next(); if (layer.isPseudoLayer()) continue; if (!lv.isVisible(layer)) continue; GenMath.MutableDouble thickness = dialog.threeDThicknessMap.get(layer); GenMath.MutableDouble distance = dialog.threeDDistanceMap.get(layer); double dis = distance.doubleValue(); double thick = thickness.doubleValue() / 2; double valLow = dis - thick; double valHig = dis + thick; if (valLow < lowHeight) lowHeight = valLow; if (valHig > highHeight) highHeight = valHig; } lowHeight -= 4; highHeight += 4; }