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