Updates the visibility of the decoration painter according to the visible state set by the programmer and the
state of the decorated component.

@see DecorationPainter
977965
private void updateDecorationPainterVisibility() {
        boolean shouldBeVisible = (decoratedComponent != null) && //
                (paintWhenDisabled || decoratedComponent.isEnabled()) && //
                decoratedComponent.isShowing() && //
                visible;
        if (shouldBeVisible != decorationPainter.isVisible()) {
            decorationPainter.setVisible(shouldBeVisible);
        }
    }
495316
public void setAreasVisible(final boolean VISIBLE) {
        if (null == areasVisible) {
            _areasVisible = VISIBLE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            areasVisible.set(VISIBLE);
        }
    }
1178680
public void setLcdVisible(final boolean LCD_VISIBLE) {
        getModel().setLcdVisible(LCD_VISIBLE);
        init(getInnerBounds().width, getInnerBounds().height);
        repaint(getInnerBounds());
    }
417379
protected void setGalleriesVisible(boolean visible) {

        if (visible) {
            m_noGalleriesLabel.getElement().getStyle().clearDisplay();
            m_galleryTree.getElement().getStyle().clearDisplay();
        } else {
            m_galleryTree.getElement().getStyle().setDisplay(Display.NONE);
            m_noGalleriesLabel.getElement().getStyle().setDisplay(Display.NONE);

        }
    }
1339517
private void updatePaintables() {
		distance.setContent(formatUnits(widthInUnits));
		backGround.getBounds().setWidth(widthInPixels + 2 * HORIZONTAL_PADDING);
		rightMarker.getBounds().setX(leftMarker.getBounds().getX() + widthInPixels - 1);
		bottomLine.getBounds().setWidth(widthInPixels);
	}
467203
public void setSection3DEffectVisible(final boolean SECTION_3D_EFFECT_VISIBLE) {
        this.section3DEffectVisible = SECTION_3D_EFFECT_VISIBLE;
        init(getInnerBounds().width, getInnerBounds().height);
        repaint(getInnerBounds());
    }
567701
public void setGlowVisible(final boolean GLOW_VISIBLE) {
        glowVisible = GLOW_VISIBLE;
        init(getInnerBounds().width, getInnerBounds().height);
        repaint();
    }
51736
public void setThresholdVisible(final boolean VISIBLE) {
        if (null == thresholdVisible) {
            _thresholdVisible = VISIBLE;
            fireUpdateEvent(VISIBILITY_EVENT);
        } else {
            thresholdVisible.set(VISIBLE);
        }
    }
989603
public void setAlarmsVisible(final boolean VISIBLE) {
        if (null == alarmsVisible) {
            _alarmsVisible = VISIBLE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            alarmsVisible.set(VISIBLE);
        }
    }
67071
public void setVisibility(boolean visible) {
    this.visible = visible;
    if (!style.isFullyLoaded()) {
      // We are in progress of loading a new style
      return;
    }

    fillExtrusionLayer.setProperties(visibility(visible ? VISIBLE : NONE));
  }
1349886
public void setPreviewVisible(boolean visible) {

        m_previewVisible = visible;
        if (m_previewVisible) {
            useMaxDimensions();
            m_previewVisibility.setValue(I_CmsLayoutBundle.INSTANCE.previewDialogCss().previewVisible());
            if (m_galleryHandler instanceof CmsGalleryPopup) {
                ((CmsGalleryPopup)m_galleryHandler).center();
            }
        } else {
            m_previewVisibility.setValue(I_CmsLayoutBundle.INSTANCE.previewDialogCss().hidePreview());
            updateSizes();
        }
    }
1011207
public void setAverageVisible(final boolean VISIBLE) {
        if (null == averageVisible) {
            _averageVisible = VISIBLE;
            fireTileEvent(VISIBILITY_EVENT);
        } else {
            averageVisible.set(VISIBLE);
        }
    }
108526
public void makeVisible(final WComponent component) {
		if (component.getParent() != getCardContainer()) {
			throw new IllegalArgumentException(
					"Attempted to make a component visible which is not contained in this WCardManager");
		}

		CardManagerModel model = getOrCreateComponentModel();
		model.visibleComponent = component;
	}
845814
public void setAreaTextVisible(final boolean VISIBLE) {
        if (null == areaTextVisible) {
            _areaTextVisible = VISIBLE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            areaTextVisible.set(VISIBLE);
        }
    }
1010307
@Api
	public void setVisible(boolean visible) {
		if (visible != this.visible) {
			this.visible = visible;
			updateShowing(false);
			handlerManager.fireEvent(new LayerShownEvent(this));
		}
	}
202582
public void setAreaIconsVisible(final boolean VISIBLE) {
        if (null == areaIconsVisible) {
            _areaIconsVisible = VISIBLE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            areaIconsVisible.set(VISIBLE);
        }
    }
661327
def on_state_changed(self, state):
        
        if state:
            self.editor.painted.connect(self._paint_margins)
            self.editor.key_pressed.connect(self._on_key_pressed)
            self.editor.repaint()
        else:
            self.editor.painted.disconnect(self._paint_margins)
            self.editor.key_pressed.disconnect(self._on_key_pressed)
            self.editor.repaint()