Class FixedNodeExtentProvider<T>
java.lang.Object
org.abego.treelayout.util.FixedNodeExtentProvider<T>
- Type Parameters:
T- Type of elements used as nodes in the tree
- All Implemented Interfaces:
NodeExtentProvider<T>
A
NodeExtentProvider returning the same width and height for each
node.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFixedNodeExtentProvider(double width, double height) Specifies the constants to be used as the width and height of the nodes. -
Method Summary
-
Field Details
-
width
private final double width -
height
private final double height
-
-
Constructor Details
-
FixedNodeExtentProvider
public FixedNodeExtentProvider(double width, double height) Specifies the constants to be used as the width and height of the nodes.- Parameters:
width- [default=0]height- [default=0]
-
FixedNodeExtentProvider
public FixedNodeExtentProvider()
-
-
Method Details
-
getWidth
Description copied from interface:NodeExtentProviderReturns the width of the given treeNode.- Specified by:
getWidthin interfaceNodeExtentProvider<T>- Parameters:
treeNode-- Returns:
- [result >= 0]
-
getHeight
Description copied from interface:NodeExtentProviderReturns the height of the given treeNode.- Specified by:
getHeightin interfaceNodeExtentProvider<T>- Parameters:
treeNode-- Returns:
- [result >= 0]
-