1. /*
  2. * @(#)SynthPainter.java 1.7 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.java.swing.plaf.gtk;
  8. import java.awt.*;
  9. import javax.swing.*;
  10. /**
  11. * A painter that is used to paint various portions of a region.
  12. *
  13. * @version 1.7, 01/23/03
  14. * @author Scott Violet
  15. */
  16. abstract class SynthPainter {
  17. /**
  18. * Paints the specified region.
  19. *
  20. * @param context SynthContext indentifying the hosting component
  21. * @param paintKey Identifies the portion of the component being asked
  22. * to paint, for example 'border', may be null.
  23. * @param g Graphics object to paint to
  24. * @param x x location to paint to
  25. * @param y y location to paint to
  26. * @param width Width of the region to paint to
  27. * @param height Height of the region to paint to
  28. */
  29. public abstract void paint(SynthContext context, Object paintKey,
  30. Graphics g, int x, int y,
  31. int width, int height);
  32. }