com.hp.hpl.guess
Class Node

java.lang.Object
  extended byedu.uci.ics.jung.utils.UserDataDelegate
      extended byedu.uci.ics.jung.graph.impl.AbstractElement
          extended byedu.uci.ics.jung.graph.impl.AbstractArchetypeVertex
              extended byedu.uci.ics.jung.graph.impl.AbstractSparseVertex
                  extended byedu.uci.ics.jung.graph.impl.SimpleSparseVertex
                      extended byedu.uci.ics.jung.graph.impl.SparseVertex
                          extended bycom.hp.hpl.guess.Node
All Implemented Interfaces:
ArchetypeVertex, Cloneable, Comparable, Element, GraphElement, UserDataContainer, Vertex

public class Node
extends SparseVertex
implements Comparable, GraphElement


Nested Class Summary
 
Nested classes inherited from class edu.uci.ics.jung.utils.UserDataContainer
UserDataContainer.CopyAction
 
Constructor Summary
Node(int type, double x, double y, double width, double height, String name)
           
Node(String name)
           
 
Method Summary
 PySequence __anye__(Node node)
           
 PySequence __anye__(PySequence sequence)
           
 PySequence __bde__(Node node)
           
 PySequence __bde__(PySequence sequence)
           
 Object __getattr__(String fieldName)
           
 PyObject __getitem__(int key)
           
 PyObject __getitem__(PyObject key)
           
 PySequence __lde__(Node node)
           
 PySequence __lde__(PySequence sequence)
           
 PySequence __rde__(Node node)
           
 PySequence __rde__(PySequence sequence)
           
 void __setattr__(String name, Object value)
           
 PySequence __sub__(Node node)
           
 PySequence __sub__(PySequence sequence)
           
 int compareTo(Object object)
           
 List dijkstraShortestPath(Node dest)
           
 void endMove(double x1, double y1)
           
 Object getAttrDB(String fieldName)
          don't use this unless you know what you're doing...
 double getHeight()
          returns the height of the node
 String getName()
           
 GraphElementListener getRep()
          returns the rep
 double getWidth()
          returns the width of the node
 double getX()
          returns the xlocation of the node
 double getY()
          returns the ylocation of the node
 void hide()
           
 void move(double x1, double y1)
           
 void readjustEdges()
           
 void setHeight(double height)
           
 void setLocation(double x1, double y1)
           
 void setLocation(double x1, double y1, double width, double height)
           
 void setRep(NodeListener rep)
          sets the rep don't call this unless you know what you're doing, you could separate the nodes from the visualization
 void setWidth(double width)
           
 void setX(double x)
           
 void setY(double y)
           
 void show()
           
 void startMove(double x1, double y1)
           
 String toString()
           
 List unweightedShortestPath(Node dest)
           
 void updateColumn(String fName, Object o)
           
 void updateDegrees()
           
 Map values()
           
 
Methods inherited from class edu.uci.ics.jung.graph.impl.SparseVertex
findEdge, findEdgeSet, getInEdges, getOutEdges
 
Methods inherited from class edu.uci.ics.jung.graph.impl.SimpleSparseVertex
getPredecessors, getSuccessors, inDegree, isDest, isPredecessorOf, isSource, isSuccessorOf, numPredecessors, numSuccessors, outDegree
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractSparseVertex
copy, findEdge, findEdgeSet
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractArchetypeVertex
degree, equals, getEqualVertex, getEquivalentVertex, getIncidentEdges, getIncidentElements, getNeighbors, isIncident, isNeighborOf, numNeighbors
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractElement
getGraph, hashCode
 
Methods inherited from class edu.uci.ics.jung.utils.UserDataDelegate
addUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDataFactory, setUserDatum
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.uci.ics.jung.graph.ArchetypeVertex
degree, getEqualVertex, getEquivalentVertex, getIncidentEdges, getNeighbors, isIncident, isNeighborOf, numNeighbors
 
Methods inherited from interface edu.uci.ics.jung.graph.Element
getGraph, getIncidentElements
 
Methods inherited from interface edu.uci.ics.jung.utils.UserDataContainer
addUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDatum
 

Constructor Detail

Node

public Node(String name)

Node

public Node(int type,
            double x,
            double y,
            double width,
            double height,
            String name)
Method Detail

getName

public String getName()

toString

public String toString()

__getitem__

public PyObject __getitem__(int key)

__getitem__

public PyObject __getitem__(PyObject key)

compareTo

public int compareTo(Object object)
Specified by:
compareTo in interface Comparable

__anye__

public PySequence __anye__(PySequence sequence)

__anye__

public PySequence __anye__(Node node)

__sub__

public PySequence __sub__(PySequence sequence)

__sub__

public PySequence __sub__(Node node)

__rde__

public PySequence __rde__(PySequence sequence)

__rde__

public PySequence __rde__(Node node)

__lde__

public PySequence __lde__(PySequence sequence)

__lde__

public PySequence __lde__(Node node)

__bde__

public PySequence __bde__(PySequence sequence)

__bde__

public PySequence __bde__(Node node)

updateDegrees

public void updateDegrees()

__getattr__

public Object __getattr__(String fieldName)
Specified by:
__getattr__ in interface GraphElement

getAttrDB

public Object getAttrDB(String fieldName)
don't use this unless you know what you're doing... it's a hack


__setattr__

public void __setattr__(String name,
                        Object value)
Specified by:
__setattr__ in interface GraphElement

hide

public void hide()
Specified by:
hide in interface GraphElement

show

public void show()
Specified by:
show in interface GraphElement

getRep

public GraphElementListener getRep()
returns the rep

Specified by:
getRep in interface GraphElement

setRep

public void setRep(NodeListener rep)
sets the rep don't call this unless you know what you're doing, you could separate the nodes from the visualization


readjustEdges

public void readjustEdges()

getX

public double getX()
returns the xlocation of the node


setX

public void setX(double x)

getY

public double getY()
returns the ylocation of the node


setY

public void setY(double y)

getWidth

public double getWidth()
returns the width of the node


setWidth

public void setWidth(double width)

updateColumn

public void updateColumn(String fName,
                         Object o)

getHeight

public double getHeight()
returns the height of the node


setHeight

public void setHeight(double height)

setLocation

public void setLocation(double x1,
                        double y1,
                        double width,
                        double height)

setLocation

public void setLocation(double x1,
                        double y1)

startMove

public void startMove(double x1,
                      double y1)

move

public void move(double x1,
                 double y1)

endMove

public void endMove(double x1,
                    double y1)

unweightedShortestPath

public List unweightedShortestPath(Node dest)

dijkstraShortestPath

public List dijkstraShortestPath(Node dest)

values

public Map values()
Specified by:
values in interface GraphElement