com.threerings.miso.client
Class SceneObjectTip.DefaultLayout

java.lang.Object
  extended by com.threerings.miso.client.SceneObjectTip.DefaultLayout
All Implemented Interfaces:
SceneObjectTip.TipLayout
Enclosing class:
SceneObjectTip

protected static class SceneObjectTip.DefaultLayout
extends Object
implements SceneObjectTip.TipLayout

Our default tip layout algorithm which centers the tip in the bounds of the object in question.


Constructor Summary
protected SceneObjectTip.DefaultLayout()
           
 
Method Summary
 void layout(Graphics2D gfx, Rectangle boundary, SceneObject tipFor, SceneObjectTip tip)
          Position the supplied tip relative to the supplied scene object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SceneObjectTip.DefaultLayout

protected SceneObjectTip.DefaultLayout()
Method Detail

layout

public void layout(Graphics2D gfx,
                   Rectangle boundary,
                   SceneObject tipFor,
                   SceneObjectTip tip)
Description copied from interface: SceneObjectTip.TipLayout
Position the supplied tip relative to the supplied scene object.

Specified by:
layout in interface SceneObjectTip.TipLayout