Sha256: 6039a8a16ce026dbef56770acc774f5d7bbac33df66f3c9ce2c64fec6ed5f593

Contents?: true

Size: 507 Bytes

Versions: 8

Compression:

Stored size: 507 Bytes

Contents

package wordcram;

/**
 * A WordAngler tells WordCram what angle to draw a word at, in radians.
 * <p>
 * Some useful implementations are available in {@link Anglers}.
 *
 * @author Dan Bernier
 */
public interface WordAngler {

    /**
     * What angle should this {@link Word} be rotated at?
     *
     * @param word
     *            The Word that WordCram is about to draw, and wants to rotate
     * @return the rotation angle for the Word, in radians
     */
    public float angleFor(Word word);
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_wordcram-2.1.1 src/wordcram/WordAngler.java
ruby_wordcram-2.1.0 src/wordcram/WordAngler.java
ruby_wordcram-2.0.6 src/wordcram/WordAngler.java
ruby_wordcram-2.0.5 src/wordcram/WordAngler.java
ruby_wordcram-2.0.4 src/wordcram/WordAngler.java
ruby_wordcram-2.0.3 src/wordcram/WordAngler.java
ruby_wordcram-2.0.2 src/wordcram/WordAngler.java
ruby_wordcram-2.0.0 src/wordcram/WordAngler.java