Package com.macrofocus.treemap.tagcloud
Class DefaultWord
- java.lang.Object
-
- com.macrofocus.treemap.tagcloud.DefaultWord
-
-
Constructor Summary
Constructors Constructor Description DefaultWord(TextShapeFactory textShapeFactory, java.lang.String text, double size, MutableTreeMapNode treeMapNode, Orientation orientation, int nSubdivisions, com.macrofocus.igraphics.CPFont font)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Word anotherWord)
TextShape
getShapeForLayout()
double
getSize()
java.lang.String
getText()
MutableTreeMapNode
getTreeMapNode()
boolean
intersects(Word otherWord)
void
setLocation(double xPos, double yPos)
void
setLocation(Point2d position)
java.lang.String
toString()
-
-
-
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 interfaceWord
-
getSize
public double getSize()
-
getText
public java.lang.String getText()
-
getTreeMapNode
public MutableTreeMapNode getTreeMapNode()
- Specified by:
getTreeMapNode
in interfaceWord
-
compareTo
public int compareTo(Word anotherWord)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Word>
-
setLocation
public void setLocation(double xPos, double yPos)
-
getShapeForLayout
public TextShape getShapeForLayout()
- Specified by:
getShapeForLayout
in interfaceWord
-
setLocation
public void setLocation(Point2d position)
- Specified by:
setLocation
in interfaceWord
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-