/** * Set a transform to be applied to all painters contained in this CompoundPainter * @param transform a new AffineTransform */ public void setTransform(AffineTransform transform) { AffineTransform old = getTransform(); this.transform = transform; setDirty(true); firePropertyChange("transform",old,transform); }
/** * Set a transform to be applied to all painters contained in this CompoundPainter * @param transform a new AffineTransform */ public void setTransform(AffineTransform transform) { AffineTransform old = getTransform(); this.transform = transform; setDirty(true); firePropertyChange("transform",old,transform); }
/** * Set a transform to be applied to all painters contained in this CompoundPainter * @param transform a new AffineTransform */ public void setTransform(AffineTransform transform) { AffineTransform old = getTransform(); this.transform = transform; setDirty(true); firePropertyChange("transform", old, transform); }
/** * Sets if the clip should be preserved. * Normally the clip will be reset between each painter. Setting clipPreserved to * true can be used to let one painter mask other painters that come after it. * * @param shouldRestoreState new value of the clipPreserved property * @see #isClipPreserved() */ public void setClipPreserved(boolean shouldRestoreState) { boolean oldShouldRestoreState = isClipPreserved(); this.clipPreserved = shouldRestoreState; setDirty(true); firePropertyChange("clipPreserved",oldShouldRestoreState,shouldRestoreState); }
/** * Set the flag used by {@link #isDirty()} to check if the * child <code>Painter</code>s should be checked for their * <code>dirty</code> flag as part of processing. * * @see #isCheckingDirtyChildPainters() * @see #isDirty() */ public void setCheckingDirtyChildPainters(boolean b) { boolean old = isCheckingDirtyChildPainters(); this.checkForDirtyChildPainters = b; firePropertyChange("checkingDirtyChildPainters",old, isCheckingDirtyChildPainters()); }
/** * Set a transform to be applied to all painters contained in this CompoundPainter * @param transform a new AffineTransform */ public void setTransform(AffineTransform transform) { AffineTransform old = getTransform(); this.transform = transform; setDirty(true); firePropertyChange("transform",old,transform); }
/** * Set a transform to be applied to all painters contained in this CompoundPainter * @param transform a new AffineTransform */ public void setTransform(AffineTransform transform) { AffineTransform old = getTransform(); this.transform = transform; setDirty(true); firePropertyChange("transform",old,transform); }
/** * Set the flag used by {@link #isDirty()} to check if the * child <code>Painter</code>s should be checked for their * <code>dirty</code> flag as part of processing. * * @see #isCheckingDirtyChildPainters() * @see #isDirty() */ public void setCheckingDirtyChildPainters(boolean b) { boolean old = isCheckingDirtyChildPainters(); this.checkForDirtyChildPainters = b; firePropertyChange("checkingDirtyChildPainters",old, isCheckingDirtyChildPainters()); }
/** * Set the flag used by {@link #isDirty()} to check if the * child <code>Painter</code>s should be checked for their * <code>dirty</code> flag as part of processing. * * @see #isCheckingDirtyChildPainters() * @see #isDirty() */ public void setCheckingDirtyChildPainters(boolean b) { boolean old = isCheckingDirtyChildPainters(); this.checkForDirtyChildPainters = b; firePropertyChange("checkingDirtyChildPainters",old, isCheckingDirtyChildPainters()); }
/** * Set the flag used by {@link #isDirty()} to check if the * child <code>Painter</code>s should be checked for their * <code>dirty</code> flag as part of processing. * * @see #isCheckingDirtyChildPainters() * @see #isDirty() */ public void setCheckingDirtyChildPainters(boolean b) { boolean old = isCheckingDirtyChildPainters(); this.checkForDirtyChildPainters = b; firePropertyChange("checkingDirtyChildPainters",old, isCheckingDirtyChildPainters()); }
/** * Sets if the clip should be preserved. * Normally the clip will be reset between each painter. Setting clipPreserved to * true can be used to let one painter mask other painters that come after it. * * @param shouldRestoreState new value of the clipPreserved property * @see #isClipPreserved() */ public void setClipPreserved(boolean shouldRestoreState) { boolean oldShouldRestoreState = isClipPreserved(); this.clipPreserved = shouldRestoreState; setDirty(true); firePropertyChange("clipPreserved",oldShouldRestoreState,shouldRestoreState); }
/** * Sets if the clip should be preserved. * Normally the clip will be reset between each painter. Setting clipPreserved to * true can be used to let one painter mask other painters that come after it. * * @param shouldRestoreState new value of the clipPreserved property * @see #isClipPreserved() */ public void setClipPreserved(boolean shouldRestoreState) { boolean oldShouldRestoreState = isClipPreserved(); this.clipPreserved = shouldRestoreState; setDirty(true); firePropertyChange("clipPreserved",oldShouldRestoreState,shouldRestoreState); }
/** * Sets if the clip should be preserved. * Normally the clip will be reset between each painter. Setting clipPreserved to * true can be used to let one painter mask other painters that come after it. * * @param shouldRestoreState new value of the clipPreserved property * @see #isClipPreserved() */ public void setClipPreserved(boolean shouldRestoreState) { boolean oldShouldRestoreState = isClipPreserved(); this.clipPreserved = shouldRestoreState; setDirty(true); firePropertyChange("clipPreserved",oldShouldRestoreState,shouldRestoreState); }
/** * Set the flag used by {@link #isDirty()} to check if the * child <code>Painter</code>s should be checked for their * <code>dirty</code> flag as part of processing. * @param b the dirty check flag * * @see #isCheckingDirtyChildPainters() * @see #isDirty() */ public void setCheckingDirtyChildPainters(boolean b) { boolean old = isCheckingDirtyChildPainters(); this.checkForDirtyChildPainters = b; firePropertyChange("checkingDirtyChildPainters", old, isCheckingDirtyChildPainters()); }
/** * Adds a painter to the queue of painters * @param painter the painter that is added */ public void addPainter(Painter<T> painter) { Collection<Painter<T>> old = new ArrayList<Painter<T>>(getPainters()); this.painters.add(painter); if (painter instanceof AbstractPainter) { ((AbstractPainter<?>) painter).addPropertyChangeListener(handler); } setDirty(true); firePropertyChange("painters", old, getPainters()); }
/** * Removes a painter from the queue of painters * @param painter the painter that is added */ public void removePainter(Painter<T> painter) { Collection<Painter<T>> old = new ArrayList<Painter<T>>(getPainters()); this.painters.remove(painter); if (painter instanceof AbstractPainter) { ((AbstractPainter<?>) painter).removePropertyChangeListener(handler); } setDirty(true); firePropertyChange("painters", old, getPainters()); }
/** * {@inheritDoc} */ @Override protected void setDirty(boolean d) { boolean old = super.isDirty(); boolean ours = isDirty(); super.setDirty(d); //must perform this check to ensure we do not double notify if (d != old && d == ours) { firePropertyChange("dirty", old, isDirty()); } }
@Override protected void setDirty(boolean d) { boolean old = super.isDirty(); boolean ours = isDirty(); super.setDirty(d); //must perform this check to ensure we do not double notify if (d != old && d == ours) { firePropertyChange("dirty", old, isDirty()); } }
/** * {@inheritDoc} */ @Override protected void setDirty(boolean d) { boolean old = super.isDirty(); boolean ours = isDirty(); super.setDirty(d); //must perform this check to ensure we do not double notify if (d != old && d == ours) { firePropertyChange("dirty", old, isDirty()); } }
/** * {@inheritDoc} */ @Override protected void setDirty(boolean d) { boolean old = super.isDirty(); boolean ours = isDirty(); super.setDirty(d); //must perform this check to ensure we do not double notify if (d != old && d == ours) { firePropertyChange("dirty", old, isDirty()); } }