Package com.treemap.tagcloud
Class DefaultWord
java.lang.Object
com.treemap.tagcloud.DefaultWord
- All Implemented Interfaces:
Word
,Comparable<Word>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWord
(TextShapeFactory textShapeFactory, String text, double size, MutableTreeMapNode treeMapNode, Orientation orientation, int nSubdivisions, com.macrofocus.igraphics.CPFont font) -
Method Summary
Modifier and TypeMethodDescriptionint
double
getSize()
getText()
boolean
intersects
(Word otherWord) void
setLocation
(double xPos, double yPos) void
setLocation
(Point2d position) toString()
-
Constructor Details
-
DefaultWord
public DefaultWord(TextShapeFactory textShapeFactory, String text, double size, MutableTreeMapNode treeMapNode, Orientation orientation, int nSubdivisions, com.macrofocus.igraphics.CPFont font)
-
-
Method Details
-
intersects
- Specified by:
intersects
in interfaceWord
-
getSize
public double getSize() -
getText
-
getTreeMapNode
- Specified by:
getTreeMapNode
in interfaceWord
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Word>
-
setLocation
public void setLocation(double xPos, double yPos) -
getShapeForLayout
- Specified by:
getShapeForLayout
in interfaceWord
-
setLocation
- Specified by:
setLocation
in interfaceWord
-
toString
-