1173N/A/*
2362N/A * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
1173N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1173N/A *
1173N/A * This code is free software; you can redistribute it and/or modify it
1173N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
1173N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
1173N/A *
1173N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1173N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1173N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1173N/A * version 2 for more details (a copy is included in the LICENSE file that
1173N/A * accompanied this code).
1173N/A *
1173N/A * You should have received a copy of the GNU General Public License version
1173N/A * 2 along with this work; if not, write to the Free Software Foundation,
1173N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1173N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
1173N/A */
1173N/Apackage javax.swing.plaf.nimbus;
1173N/A
1173N/Aimport java.awt.Color;
1173N/A
1173N/A/**
1173N/A * ShadowEffect - base class with all the standard properties for shadow effects
1173N/A *
1173N/A * @author Created by Jasper Potts (Jun 18, 2007)
1173N/A */
1173N/Aabstract class ShadowEffect extends Effect {
1173N/A protected Color color = Color.BLACK;
1173N/A /** Opacity a float 0-1 for percentage */
1173N/A protected float opacity = 0.75f;
1173N/A /** Angle in degrees between 0-360 */
1173N/A protected int angle = 135;
1173N/A /** Distance in pixels */
1173N/A protected int distance = 5;
1173N/A /** The shadow spread between 0-100 % */
1173N/A protected int spread = 0;
1173N/A /** Size in pixels */
1173N/A protected int size = 5;
1173N/A
1173N/A // =================================================================================================================
1173N/A // Bean methods
1173N/A
1173N/A Color getColor() {
1173N/A return color;
1173N/A }
1173N/A
1173N/A void setColor(Color color) {
1173N/A Color old = getColor();
1173N/A this.color = color;
1173N/A }
1173N/A
1173N/A float getOpacity() {
1173N/A return opacity;
1173N/A }
1173N/A
1173N/A void setOpacity(float opacity) {
1173N/A float old = getOpacity();
1173N/A this.opacity = opacity;
1173N/A }
1173N/A
1173N/A int getAngle() {
1173N/A return angle;
1173N/A }
1173N/A
1173N/A void setAngle(int angle) {
1173N/A int old = getAngle();
1173N/A this.angle = angle;
1173N/A }
1173N/A
1173N/A int getDistance() {
1173N/A return distance;
1173N/A }
1173N/A
1173N/A void setDistance(int distance) {
1173N/A int old = getDistance();
1173N/A this.distance = distance;
1173N/A }
1173N/A
1173N/A int getSpread() {
1173N/A return spread;
1173N/A }
1173N/A
1173N/A void setSpread(int spread) {
1173N/A int old = getSpread();
1173N/A this.spread = spread;
1173N/A }
1173N/A
1173N/A int getSize() {
1173N/A return size;
1173N/A }
1173N/A
1173N/A void setSize(int size) {
1173N/A int old = getSize();
1173N/A this.size = size;
1173N/A }
1173N/A}