public void layout (Graphics2D gfx, SceneObject tipFor, Rectangle boundary)
    {
        layout(gfx, ICON_PAD, EXTRA_PAD);
        bounds = new Rectangle(_size);

        // locate the most appropriate tip layout
        for (int ii = 0, ll = _layouts.size(); ii < ll; ii++) {
            LayoutReg reg = _layouts.get(ii);
            String act = tipFor.info.action == null ? "" : tipFor.info.action;
            if (act.startsWith(reg.prefix)) {
                reg.layout.layout(gfx, boundary, tipFor, this);
                break;
            }
        }
    }
public void layout ( Graphics2D gfx , SceneObject tipFor , Rectangle boundary ) { layout ( gfx , ICON_PAD , EXTRA_PAD ) ; bounds = new Rectangle ( _size ) ; for ( int ii = 0 , ll = _layouts . size ( ) ; ii < ll ; ii ++ ) { LayoutReg reg = _layouts . get ( ii ) ; String act = tipFor . info . action == null ? "" : tipFor . info . action ; if ( act . startsWith ( reg . prefix ) ) { reg . layout . layout ( gfx , boundary , tipFor , this ) ; break ; } } }
Called to initialize the tip so that it can be painted.

@param tipFor the scene object that we're a tip for.
@param boundary the boundary of all displayable space.