/** * Sets the flag that indicates whether or not the notification mechanism * is enabled. There are certain situations (such as cloning) where you * want to turn notification off temporarily. * * @param flag the new value of the flag. */ public void setNotify(boolean flag) { this.notify = flag; if (flag) { notifyListeners(new TitleChangeEvent(this)); } }
/** * Sets a flag that controls whether or not the title should be drawn, and * sends a {@link TitleChangeEvent} to all registered listeners. * * @param visible the new flag value. * * @see #isVisible() * * @since 1.0.11 */ public void setVisible(boolean visible) { this.visible = visible; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the flag that indicates whether or not the notification mechanism * is enabled. There are certain situations (such as cloning) where you * want to turn notification off temporarily. * * @param flag the new value of the flag. */ public void setNotify(boolean flag) { this.notify = flag; if (flag) { notifyListeners(new TitleChangeEvent(this)); } }
/** * Sets a flag that controls whether or not the title should be drawn, and * sends a {@link TitleChangeEvent} to all registered listeners. * * @param visible the new flag value. * * @see #isVisible() * * @since 1.0.11 */ public void setVisible(boolean visible) { this.visible = visible; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the vertical alignment for the title, and notifies any registered * listeners of the change. * * @param alignment the new vertical alignment (TOP, MIDDLE or BOTTOM, * <code>null</code> not permitted). */ public void setVerticalAlignment(VerticalAlignment alignment) { if (alignment == null) { throw new IllegalArgumentException("Null 'alignment' argument."); } if (this.verticalAlignment != alignment) { this.verticalAlignment = alignment; notifyListeners(new TitleChangeEvent(this)); } }
/** * Sets the position for the title and sends a {@link TitleChangeEvent} to * all registered listeners. * * @param position the position (<code>null</code> not permitted). */ public void setPosition(RectangleEdge position) { if (position == null) { throw new IllegalArgumentException("Null 'position' argument."); } if (this.position != position) { this.position = position; notifyListeners(new TitleChangeEvent(this)); } }
/** * Sets the horizontal alignment for the title and sends a * {@link TitleChangeEvent} to all registered listeners. * * @param alignment the horizontal alignment (<code>null</code> not * permitted). */ public void setHorizontalAlignment(HorizontalAlignment alignment) { if (alignment == null) { throw new IllegalArgumentException("Null 'alignment' argument."); } if (this.horizontalAlignment != alignment) { this.horizontalAlignment = alignment; notifyListeners(new TitleChangeEvent(this)); } }
/** * Sets the position for the title and sends a {@link TitleChangeEvent} to * all registered listeners. * * @param position the position ({@code null} not permitted). */ public void setPosition(RectangleEdge position) { Args.nullNotPermitted(position, "position"); if (this.position != position) { this.position = position; notifyListeners(new TitleChangeEvent(this)); } }
/** * Sets the horizontal alignment for the title and sends a * {@link TitleChangeEvent} to all registered listeners. * * @param alignment the horizontal alignment ({@code null} not * permitted). */ public void setHorizontalAlignment(HorizontalAlignment alignment) { Args.nullNotPermitted(alignment, "alignment"); if (this.horizontalAlignment != alignment) { this.horizontalAlignment = alignment; notifyListeners(new TitleChangeEvent(this)); } }
/** * Sets the vertical alignment for the title, and notifies any registered * listeners of the change. * * @param alignment the new vertical alignment (TOP, MIDDLE or BOTTOM, * {@code null} not permitted). */ public void setVerticalAlignment(VerticalAlignment alignment) { Args.nullNotPermitted(alignment, "alignment"); if (this.verticalAlignment != alignment) { this.verticalAlignment = alignment; notifyListeners(new TitleChangeEvent(this)); } }