// (c) Tuomas J. Lukka package org.nongnu.libvob.buoy; /** An interface for objects that determine the real size to * use for a buoy. */ public interface BuoySizer { /** Get the size and scale * a buoy should be shown at (at its maximum, * nearest to the focus), * @param w The pixel width desired by the buoy * @param h The pixel height desired by the buoy * @param whout The output width and height * @return The scale to use (width and height are *before* * scaling, i.e. (400,400) and .5 means real size (200,200) */ float getBuoySize(float w, float h, float[] whout); }