/** * 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 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(); }
} else if (this.textRotation != NORMAL) { double theta = getTextRotation(); size.setSize(rotateWidth(size, theta), rotateHeight(size, theta));
} else if (this.textRotation != NORMAL) { double theta = getTextRotation(); size.setSize(rotateWidth(size, theta), rotateHeight(size, theta));
} else if (this.textRotation != NORMAL) { double theta = getTextRotation(); size.setSize(rotateWidth(size, theta), rotateHeight(size, theta));
} else if (this.textRotation != NORMAL) { double theta = getTextRotation(); size.setSize(rotateWidth(size, theta), rotateHeight(size, theta));
} else if (this.textRotation != NORMAL) { double theta = getTextRotation(); size.setSize(rotateWidth(size, theta), rotateHeight(size, theta));