com.threerings.miso.client
Interface SceneObjectIndicator

All Known Implementing Classes:
SceneObjectTip

public interface SceneObjectIndicator

Draws something to indicate a fascinating, clickable object in a scene.


Method Summary
 Rectangle getBounds()
          Returns the bounds of the indicator when drawn.
 boolean isLaidOut()
          Returns whether the indicator has already been laid out (and thus doesn't need to be again)
 void layout(Graphics2D gfx, SceneObject key, Rectangle viewBounds)
          Positions the indicator in the scene in relation to key
 void paint(Graphics2D gfx)
          Paints the indicator in the scene.
 void removed()
          Called when the indicator is removed from the scene.
 void update(Icon icon, String tiptext)
          Updates the Icon and text for the indicator.
 

Method Detail

getBounds

Rectangle getBounds()
Returns the bounds of the indicator when drawn.


layout

void layout(Graphics2D gfx,
            SceneObject key,
            Rectangle viewBounds)
Positions the indicator in the scene in relation to key


isLaidOut

boolean isLaidOut()
Returns whether the indicator has already been laid out (and thus doesn't need to be again)


removed

void removed()
Called when the indicator is removed from the scene.


paint

void paint(Graphics2D gfx)
Paints the indicator in the scene. Always called after layout(Graphics2D, SceneObject, Rectangle)


update

void update(Icon icon,
            String tiptext)
Updates the Icon and text for the indicator.