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 TypeMethodDescriptionintdoublegetSize()getText()booleanintersects(Word otherWord) voidsetLocation(double xPos, double yPos) voidsetLocation(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:
intersectsin interfaceWord
-
getSize
public double getSize() -
getText
-
getTreeMapNode
- Specified by:
getTreeMapNodein interfaceWord
-
compareTo
- Specified by:
compareToin interfaceComparable<Word>
-
setLocation
public void setLocation(double xPos, double yPos) -
getShapeForLayout
- Specified by:
getShapeForLayoutin interfaceWord
-
setLocation
- Specified by:
setLocationin interfaceWord
-
toString
-