com.threerings.chat
Interface ChatOverlay.InfoProvider

Enclosing class:
ChatOverlay

public static interface ChatOverlay.InfoProvider

An interface for providing information about what is under the overlay.


Method Summary
 void getAvoidables(Name speaker, List<Shape> high, List<Shape> low)
          Get a list of Shape objects that we should attempt to avoid when laying out the chat.
 Point getSpeaker(Name speaker)
          Get a point which is approximately the origin of the speaker, or null if unknown.
 

Method Detail

getAvoidables

void getAvoidables(Name speaker,
                   List<Shape> high,
                   List<Shape> low)
Get a list of Shape objects that we should attempt to avoid when laying out the chat. The ChatOverlay will not modify these shape objects. The easy thing to do would be to just return java.awt.Rectangle objects.

Parameters:
speaker - The username of the speaking player, or null.
high - Add to this list shapes that should never be drawn on.
low - If non-null, add to this list shapes that can be drawn on if needed.

getSpeaker

Point getSpeaker(Name speaker)
Get a point which is approximately the origin of the speaker, or null if unknown.