@Override public void preferenceChanged(View child, boolean width, boolean height) { if (host != null && host.painted) { host.revalidate(); host.repaint(); } }
@Override public void preferenceChanged(View child, boolean width, boolean height) { if (host != null && host.painted) { host.revalidate(); host.repaint(); } }
@Override public void preferenceChanged(View child, boolean width, boolean height) { if (host != null && host.painted) { host.revalidate(); host.repaint(); } }
public void preferenceChanged(View child, boolean width, boolean height) { if (host != null && host.painted) { host.revalidate(); host.repaint(); } }
@Override public void preferenceChanged(View child, boolean width, boolean height) { if (host != null && host.painted) { host.revalidate(); host.repaint(); } }
/** * Sets a Painter to use to paint the background of this component By default there is already a single painter * installed which draws the normal background for this component according to the current Look and Feel. Calling * <CODE>setBackgroundPainter</CODE> will replace that existing painter. * * @param p the new painter * @see #getBackgroundPainter() */ public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); backgroundPainter = p; firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a Painter to use to paint the background of this component By default there is already a single painter * installed which draws the normal background for this component according to the current Look and Feel. Calling * <CODE>setBackgroundPainter</CODE> will replace that existing painter. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); backgroundPainter = p; firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a Painter to use to paint the background of this component By default there is already a single painter * installed which draws the normal background for this component according to the current Look and Feel. Calling * <CODE>setBackgroundPainter</CODE> will replace that existing painter. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); backgroundPainter = p; firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a Painter to use to paint the background of this component By default there is already a single painter * installed which draws the normal background for this component according to the current Look and Feel. Calling * <CODE>setBackgroundPainter</CODE> will replace that existing painter. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); backgroundPainter = p; firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a Painter to use to paint the background of this component By default there is already a single painter * installed which draws the normal background for this component according to the current Look and Feel. Calling * <CODE>setBackgroundPainter</CODE> will replace that existing painter. * * @param p the new painter * @see #getBackgroundPainter() */ @Override public void setBackgroundPainter(Painter p) { Painter old = getBackgroundPainter(); backgroundPainter = p; firePropertyChange("backgroundPainter", old, getBackgroundPainter()); repaint(); }
/** * Sets a new foregroundPainter on the label. This will replace the existing foreground painter. Existing painters * can be wrapped by using a CompoundPainter. * * @param painter */ public void setForegroundPainter(Painter painter) { Painter old = this.getForegroundPainter(); if (painter == null) { //restore default painter initPainterSupport(); } else { this.foregroundPainter = painter; } firePropertyChange("foregroundPainter", old, getForegroundPainter()); repaint(); }
/** * Sets new value for text rotation. The value can be anything in range <0,2PI>. Note that although property name * suggests only text rotation, the whole foreground painter is rotated in fact. Due to various reasons it is * strongly discouraged to access any size related properties of the label from other threads then EDT when this * property is set. * * @param textOrientation Value for text rotation in range <0,2PI> * @see #getTextRotation() */ public void setTextRotation(double textOrientation) { double old = getTextRotation(); this.textRotation = textOrientation; if (old != getTextRotation()) { firePropertyChange("textRotation", old, getTextRotation()); } repaint(); }
/** * Sets new value for text rotation. The value can be anything in range <0,2PI>. Note that although property name * suggests only text rotation, the whole foreground painter is rotated in fact. Due to various reasons it is * strongly discouraged to access any size related properties of the label from other threads then EDT when this * property is set. * * @param textOrientation Value for text rotation in range <0,2PI> * @see #getTextRotation() */ public void setTextRotation(double textOrientation) { double old = getTextRotation(); this.textRotation = textOrientation; if (old != getTextRotation()) { firePropertyChange("textRotation", old, getTextRotation()); } repaint(); }
/** * Sets new value for text rotation. The value can be anything in range <0,2PI>. Note that although property name * suggests only text rotation, the whole foreground painter is rotated in fact. Due to various reasons it is * strongly discouraged to access any size related properties of the label from other threads then EDT when this * property is set. * * @param textOrientation Value for text rotation in range <0,2PI> * @see #getTextRotation() */ public void setTextRotation(double textOrientation) { double old = getTextRotation(); this.textRotation = textOrientation; if (old != getTextRotation()) { firePropertyChange("textRotation", old, getTextRotation()); } repaint(); }
/** * Sets a new foregroundPainter on the label. This will replace the existing foreground painter. Existing painters * can be wrapped by using a CompoundPainter. * * @param painter */ public void setForegroundPainter(Painter painter) { Painter old = this.getForegroundPainter(); if (painter == null) { //restore default painter initPainterSupport(); } else { this.foregroundPainter = painter; } firePropertyChange("foregroundPainter", old, getForegroundPainter()); repaint(); }
/** * Sets new value for text rotation. The value can be anything in range <0,2PI>. Note that although property name * suggests only text rotation, the whole foreground painter is rotated in fact. Due to various reasons it is * strongly discouraged to access any size related properties of the label from other threads then EDT when this * property is set. * * @param textOrientation Value for text rotation in range <0,2PI> * @see #getTextRotation() */ public void setTextRotation(double textOrientation) { double old = getTextRotation(); this.textRotation = textOrientation; if (old != getTextRotation()) { firePropertyChange("textRotation", old, getTextRotation()); } repaint(); }
/** * Sets a new foregroundPainter on the label. This will replace the existing foreground painter. Existing painters * can be wrapped by using a CompoundPainter. * * @param painter */ public void setForegroundPainter(Painter painter) { Painter old = this.getForegroundPainter(); if (painter == null) { //restore default painter initPainterSupport(); } else { this.foregroundPainter = painter; } firePropertyChange("foregroundPainter", old, getForegroundPainter()); repaint(); }
/** * Sets a new foregroundPainter on the label. This will replace the existing foreground painter. Existing painters * can be wrapped by using a CompoundPainter. * * @param painter */ public void setForegroundPainter(Painter painter) { Painter old = this.getForegroundPainter(); if (painter == null) { //restore default painter initPainterSupport(); } else { this.foregroundPainter = painter; } firePropertyChange("foregroundPainter", old, getForegroundPainter()); repaint(); }
/** * Sets a new foregroundPainter on the label. This will replace the existing foreground painter. Existing painters * can be wrapped by using a CompoundPainter. * * @param painter */ public void setForegroundPainter(Painter painter) { Painter old = this.getForegroundPainter(); if (painter == null) { //restore default painter initPainterSupport(); } else { this.foregroundPainter = painter; } firePropertyChange("foregroundPainter", old, getForegroundPainter()); repaint(); }
/** * Sets new value for text rotation. The value can be anything in range <0,2PI>. Note that although property name * suggests only text rotation, the whole foreground painter is rotated in fact. Due to various reasons it is * strongly discouraged to access any size related properties of the label from other threads then EDT when this * property is set. * * @param textOrientation Value for text rotation in range <0,2PI> * @see #getTextRotation() */ public void setTextRotation(double textOrientation) { double old = getTextRotation(); this.textRotation = textOrientation; if (old != getTextRotation()) { firePropertyChange("textRotation", old, getTextRotation()); } repaint(); }