1. /*
  2. * @(#)SplitPaneUI.java 1.12 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing.plaf;
  8. import javax.swing.JSplitPane;
  9. import java.awt.Graphics;
  10. /**
  11. * Pluggable look and feel interface for JSplitPane.
  12. *
  13. * @version 1.12 11/29/01
  14. * @author Scott Violet
  15. */
  16. public abstract class SplitPaneUI extends ComponentUI
  17. {
  18. /**
  19. * Messaged to relayout the JSplitPane based on the preferred size
  20. * of the children components.
  21. */
  22. public abstract void resetToPreferredSizes(JSplitPane jc);
  23. /**
  24. * Sets the location of the divider to location.
  25. */
  26. public abstract void setDividerLocation(JSplitPane jc, int location);
  27. /**
  28. * Returns the location of the divider.
  29. */
  30. public abstract int getDividerLocation(JSplitPane jc);
  31. /**
  32. * Returns the minimum possible location of the divider.
  33. */
  34. public abstract int getMinimumDividerLocation(JSplitPane jc);
  35. /**
  36. * Returns the maximum possible location of the divider.
  37. */
  38. public abstract int getMaximumDividerLocation(JSplitPane jc);
  39. /**
  40. * Messaged after the JSplitPane the receiver is providing the look
  41. * and feel for paints its children.
  42. */
  43. public abstract void finishedPaintingChildren(JSplitPane jc, Graphics g);
  44. }