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 NgetChild(int off)Get a child node.intgetDim()Get the dimension represented by this node.doublegetX()Get layout X position.doublegetY()Get layout Y position.intnumChildren()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.NodeGet the dimension represented by this node.- Specified by:
getDimin interfaceLayout.Node- Returns:
- Dimension
-
getX
public double getX()
Description copied from interface:Layout.NodeGet layout X position.- Specified by:
getXin interfaceLayout.Node- Returns:
- X position
-
getY
public double getY()
Description copied from interface:Layout.NodeGet layout Y position.- Specified by:
getYin interfaceLayout.Node- Returns:
- Y position
-
getChild
public N getChild(int off)
Description copied from interface:Layout.NodeGet a child node.- Specified by:
getChildin interfaceLayout.Node- Parameters:
off- offset- Returns:
- Child node.
-
numChildren
public int numChildren()
Description copied from interface:Layout.NodeGet the number of children.- Specified by:
numChildrenin interfaceLayout.Node- Returns:
- Number of children
-
-