All Packages  This Package  Class Hierarchy  Class Search  Index

Class graphomat.graph.Node
java.lang.Object
   |
   +----java.util.Observable
           |
           +----graphomat.util.ObservSerializable
                   |
                   +----graphomat.graph.Node

  Summary

public class  Node
     extends graphomat.util.ObservSerializable
{
          // Fields 3
     public static final Object DELETED;
     public static final Object MOVED;
     public static final Object STATECHANGE;

          // Constructors 2
     public Node();
     public Node(double, double);

          // Methods 31
     public boolean anyConnections();
     public void connect(Node);
     public void disconnect(Node);
     public void disconnectAll();
     public Enumeration getConnectEnum();
     public Edge getEdge(Node);
     public Enumeration getEdgeEnum();
     public boolean getNotifyMove();
     public double getax();
     public double getay();
     public double getx();
     public double gety();
     public boolean isConnected(Node);
     public boolean isSelected();
     public void move(double, double);
     public void movex(double);
     public void movey(double);
     public void notifyObservers(Object);
     public boolean samePlace(double, double);
     public boolean samePlace(Node);
     public void set(double, double);
     public void setNotifyMove(boolean);
     public void setSelected(boolean);
     public void setax(double);
     public void setay(double);
     public void setx(double);
     public void sety(double);
     public void swap(Node);
     public void swapSelect();
     public String toSimpleString();
     public String toString();
}

Data class for a Node.


  Cross Reference

Returned By:
Edge.getn1(), Edge.getn2(), Edge.otherThan(), Graph.getFirstNodeAt()





  Fields

· DELETED

Summary  |  Top
   public static final Object DELETED


· MOVED

Summary  |  Top
   public static final Object MOVED


· STATECHANGE

Summary  |  Top
   public static final Object STATECHANGE


  Constructors

· Node

Summary  |  Top

   public Node() 


· Node

Summary  |  Top
   public Node(double x, 
               double y) 


  Methods

· swapSelect

Summary  |  Top
   public void swapSelect() 

Switches selection State on if off and visa versa.



· setSelected

Summary  |  Top
   public void setSelected(boolean b) 

Sets if Node State for selection.



· isSelected

Summary  |  Top
   public boolean isSelected() 

Return true if selected.



· notifyObservers

Summary  |  Top
   public void notifyObservers(Object arg) 

Internal Messagedelivering System.

Overrides:
notifyObservers in class Observable


· setx

Summary  |  Top
   public void setx(double x) 

Sets a new value for the x-coordiante of the node);



· sety

Summary  |  Top
   public void sety(double y) 

Sets a new value for the y-coordiante of the node);



· movex

Summary  |  Top
   public void movex(double x) 

Add a value for the x-coordiante of the node);



· movey

Summary  |  Top
   public void movey(double y) 

Add a value for the y-coordiante of the node);



· set

Summary  |  Top
   public void set(double x, 
                   double y) 

Sets a new values for the node.



· move

Summary  |  Top
   public void move(double x, 
                    double y) 

Adds values for the node.



· swap

Summary  |  Top
   public void swap(Node n) 

Swaps it's location with another Node.



· setNotifyMove

Summary  |  Top
   public void setNotifyMove(boolean b) 


· getNotifyMove

Summary  |  Top
   public boolean getNotifyMove() 


· getx

Summary  |  Top
   public double getx() 

Returns the x-coordiante of the node.



· gety

Summary  |  Top
   public double gety() 

Returns the y-coordiante of the node.



· setax

Summary  |  Top
   public void setax(double ax) 

Sets speed in x-axis.



· setay

Summary  |  Top
   public void setay(double ay) 

Sets speed in y-axis.



· getax

Summary  |  Top
   public double getax() 

gets speed in x-axis.



· getay

Summary  |  Top
   public double getay() 

Sets speed in y-axis.



· samePlace

Summary  |  Top
   public boolean samePlace(Node otherNode) 

Tests if the other node stands at the same Place the node do.



· samePlace

Summary  |  Top
   public boolean samePlace(double x, 
                            double y) 

Tests if the node stands at the given place.



· isConnected

Summary  |  Top
   public boolean isConnected(Node n) 

Tests if the node is connectedto the requested node..



· anyConnections

Summary  |  Top
   public boolean anyConnections() 

Tests if the node is connected.



· getEdge

Summary  |  Top
   public Edge getEdge(Node n) 

Returns the Edge responsible for the connection between the two nodes.



· connect

Summary  |  Top
   public void connect(Node n) 

Connects the node with the give node.



· disconnect

Summary  |  Top
   public void disconnect(Node n) 

Disconnects the node with the give node.



· disconnectAll

Summary  |  Top
   public void disconnectAll() 

Clears all Connections.



· getConnectEnum

Summary  |  Top
   public Enumeration getConnectEnum() 

Returns Enumeration of all connected Nodes.



· getEdgeEnum

Summary  |  Top
   public Enumeration getEdgeEnum() 

Returns Enumeration of all connected Node's Edges.



· toSimpleString

Summary  |  Top
   public String toSimpleString() 

Returns a String containing the x- and y-coordiantes of the node.



· toString

Summary  |  Top
   public String toString() 

Returns a String with all connected nodes and the node itself.

Overrides:
toString in class Object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7