68
69 /**
70 * Returns the <code>BufferedImageOp</code>.
71 * @return the operator of this <code>BufferedImageFilter</code>.
72 */
73 public BufferedImageOp getBufferedImageOp() {
74 return bufferedImageOp;
75 }
76
77 /**
78 * Filters the information provided in the
79 * {@link ImageConsumer#setDimensions(int, int) setDimensions } method
80 * of the {@link ImageConsumer} interface.
81 * <p>
82 * Note: This method is intended to be called by the
83 * {@link ImageProducer} of the <code>Image</code> whose pixels are
84 * being filtered. Developers using this class to retrieve pixels from
85 * an image should avoid calling this method directly since that
86 * operation could result in problems with retrieving the requested
87 * pixels.
88 * <p>
89 * @param width the width to which to set the width of this
90 * <code>BufferedImageFilter</code>
91 * @param height the height to which to set the height of this
92 * <code>BufferedImageFilter</code>
93 * @see ImageConsumer#setDimensions
94 */
95 public void setDimensions(int width, int height) {
96 if (width <= 0 || height <= 0) {
97 imageComplete(STATICIMAGEDONE);
98 return;
99 }
100 this.width = width;
101 this.height = height;
102 }
103
104 /**
105 * Filters the information provided in the
106 * {@link ImageConsumer#setColorModel(ColorModel) setColorModel} method
107 * of the <code>ImageConsumer</code> interface.
108 * <p>
|
68
69 /**
70 * Returns the <code>BufferedImageOp</code>.
71 * @return the operator of this <code>BufferedImageFilter</code>.
72 */
73 public BufferedImageOp getBufferedImageOp() {
74 return bufferedImageOp;
75 }
76
77 /**
78 * Filters the information provided in the
79 * {@link ImageConsumer#setDimensions(int, int) setDimensions } method
80 * of the {@link ImageConsumer} interface.
81 * <p>
82 * Note: This method is intended to be called by the
83 * {@link ImageProducer} of the <code>Image</code> whose pixels are
84 * being filtered. Developers using this class to retrieve pixels from
85 * an image should avoid calling this method directly since that
86 * operation could result in problems with retrieving the requested
87 * pixels.
88 *
89 * @param width the width to which to set the width of this
90 * <code>BufferedImageFilter</code>
91 * @param height the height to which to set the height of this
92 * <code>BufferedImageFilter</code>
93 * @see ImageConsumer#setDimensions
94 */
95 public void setDimensions(int width, int height) {
96 if (width <= 0 || height <= 0) {
97 imageComplete(STATICIMAGEDONE);
98 return;
99 }
100 this.width = width;
101 this.height = height;
102 }
103
104 /**
105 * Filters the information provided in the
106 * {@link ImageConsumer#setColorModel(ColorModel) setColorModel} method
107 * of the <code>ImageConsumer</code> interface.
108 * <p>
|