Class DefaultWord

  • All Implemented Interfaces:
    Word, java.lang.Comparable<Word>

    public class DefaultWord
    extends java.lang.Object
    implements Word
    • Constructor Detail

      • DefaultWord

        public DefaultWord​(TextShapeFactory textShapeFactory,
                           java.lang.String text,
                           double size,
                           MutableTreeMapNode treeMapNode,
                           Orientation orientation,
                           int nSubdivisions,
                           com.macrofocus.igraphics.CPFont font)
    • Method Detail

      • intersects

        public boolean intersects​(Word otherWord)
        Specified by:
        intersects in interface Word
      • getSize

        public double getSize()
      • getText

        public java.lang.String getText()
      • compareTo

        public int compareTo​(Word anotherWord)
        Specified by:
        compareTo in interface java.lang.Comparable<Word>
      • setLocation

        public void setLocation​(double xPos,
                                double yPos)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object