norsys.netica
Class NodeVisual

java.lang.Object
  |
  +--norsys.netica.NodeVisual

public class NodeVisual
extends java.lang.Object

An object representing the visual aspects of a Netica Object displayed in the Netica Application.

Since:
2.12

Method Summary
 double[] getPosition()
          Retrieves as elements 0 and 1 respectively, the x,y coordinates of the center of this node, as it would appear in a visual display (e.g., in Netica Application).
 void setPosition(double x, double y)
          Moves this node so that its center is at coordinates (x, y), for any visual display (e.g., in Netica Application).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPosition

public double[] getPosition()
                     throws NeticaException
Retrieves as elements 0 and 1 respectively, the x,y coordinates of the center of this node, as it would appear in a visual display (e.g., in Netica Application).

This is useful when directly programming Netica Application , or before writing a net to a file that will later be read by Netica Application.

Version:

Versions 2.07 and later have this function.
In the C Version of the API, this function is called GetNodeVisPosition_bn.
See Also:
setPosition  Sets it


setPosition

public void setPosition(double x,
                        double y)
                 throws NeticaException
Moves this node so that its center is at coordinates (x, y), for any visual display (e.g., in Netica Application).

Version:
Versions 2.07 and later have this function.
In the C Version of the API, this function is called SetNodeVisPosition_bn.
See Also:
getPosition  Retrieve coordinates

Parameters:
x - desired horizontal pixel value
y - desired vertical pixel value