T
- Type of elements used as nodes in the treepublic class FixedNodeExtentProvider<T> extends Object implements NodeExtentProvider<T>
NodeExtentProvider
returning the same width and height for each
node.Constructor and Description |
---|
FixedNodeExtentProvider()
|
FixedNodeExtentProvider(double width,
double height)
Specifies the constants to be used as the width and height of the nodes.
|
Modifier and Type | Method and Description |
---|---|
double |
getHeight(T treeNode)
Returns the height of the given treeNode.
|
double |
getWidth(T treeNode)
Returns the width of the given treeNode.
|
public FixedNodeExtentProvider(double width, double height)
width
- [default=0]height
- [default=0]public FixedNodeExtentProvider()
public double getWidth(T treeNode)
NodeExtentProvider
getWidth
in interface NodeExtentProvider<T>
treeNode
- public double getHeight(T treeNode)
NodeExtentProvider
getHeight
in interface NodeExtentProvider<T>
treeNode
- Copyright © 2019. All Rights Reserved.