{
for (
int sourceLayerIndex = 0;
sourceLayerIndex < network.getLayers().size(); ++sourceLayerIndex)
{
Layer sourceLayer = network.getLayers().get(sourceLayerIndex);
for (int i = 0; i < sourceLayer.getNeurons().size(); ++i)
{
Neuron sourceNeuron = sourceLayer.getNeurons().get(i);
String layerString = (i == 0) ? "" + sourceLayerIndex : emptyString;
String neuronString = "" + sourceNeuronkIndex;
Color layerColor = (sourceLayerIndex % 2 == 0) ? CellColor.EvenClass.getColor() :
CellColor.OddClass.getColor();
Color neuronColor = CellColor.DefaultCell.getColor();
row1Colors.add(layerColor);
row2Colors.add(neuronColor);
layersRow1.add(layerString);
neuronsRow2.add(neuronString);
Vector<Object> contentRow = new Vector<Object>();
contentRow.add(layerString);
contentRow.add(neuronString);
List<Color> rowColors = new ArrayList<Color>();
rowColors.add(layerColor);
rowColors.add(neuronColor);
for (
int destLayerIndex = 0;
destLayerIndex < network.getLayers().size(); ++destLayerIndex)
{
Layer destLayer = network.getLayers().get(destLayerIndex);
for (Neuron destNeuron : destLayer.getNeurons())
{
double w = 0.0;
Color connectionColor = CellColor.DefaultCell.getColor();
Collection<Synapse> synapses = CollectionUtils