Interface ILayouter

All Known Implementing Classes:
DefaultLayouter

public interface ILayouter
  • Method Summary

    Modifier and Type
    Method
    Description
    getInitialOffset(Word word, Rectangle cloudArea)
    Calculates the initial offset of the given word, within the bounds of the specified rectangle.
    boolean
    layout(Point initial, Word word, Rectangle cloudArea, CloudMatrix cloudMatrix)
    Places the given word within the defined rectangle, starting at the initial position.
    void
    setOption(String optionName, Object object)
    Set Layouter-specific options.
  • Method Details

    • layout

      boolean layout(Point initial, Word word, Rectangle cloudArea, CloudMatrix cloudMatrix)
      Places the given word within the defined rectangle, starting at the initial position.
      Parameters:
      initial -
      word -
      cloudArea -
      cloudMatrix -
    • getInitialOffset

      Point getInitialOffset(Word word, Rectangle cloudArea)
      Calculates the initial offset of the given word, within the bounds of the specified rectangle. The layout algorithm will try to find a matching position around the initial offset.
      Parameters:
      word -
      cloudArea -
    • setOption

      void setOption(String optionName, Object object)
      Set Layouter-specific options. See DefaultLayouter as an example.
      Parameters:
      optionName -
      object -