snap.graph
Class UINode

java.lang.Object
  |
  +--snap.graph.Node
        |
        +--snap.graph.CoordinationNode
              |
              +--snap.graph.UINode

public class UINode
extends CoordinationNode

A node in the Graph; the Node contains all of the information for a visualization. The Node is created by the UI.

Author:
Nathan Conklin - nathan@conklinfamily.net, Chris North - north@cs.vt.edu, Varun Saini - vsaini@vt.edu, Umer Farooq - ufarooq@vt.edu, Aniket Prabhune - aprabhun@vt.edu

Constructor Summary
UINode(snap.graph.UIGraph graph, java.lang.String name, java.lang.String type, java.lang.String description, snap.database.Query query, snap.adapter.TechnologyAdapter adapter)
           
 
Method Summary
 java.lang.String getDescription()
           
 javax.swing.Icon getIcon()
          Returns the component's Icon from the TechnologyAdapter
 java.lang.String getType()
          Returns the visualization type
 void setDescription(java.lang.String description)
           
 void setType(java.lang.String type)
          Sets the visualization type
 
Methods inherited from class snap.graph.CoordinationNode
getMark, getSnapEvent, setMark, setSnapEvent
 
Methods inherited from class snap.graph.Node
addConnection, getConnections, getGraph, getName, getQuery, getSupportedActions, getTechnologyAdapter, removeConnection, setGraph, setName, setQuery, setTechnologyAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UINode

public UINode(snap.graph.UIGraph graph,
              java.lang.String name,
              java.lang.String type,
              java.lang.String description,
              snap.database.Query query,
              snap.adapter.TechnologyAdapter adapter)
Method Detail

setType

public void setType(java.lang.String type)
Sets the visualization type


getType

public java.lang.String getType()
Returns the visualization type


setDescription

public void setDescription(java.lang.String description)

getDescription

public java.lang.String getDescription()

getIcon

public javax.swing.Icon getIcon()
Returns the component's Icon from the TechnologyAdapter