Class AbstractLayout3DPC.AbstractNode<N extends AbstractLayout3DPC.AbstractNode<N>>
- java.lang.Object
-
- elki.visualization.parallel3d.layout.AbstractLayout3DPC.AbstractNode<N>
-
- Type Parameters:
N
- Final node type
- All Implemented Interfaces:
Layout.Node
- Direct Known Subclasses:
CompactCircularMSTLayout3DPC.Node
,MultidimensionalScalingMSTLayout3DPC.Node
,SimpleCircularMSTLayout3DPC.Node
- Enclosing class:
- AbstractLayout3DPC<N extends Layout.Node>
public static class AbstractLayout3DPC.AbstractNode<N extends AbstractLayout3DPC.AbstractNode<N>> extends java.lang.Object implements Layout.Node
Abstract node implementation.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description AbstractNode(int dim, java.util.List<N> children)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description N
getChild(int off)
Get a child node.int
getDim()
Get the dimension represented by this node.double
getX()
Get layout X position.double
getY()
Get layout Y position.int
numChildren()
Get the number of children.
-
-
-
Field Detail
-
dim
public int dim
Dimension represented by this node.
-
x
public double x
Coordinates
-
y
public double y
Coordinates
-
children
public java.util.List<N extends AbstractLayout3DPC.AbstractNode<N>> children
Children
-
-
Constructor Detail
-
AbstractNode
public AbstractNode(int dim, java.util.List<N> children)
Constructor.- Parameters:
dim
- Dimension numberchildren
- Children
-
-
Method Detail
-
getDim
public int getDim()
Description copied from interface:Layout.Node
Get the dimension represented by this node.- Specified by:
getDim
in interfaceLayout.Node
- Returns:
- Dimension
-
getX
public double getX()
Description copied from interface:Layout.Node
Get layout X position.- Specified by:
getX
in interfaceLayout.Node
- Returns:
- X position
-
getY
public double getY()
Description copied from interface:Layout.Node
Get layout Y position.- Specified by:
getY
in interfaceLayout.Node
- Returns:
- Y position
-
getChild
public N getChild(int off)
Description copied from interface:Layout.Node
Get a child node.- Specified by:
getChild
in interfaceLayout.Node
- Parameters:
off
- offset- Returns:
- Child node.
-
numChildren
public int numChildren()
Description copied from interface:Layout.Node
Get the number of children.- Specified by:
numChildren
in interfaceLayout.Node
- Returns:
- Number of children
-
-