Package org.abego.treelayout.demo
Class TextInBoxNodeExtentProvider
- java.lang.Object
-
- org.abego.treelayout.demo.TextInBoxNodeExtentProvider
-
- All Implemented Interfaces:
NodeExtentProvider<TextInBox>
public class TextInBoxNodeExtentProvider extends java.lang.Object implements NodeExtentProvider<TextInBox>
ANodeExtentProvider
for nodes of typeTextInBox
.As one would expect this NodeExtentProvider returns the width and height as specified with each TextInBox.
-
-
Constructor Summary
Constructors Constructor Description TextInBoxNodeExtentProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getHeight(TextInBox treeNode)
Returns the height of the given treeNode.double
getWidth(TextInBox treeNode)
Returns the width of the given treeNode.
-
-
-
Method Detail
-
getWidth
public double getWidth(TextInBox treeNode)
Description copied from interface:NodeExtentProvider
Returns the width of the given treeNode.- Specified by:
getWidth
in interfaceNodeExtentProvider<TextInBox>
- Parameters:
treeNode
-- Returns:
- [result >= 0]
-
getHeight
public double getHeight(TextInBox treeNode)
Description copied from interface:NodeExtentProvider
Returns the height of the given treeNode.- Specified by:
getHeight
in interfaceNodeExtentProvider<TextInBox>
- Parameters:
treeNode
-- Returns:
- [result >= 0]
-
-