package com.drawbridge.correspondance;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
public class DocumentSpotlight extends Spotlight
{
int x, y, width, height, glow;
public DocumentSpotlight(int x, int y, int width, int height, int glow) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.glow = glow;
}
public void paintSpotlight(Graphics g)
{
Graphics2D g2 = (Graphics2D) g;
g2.setColor(Color.white);
double increment = 255.0 / height;
// for (int i = 0; i < glow; i++)
// {
// g2.setColor(new Color((int) (g2.getColor().getRed() + increment),
// (int) (g2.getColor().getGreen() + increment), (int)
// (g2.getColor().getBlue() + increment)));
g2.fillRoundRect(x, y, width, height, 10, 10);
// }
}
}