1 7 package com.sun.java.swing.plaf.nimbus; 8 9 import java.awt.Color ; 10 11 17 abstract class ShadowEffect extends Effect { 18 protected Color color = Color.BLACK; 19 20 protected float opacity = 0.75f; 21 22 protected int angle = 135; 23 24 protected int distance = 5; 25 26 protected int spread = 0; 27 28 protected int size = 5; 29 30 33 Color getColor() { 34 return color; 35 } 36 37 void setColor(Color color) { 38 Color old = getColor(); 39 this.color = color; 40 } 41 42 float getOpacity() { 43 return opacity; 44 } 45 46 void setOpacity(float opacity) { 47 float old = getOpacity(); 48 this.opacity = opacity; 49 } 50 51 int getAngle() { 52 return angle; 53 } 54 55 void setAngle(int angle) { 56 int old = getAngle(); 57 this.angle = angle; 58 } 59 60 int getDistance() { 61 return distance; 62 } 63 64 void setDistance(int distance) { 65 int old = getDistance(); 66 this.distance = distance; 67 } 68 69 int getSpread() { 70 return spread; 71 } 72 73 void setSpread(int spread) { 74 int old = getSpread(); 75 this.spread = spread; 76 } 77 78 int getSize() { 79 return size; 80 } 81 82 void setSize(int size) { 83 int old = getSize(); 84 this.size = size; 85 } 86 } 87 | Popular Tags |