org.simnet.layouts
Class LayersLayout

java.lang.Object
  extended by org.simnet.layouts.LayersLayout
All Implemented Interfaces:
Layout

public class LayersLayout
extends Object
implements Layout

Lay neurons out in successive layers. Assumes a complex network with subnetworks.

Author:
jyoshimi

Field Summary
static int HORIZONTAL
          Lay neurons out horizontally.
static int VERTICAL
          Lay neurons out vertically.
 
Constructor Summary
LayersLayout(double hspacing, double vspacing, int layout)
          Lay out a complex network into layers.
 
Method Summary
 String getLayoutName()
           
 void layoutNeurons(Network network)
          Perform the layout.
 void setInitialLocation(Point2D initialPoint)
          Set the initial position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERTICAL

public static final int VERTICAL
Lay neurons out vertically.

See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
Lay neurons out horizontally.

See Also:
Constant Field Values
Constructor Detail

LayersLayout

public LayersLayout(double hspacing,
                    double vspacing,
                    int layout)
Lay out a complex network into layers.

Parameters:
hspacing -
vspacing -
layout -
Method Detail

layoutNeurons

public void layoutNeurons(Network network)
Description copied from interface: Layout
Perform the layout.

Specified by:
layoutNeurons in interface Layout
Parameters:
network - reference to network whose nodes should be laid out
See Also:
Layout

setInitialLocation

public void setInitialLocation(Point2D initialPoint)
Description copied from interface: Layout
Set the initial position.

Specified by:
setInitialLocation in interface Layout
Parameters:
initialPoint - initial position
See Also:
Layout

getLayoutName

public String getLayoutName()
Specified by:
getLayoutName in interface Layout
Returns:
the name of this layout type
See Also:
Layout