Sha256: 6fe2578befc3632d9e6912d204d6ed906a5b6f6983f0eb1e22919418bb0bd15f

Contents?: true

Size: 1.39 KB

Versions: 9

Compression:

Stored size: 1.39 KB

Contents

package wordcram;

public enum WordSkipReason {
	
	/**
     * Skip Reason: the Word was skipped because the WordCram had already drawn
     * the {@link WordCram#maxNumberOfWordsToDraw(int)}.
     * It's really about the Word's rank, its position in the list once the
     * words are sorted by weight: if its rank is greater than the value passed
     * to maxNumberOfWordsToDraw(), then it'll be skipped, and this will be the
     * reason code.
     */
	WAS_OVER_MAX_NUMBER_OF_WORDS("we already reached the maxNumberOfWordsToDraw threshold"),
	
	/**
     * Skip Reason: the Word's shape was smaller than
     * {@link WordCram#minShapeSize(int)}.
     * WordCram will only render words so small, for performance reasons. You
     * can set the minimum Word shape size via
     * {@link WordCram#minShapeSize(int)}.
     */
    SHAPE_WAS_TOO_SMALL("it was below the minShapeSize threshold"),
    
    /**
     * Skip Reason: WordCram tried placing the Word, but it couldn't find a
     * clear spot. The {@link WordNudger} nudged it around a bunch (according
     * to {@link WordCram#maxAttemptsToPlaceWord(int)}, if it was set), but
     * there was just no room.
     */
    NO_SPACE("there wasn't enough space near where you wanted it placed");

    String reason;

    WordSkipReason(String reason) {
        this.reason = reason;
    }

        @Override
    public String toString() {
        return reason;
    }
}

Version data entries

9 entries across 9 versions & 1 rubygems

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