Top Description Fields Constructors Methods
org.abego.treelayout.util

public Class FixedNodeExtentProvider<T>

extends Object
implements NodeExtentProvider<T>
Class Inheritance
All Implemented Interfaces
org.abego.treelayout.NodeExtentProvider
Type Parameters
<T>
Type of elements used as nodes in the tree
Static Imports
org.abego.treelayout.internal.util.Contract.checkArg

A NodeExtentProvider returning the same width and height for each node.
Author
Udo Borkowski ([email protected])

Field Summary

Modifier and TypeField and Description
private final double
private final double

Constructor Summary

AccessConstructor and Description
public
FixedNodeExtentProvider(double
[default=0]
width
,
double
[default=0]
height
)

Specifies the constants to be used as the width and height of the nodes.

public

Method Summary

Modifier and TypeMethod and Description
public double
getHeight(T
 
treeNode
)

Implements org.abego.treelayout.NodeExtentProvider.getHeight.

Returns the height of the given treeNode.
public double
getWidth(T
 
treeNode
)

Implements org.abego.treelayout.NodeExtentProvider.getWidth.

Returns the width of the given treeNode.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

heightback to summary
private final double height
widthback to summary
private final double width

Constructor Detail

FixedNodeExtentProviderback to summary
public FixedNodeExtentProvider(double width, double height)

Specifies the constants to be used as the width and height of the nodes.

Parameters
width:double

[default=0]

height:double

[default=0]

FixedNodeExtentProviderback to summary
public FixedNodeExtentProvider()

see FixedNodeExtentProvider(double, double)

Method Detail

getHeightback to summary
public double getHeight(T treeNode)

Implements org.abego.treelayout.NodeExtentProvider.getHeight.

Doc from org.abego.treelayout.NodeExtentProvider.getHeight.

Returns the height of the given treeNode.

Parameters
treeNode:T

 

Returns:double

[result >= 0]

Annotations
@Override
getWidthback to summary
public double getWidth(T treeNode)

Implements org.abego.treelayout.NodeExtentProvider.getWidth.

Doc from org.abego.treelayout.NodeExtentProvider.getWidth.

Returns the width of the given treeNode.

Parameters
treeNode:T

 

Returns:double

[result >= 0]

Annotations
@Override