Package com.treemap.swing.tagcloud
Class SwingWord
java.lang.Object
com.treemap.swing.tagcloud.SwingWord
- All Implemented Interfaces:
Word,Comparable<Word>
-
Constructor Summary
ConstructorsConstructorDescriptionSwingWord(Graphics2D g, String text, double size, MutableTreeMapNode treeMapNode, Orientation orientation, int nSubdivisions) -
Method Summary
Modifier and TypeMethodDescriptionintdoublegetSize()getText()booleanintersects(Word otherWord) voidsetLocation(double xPos, double yPos) voidsetLocation(Point2d position) toString()
-
Constructor Details
-
SwingWord
public SwingWord(Graphics2D g, String text, double size, MutableTreeMapNode treeMapNode, Orientation orientation, int nSubdivisions)
-
-
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
-