1 /*
2
3 dsh-iconbundle Bundles of variants for icon images.
4 Copyright (c) 2003-2012 held jointly by the individual authors.
5
6 This library is free software; you can redistribute it and/or modify it
7 under the terms of the GNU Lesser General Public License as published
8 by the Free Software Foundation; either version 3 of the License, or (at
9 your option) any later version.
10
11 This library is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; with out even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
15
16 You should have received a copy of the GNU Lesser General Public License
17 along with this library; if not, write to the Free Software Foundation,
18 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19
20 > http://www.fsf.org/licensing/licenses/lgpl.html
21 > http://www.opensource.org/licenses/lgpl-license.php
22
23 */
24 package org.dishevelled.iconbundle.impl;
25
26 import java.awt.RenderingHints;
27
28 import java.awt.image.Raster;
29 import java.awt.image.RasterOp;
30 import java.awt.image.WritableRaster;
31
32 import java.awt.geom.Point2D;
33 import java.awt.geom.Rectangle2D;
34
35 /**
36 * Abstract implementation of RasterOp.
37 *
38 * @author Michael Heuer
39 * @version $Revision: 1059 $ $Date: 2012-01-03 14:03:02 -0600 (Tue, 03 Jan 2012) $
40 */
41 abstract class AbstractRasterOp
42 implements RasterOp
43 {
44
45 /** {@inheritDoc} */
46 public final WritableRaster createCompatibleDestRaster(final Raster src)
47 {
48 return null;
49 }
50
51 /** {@inheritDoc} */
52 public final Rectangle2D getBounds2D(final Raster src)
53 {
54 return null;
55 }
56
57 /** {@inheritDoc} */
58 public final Point2D getPoint2D(final Point2D srcPoint, final Point2D destPoint)
59 {
60 return srcPoint;
61 }
62
63 /** {@inheritDoc} */
64 public final RenderingHints getRenderingHints()
65 {
66 return null;
67 }
68 }