001 /*
002 * $Id: AreaEffect.java 3241 2009-02-01 21:18:40Z rah003 $
003 *
004 * Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle,
005 * Santa Clara, California 95054, U.S.A. All rights reserved.
006 *
007 * This library is free software; you can redistribute it and/or
008 * modify it under the terms of the GNU Lesser General Public
009 * License as published by the Free Software Foundation; either
010 * version 2.1 of the License, or (at your option) any later version.
011 *
012 * This library is distributed in the hope that it will be useful,
013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015 * Lesser General Public License for more details.
016 *
017 * You should have received a copy of the GNU Lesser General Public
018 * License along with this library; if not, write to the Free Software
019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
020 */
021 package org.jdesktop.swingx.painter.effects;
022
023 import java.awt.Graphics2D;
024 import java.awt.Shape;
025
026 /**
027 * An effect which works on AbstractPathPainters or any thing else which can provide a shape to be drawn.
028 * @author joshy
029 */
030 public interface AreaEffect {
031 /*
032 * Applies the shape effect. This effect will be drawn on top of the graphics context.
033 */
034 /**
035 * Draws an effect on the specified graphics and path using the specified width and height.
036 * @param g
037 * @param clipShape
038 * @param width
039 * @param height
040 */
041 public abstract void apply(Graphics2D g, Shape clipShape, int width, int height);
042 }