/** * Determines if the effective alpha of this component should include the * alpha of ancestors. * * @param val * {@code true} to include ancestral alpha data; {@code false} * otherwise * @see #isInheritAlpha() * @see #getEffectiveAlpha() */ public void setInheritAlpha(boolean val) { if (inheritAlpha != val) { inheritAlpha = val; firePropertyChange("inheritAlpha", !inheritAlpha, inheritAlpha); } }
/** * {@inheritDoc} */ @Override public void setInheritAlpha(boolean val) { boolean oldValue = isInheritAlpha(); inheritAlpha = val; firePropertyChange("inheritAlpha", oldValue, isInheritAlpha()); }
/** * {@inheritDoc} */ @Override public void setInheritAlpha(boolean val) { boolean oldValue = isInheritAlpha(); inheritAlpha = val; firePropertyChange("inheritAlpha", oldValue, isInheritAlpha()); }
/** * {@inheritDoc} */ @Override public void setInheritAlpha(boolean val) { boolean oldValue = isInheritAlpha(); inheritAlpha = val; firePropertyChange("inheritAlpha", oldValue, isInheritAlpha()); }
/** * {@inheritDoc} */ @Override public void setInheritAlpha(boolean val) { boolean oldValue = isInheritAlpha(); inheritAlpha = val; firePropertyChange("inheritAlpha", oldValue, isInheritAlpha()); }
/** * Sets the paintBorderInsets property. * Set to true if the background painter should paint where the border is * or false if it should only paint inside the border. This property is true by default. * This property affects the width, height, * and initial transform passed to the background painter. * * This is a bound property. */ @Override public void setPaintBorderInsets(boolean paintBorderInsets) { boolean old = this.isPaintBorderInsets(); this.paintBorderInsets = paintBorderInsets; firePropertyChange("paintBorderInsets", old, isPaintBorderInsets()); }
/** * Sets the paintBorderInsets property. * Set to true if the background painter should paint where the border is * or false if it should only paint inside the border. This property is true by default. * This property affects the width, height, * and initial transform passed to the background painter. * * This is a bound property. */ @Override public void setPaintBorderInsets(boolean paintBorderInsets) { boolean old = this.isPaintBorderInsets(); this.paintBorderInsets = paintBorderInsets; firePropertyChange("paintBorderInsets", old, isPaintBorderInsets()); }
/** * Sets the paintBorderInsets property. * Set to true if the background painter should paint where the border is * or false if it should only paint inside the border. This property is true by default. * This property affects the width, height, * and initial transform passed to the background painter. * * This is a bound property. */ @Override public void setPaintBorderInsets(boolean paintBorderInsets) { boolean old = this.isPaintBorderInsets(); this.paintBorderInsets = paintBorderInsets; firePropertyChange("paintBorderInsets", old, isPaintBorderInsets()); }
/** * Sets the paintBorderInsets property. * Set to true if the background painter should paint where the border is * or false if it should only paint inside the border. This property is true by default. * This property affects the width, height, * and intial transform passed to the background painter. * * This is a bound property. */ public void setPaintBorderInsets(boolean paintBorderInsets) { boolean old = this.isPaintBorderInsets(); this.paintBorderInsets = paintBorderInsets; firePropertyChange("paintBorderInsets", old, isPaintBorderInsets()); }
/** * Sets the paintBorderInsets property. * Set to true if the background painter should paint where the border is * or false if it should only paint inside the border. This property is true by default. * This property affects the width, height, * and initial transform passed to the background painter. * * This is a bound property. */ @Override public void setPaintBorderInsets(boolean paintBorderInsets) { boolean old = this.isPaintBorderInsets(); this.paintBorderInsets = paintBorderInsets; firePropertyChange("paintBorderInsets", old, isPaintBorderInsets()); }
/** * Sets a Painter to use to paint the background of this JXPanel. * * @param p the new painter * @see #getBackgroundPainter() */ public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); backgroundPainter = p; firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets the vertical sizing hint. The hint is used by the Scrollable implementation * to service the getScrollableTracksHeight. * * @param hint the vertical sizing hint, must not be null * and must be vertical. * * @throws NullPointerException if null * * @see #setScrollableWidthHint(ScrollableSizeHint) * @see ScrollableSizeHint */ public final void setScrollableHeightHint(ScrollableSizeHint hint) { Contract.asNotNull(hint, "hint cannot be null"); ScrollableSizeHint oldValue = getScrollableHeightHint(); if (oldValue == hint) return; this.scrollableHeightHint = hint; revalidate(); firePropertyChange("scrollableHeightHint", oldValue, getScrollableHeightHint()); }
/** * Sets the vertical sizing hint. The hint is used by the Scrollable implementation * to service the getScrollableTracksHeight. * * @param hint the vertical sizing hint, must not be null * and must be vertical. * * @throws NullPointerException if null * * @see #setScrollableWidthHint(ScrollableSizeHint) * @see ScrollableSizeHint */ public final void setScrollableHeightHint(ScrollableSizeHint hint) { Contract.asNotNull(hint, "hint cannot be null"); ScrollableSizeHint oldValue = getScrollableHeightHint(); if (oldValue == hint) return; this.scrollableHeightHint = hint; revalidate(); firePropertyChange("scrollableHeightHint", oldValue, getScrollableHeightHint()); }
/** * Sets the horizontal sizing hint. The hint is used by the Scrollable implementation * to service the getScrollableTracksWidth. * * @param hint the horizontal sizing hint, must not be null * and must be vertical. * * @throws NullPointerException if null * * @see #setScrollableHeightHint(ScrollableSizeHint) * @see ScrollableSizeHint */ public final void setScrollableWidthHint(ScrollableSizeHint hint) { Contract.asNotNull(hint, "hint cannot be null"); ScrollableSizeHint oldValue = getScrollableWidthHint(); if (oldValue == hint) return; this.scrollableWidthHint = hint; revalidate(); firePropertyChange("scrollableWidthHint", oldValue, getScrollableWidthHint()); }
/** * Sets the vertical sizing hint. The hint is used by the Scrollable implementation * to service the getScrollableTracksHeight. * * @param hint the vertical sizing hint, must not be null * and must be vertical. * * @throws NullPointerException if null * * @see #setScrollableWidthHint(ScrollableSizeHint) * @see ScrollableSizeHint */ public final void setScrollableHeightHint(ScrollableSizeHint hint) { Contract.asNotNull(hint, "hint cannot be null"); ScrollableSizeHint oldValue = getScrollableHeightHint(); if (oldValue == hint) return; this.scrollableHeightHint = hint; revalidate(); firePropertyChange("scrollableHeightHint", oldValue, getScrollableHeightHint()); }
/** * Sets the horizontal sizing hint. The hint is used by the Scrollable implementation * to service the getScrollableTracksWidth. * * @param hint the horizontal sizing hint, must not be null * and must be vertical. * * @throws NullPointerException if null * * @see #setScrollableHeightHint(ScrollableSizeHint) * @see ScrollableSizeHint */ public final void setScrollableWidthHint(ScrollableSizeHint hint) { Contract.asNotNull(hint, "hint cannot be null"); ScrollableSizeHint oldValue = getScrollableWidthHint(); if (oldValue == hint) return; this.scrollableWidthHint = hint; revalidate(); firePropertyChange("scrollableWidthHint", oldValue, getScrollableWidthHint()); }
/** * Sets a Painter to use to paint the background of this JXPanel. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); if (old instanceof AbstractPainter) { ((AbstractPainter<?>) old).removePropertyChangeListener(painterChangeListener); } backgroundPainter = p; if (backgroundPainter instanceof AbstractPainter) { ((AbstractPainter<?>) backgroundPainter).addPropertyChangeListener(getPainterChangeListener()); } firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a Painter to use to paint the background of this JXPanel. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); if (old instanceof AbstractPainter) { ((AbstractPainter<?>) old).removePropertyChangeListener(painterChangeListener); } backgroundPainter = p; if (backgroundPainter instanceof AbstractPainter) { ((AbstractPainter<?>) backgroundPainter).addPropertyChangeListener(getPainterChangeListener()); } firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a Painter to use to paint the background of this JXPanel. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); if (old instanceof AbstractPainter) { ((AbstractPainter<?>) old).removePropertyChangeListener(painterChangeListener); } backgroundPainter = p; if (backgroundPainter instanceof AbstractPainter) { ((AbstractPainter<?>) backgroundPainter).addPropertyChangeListener(getPainterChangeListener()); } firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a Painter to use to paint the background of this JXPanel. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); if (old instanceof AbstractPainter) { ((AbstractPainter<?>) old).removePropertyChangeListener(painterChangeListener); } backgroundPainter = p; if (backgroundPainter instanceof AbstractPainter) { ((AbstractPainter<?>) backgroundPainter).addPropertyChangeListener(getPainterChangeListener()); } firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }