The Meta-Environment API

nl.cwi.sen1.gui.plugin
Class GraphAdapter

java.lang.Object
  extended by prefuse.data.tuple.AbstractTupleSet
      extended by prefuse.data.tuple.CompositeTupleSet
          extended by prefuse.data.Graph
              extended by nl.cwi.sen1.gui.plugin.GraphAdapter
All Implemented Interfaces:
prefuse.data.tuple.TupleSet

public class GraphAdapter
extends prefuse.data.Graph


Nested Class Summary
 
Nested classes/interfaces inherited from class prefuse.data.Graph
prefuse.data.Graph.Listener
 
Field Summary
 
Fields inherited from class prefuse.data.Graph
DEFAULT_NODE_KEY, DEFAULT_SOURCE_KEY, DEFAULT_TARGET_KEY, EDGES, INDEGREE, INEDGES, INLINKS, LINKS_SCHEMA, m_directed, m_edgeTuples, m_links, m_longKey, m_nidx, m_nkey, m_nodeTuples, m_skey, m_spanning, m_tkey, NODES, OUTDEGREE, OUTEDGES, OUTLINKS, UNDIRECTED
 
Fields inherited from interface prefuse.data.tuple.TupleSet
EMPTY_ARRAY
 
Constructor Summary
GraphAdapter(nl.cwi.sen1.graph.types.Graph graph)
           
 
Method Summary
private static nl.cwi.sen1.graph.types.Color getColorAttribute(nl.cwi.sen1.graph.types.Node node)
           
private  java.awt.geom.Point2D[] getControlPoints(nl.cwi.sen1.graph.types.Edge edge)
           
private static nl.cwi.sen1.graph.types.Color getFillColorAttribute(nl.cwi.sen1.graph.types.Node node)
           
static int getHeight(nl.cwi.sen1.graph.types.Node node)
           
private static java.lang.String getLabel(nl.cwi.sen1.graph.types.Node node)
           
private static nl.cwi.sen1.graph.types.attribute.Location getLocationAttribute(nl.cwi.sen1.graph.types.Node node)
           
private  nl.cwi.sen1.graph.types.Polygon getPolygon(nl.cwi.sen1.graph.types.Edge edge)
           
private  nl.cwi.sen1.graph.types.Shape getShape(nl.cwi.sen1.graph.types.Node node)
           
private static nl.cwi.sen1.graph.types.attribute.Size getSizeAttribute(nl.cwi.sen1.graph.types.Node node)
           
private static java.lang.String getTooltip(nl.cwi.sen1.graph.types.Node node)
           
static int getWidth(nl.cwi.sen1.graph.types.Node node)
           
static int getX(nl.cwi.sen1.graph.types.Node node)
           
static int getY(nl.cwi.sen1.graph.types.Node node)
           
private static nl.cwi.sen1.graph.types.Node setNodeSize(java.awt.FontMetrics metrics, nl.cwi.sen1.util.Preferences prefs, nl.cwi.sen1.graph.types.Node node)
           
private static nl.cwi.sen1.graph.types.Node setSizeAttribute(nl.cwi.sen1.graph.types.Node node, nl.cwi.sen1.graph.types.attribute.Size sizeAttr)
           
static nl.cwi.sen1.graph.types.Graph sizeGraph(java.awt.FontMetrics metrics, nl.cwi.sen1.util.Preferences prefs, nl.cwi.sen1.graph.types.Graph graph)
           
static void updateNode(prefuse.visual.VisualItem node, nl.cwi.sen1.graph.types.Attribute attr)
           
 
Methods inherited from class prefuse.data.Graph
addEdge, addEdge, addGraphModelListener, addLink, addNode, addNodeRow, clear, clearEdges, clearSpanningTree, createLinkTable, dispose, edgeCheck, edgeRows, edgeRows, edgeRows, edges, edges, fireGraphEvent, getAdjacentNode, getAdjacentNode, getDegree, getDegree, getEdge, getEdge, getEdge, getEdgeCount, getEdges, getEdgeSourceField, getEdgeTable, getEdgeTargetField, getInDegree, getInDegree, getKey, getNode, getNodeCount, getNodeFromKey, getNodeIndex, getNodeKeyField, getNodes, getNodeTable, getOutDegree, getOutDegree, getSourceNode, getSourceNode, getSpanningTree, getSpanningTree, getTargetNode, getTargetNode, inEdgeRows, inEdges, init, initLinkTable, inNeighbors, isDirected, neighbors, nodeCheck, nodeRows, nodes, outEdgeRows, outEdges, outNeighbors, remLink, removeEdge, removeEdge, removeGraphModelListener, removeNode, removeNode, removeTuple, setEdgeTable, setTupleManagers, tuples, tuples, updateDegrees, updateDegrees, updateNodeData
 
Methods inherited from class prefuse.data.tuple.CompositeTupleSet
addColumn, addColumn, addColumn, addColumn, addSet, addTuple, containsSet, containsTuple, getSet, getTupleCount, hasSet, isAddColumnSupported, removeAllSets, removeSet, setNames, sets, setTuple
 
Methods inherited from class prefuse.data.tuple.AbstractTupleSet
addColumns, addPropertyChangeListener, addPropertyChangeListener, addTupleSetListener, fireTupleEvent, fireTupleEvent, fireTupleEvent, getClientProperty, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTupleSetListener, tuples
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphAdapter

public GraphAdapter(nl.cwi.sen1.graph.types.Graph graph)
Method Detail

getControlPoints

private java.awt.geom.Point2D[] getControlPoints(nl.cwi.sen1.graph.types.Edge edge)

getPolygon

private nl.cwi.sen1.graph.types.Polygon getPolygon(nl.cwi.sen1.graph.types.Edge edge)

getShape

private nl.cwi.sen1.graph.types.Shape getShape(nl.cwi.sen1.graph.types.Node node)

getLocationAttribute

private static nl.cwi.sen1.graph.types.attribute.Location getLocationAttribute(nl.cwi.sen1.graph.types.Node node)

getFillColorAttribute

private static nl.cwi.sen1.graph.types.Color getFillColorAttribute(nl.cwi.sen1.graph.types.Node node)

getColorAttribute

private static nl.cwi.sen1.graph.types.Color getColorAttribute(nl.cwi.sen1.graph.types.Node node)

getX

public static int getX(nl.cwi.sen1.graph.types.Node node)

getY

public static int getY(nl.cwi.sen1.graph.types.Node node)

getWidth

public static int getWidth(nl.cwi.sen1.graph.types.Node node)

getHeight

public static int getHeight(nl.cwi.sen1.graph.types.Node node)

getLabel

private static java.lang.String getLabel(nl.cwi.sen1.graph.types.Node node)

getTooltip

private static java.lang.String getTooltip(nl.cwi.sen1.graph.types.Node node)

getSizeAttribute

private static nl.cwi.sen1.graph.types.attribute.Size getSizeAttribute(nl.cwi.sen1.graph.types.Node node)

setSizeAttribute

private static nl.cwi.sen1.graph.types.Node setSizeAttribute(nl.cwi.sen1.graph.types.Node node,
                                                             nl.cwi.sen1.graph.types.attribute.Size sizeAttr)

setNodeSize

private static nl.cwi.sen1.graph.types.Node setNodeSize(java.awt.FontMetrics metrics,
                                                        nl.cwi.sen1.util.Preferences prefs,
                                                        nl.cwi.sen1.graph.types.Node node)

sizeGraph

public static nl.cwi.sen1.graph.types.Graph sizeGraph(java.awt.FontMetrics metrics,
                                                      nl.cwi.sen1.util.Preferences prefs,
                                                      nl.cwi.sen1.graph.types.Graph graph)

updateNode

public static void updateNode(prefuse.visual.VisualItem node,
                              nl.cwi.sen1.graph.types.Attribute attr)

The Meta-Environment API