import java.awt.*;

/**
 * An encapsulation of a String with a location.
 * 
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class StringContent
{
  private Point    location;
  private String   text;  

  /**
   * Explicit Value Constructor.
   * 
   * @param s  The String
   * @param x  The x-coordinate
   * @param y  The y-coordinate
   */
  public StringContent(String s, int x, int y)
  {
    this.text = s;
    this.location = new Point(x, y);
  }

  /**
   * Get the location.
   * 
   * @return The location.
   */
  public Point getLocation()
  {
    return location;
  }

  /**
   * Get the text.
   * 
   * @return The text
   */
  public String getText()
  {
    return text;
  }
}