/** * Sets style of wrapping the text. * @see TextAlignment for accepted values. * @param alignment */ public void setTextAlignment(TextAlignment alignment) { TextAlignment old = getTextAlignment(); this.textAlignment = alignment; firePropertyChange("textAlignment", old, getTextAlignment()); }
/** * Sets style of wrapping the text. * @see TextAlignment for accepted values. * @param alignment */ public void setTextAlignment(TextAlignment alignment) { TextAlignment old = getTextAlignment(); this.textAlignment = alignment; firePropertyChange("textAlignment", old, getTextAlignment()); }
public void setMaxLineSpan(int maxLineSpan) { int old = getMaxLineSpan(); this.maxLineSpan = maxLineSpan; firePropertyChange("maxLineSpan", old, getMaxLineSpan()); }
/** * Sets style of wrapping the text. * @see TextAlignment for accepted values. * @param alignment */ public void setTextAlignment(TextAlignment alignment) { TextAlignment old = getTextAlignment(); this.textAlignment = alignment; firePropertyChange("textAlignment", old, getTextAlignment()); }
public void setMaxLineSpan(int maxLineSpan) { int old = getMaxLineSpan(); this.maxLineSpan = maxLineSpan; firePropertyChange("maxLineSpan", old, getMaxLineSpan()); }
public void setMaxLineSpan(int maxLineSpan) { int old = getMaxLineSpan(); this.maxLineSpan = maxLineSpan; firePropertyChange("maxLineSpan", old, getMaxLineSpan()); }
/** * Sets style of wrapping the text. * @see TextAlignment for accepted values. * @param alignment */ public void setTextAlignment(TextAlignment alignment) { TextAlignment old = getTextAlignment(); this.textAlignment = alignment; firePropertyChange("textAlignment", old, getTextAlignment()); }
public void setMaxLineSpan(int maxLineSpan) { int old = getMaxLineSpan(); this.maxLineSpan = maxLineSpan; firePropertyChange("maxLineSpan", old, getMaxLineSpan()); }
/** * Sets style of wrapping the text. * @see TextAlignment for accepted values. * @param alignment */ public void setTextAlignment(TextAlignment alignment) { TextAlignment old = getTextAlignment(); this.textAlignment = alignment; firePropertyChange("textAlignment", old, getTextAlignment()); }
public void setMaxLineSpan(int maxLineSpan) { int old = getMaxLineSpan(); this.maxLineSpan = maxLineSpan; firePropertyChange("maxLineSpan", old, getMaxLineSpan()); }
/** * 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. * @param paintBorderInsets new value of the paintBorderInsets 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. * @param paintBorderInsets new value of the paintBorderInsets 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. * @param paintBorderInsets new value of the paintBorderInsets 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 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(); }