org.grinvin.gui

Class WatermarkPainter


public class WatermarkPainter
extends java.lang.Object

Paint a 'watermark' onto a component consisting of repeated text slanted at an angle of 45 degrees

Constructor Summary

WatermarkPainter(int fontSize, String watermark, Color watermarkColor)
Create a watermark painter with the given specs.

Method Summary

void
paint(Component component, Graphics g)
Paint the watermark onto the background of the given component.

Constructor Details

WatermarkPainter

public WatermarkPainter(int fontSize,
                        String watermark,
                        Color watermarkColor)
Create a watermark painter with the given specs.

Method Details

paint

public void paint(Component component,
                  Graphics g)
Paint the watermark onto the background of the given component.