1. /*
  2. * @(#)TextAreaPeer.java 1.14 00/02/02
  3. *
  4. * Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.awt.peer;
  11. import java.awt.Dimension;
  12. /**
  13. * The peer interfaces are intended only for use in porting
  14. * the AWT. They are not intended for use by application
  15. * developers, and developers should not implement peers
  16. * nor invoke any of the peer methods directly on the peer
  17. * instances.
  18. */
  19. public interface TextAreaPeer extends TextComponentPeer {
  20. void insert(String text, int pos);
  21. void replaceRange(String text, int start, int end);
  22. Dimension getPreferredSize(int rows, int columns);
  23. Dimension getMinimumSize(int rows, int columns);
  24. /**
  25. * DEPRECATED: Replaced by insert(String, int).
  26. */
  27. void insertText(String txt, int pos);
  28. /**
  29. * DEPRECATED: Replaced by ReplaceRange(String, int, int).
  30. */
  31. void replaceText(String txt, int start, int end);
  32. /**
  33. * DEPRECATED: Replaced by getPreferredSize(int, int).
  34. */
  35. Dimension preferredSize(int rows, int cols);
  36. /**
  37. * DEPRECATED: Replaced by getMinimumSize(int, int).
  38. */
  39. Dimension minimumSize(int rows, int cols);
  40. }