public interface WordPlacer
A WordPlacer only suggests: the WordCram will try to place the Word where the WordPlacer tells it to, but if the Word overlaps other Words, a WordNudger will suggest different near-by spots for the Word until it fits, or until the WordCram gives up.
Some useful implementations are available in Placers.
processing.core.PVector place(Word word, int wordIndex, int wordsCount, int wordImageWidth, int wordImageHeight, int fieldWidth, int fieldHeight)
Word be drawn on the field?word - The Word to place. A typical WordPlacer might use the Word's
weight.wordIndex - The index (rank) of the Word to place. Since this isn't a
property of the Word, it's passed in as well.wordsCount - The total number of words. Gives a context to wordIndex:
"Word {wordIndex} of {wordsCount}".wordImageWidth - The width of the word image.wordImageHeight - The height of the word image.fieldWidth - The width of the field.fieldHeight - The height of the field.