edu.northwestern.at.wordhoard.model.text
Class LocationAndCharset

java.lang.Object
  extended by edu.northwestern.at.wordhoard.model.text.LocationAndCharset

public class LocationAndCharset
extends java.lang.Object

A text location and character set.


Constructor Summary
LocationAndCharset(int index, int offset)
          Creates a new Roman character set location.
LocationAndCharset(int index, int offset, byte charset)
          Creates a new location and character set.
 
Method Summary
 byte getCharset()
          Gets the character set.
 TextLocation getLocation()
          Gets the location.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocationAndCharset

public LocationAndCharset(int index,
                          int offset,
                          byte charset)
Creates a new location and character set.

Parameters:
index - Line index.
offset - Character offset in line.
charset - Character set.

LocationAndCharset

public LocationAndCharset(int index,
                          int offset)
Creates a new Roman character set location.

Parameters:
index - Line index.
offset - Character offset in line.
Method Detail

getLocation

public TextLocation getLocation()
Gets the location.

Returns:
Location.

getCharset

public byte getCharset()
Gets the character set.

Returns:
Characer set.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
The string representation.