be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.topEdit.graph
Class MyStaticLayout

java.lang.Object
  extended by edu.uci.ics.jung.visualization.AbstractLayout
      extended by edu.uci.ics.jung.visualization.StaticLayout
          extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.topEdit.graph.MyStaticLayout
All Implemented Interfaces:
edu.uci.ics.jung.utils.ChangeEventSupport, edu.uci.ics.jung.visualization.Layout, edu.uci.ics.jung.visualization.VertexLocationFunction

public class MyStaticLayout
extends edu.uci.ics.jung.visualization.StaticLayout

Static layout.

Creation date: 15/10/2007

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)

Field Summary
 
Fields inherited from class edu.uci.ics.jung.visualization.AbstractLayout
changeSupport, vertex_locations
 
Constructor Summary
MyStaticLayout(edu.uci.ics.jung.graph.Graph g, CoordMapper mapper)
           
 
Method Summary
 void forceMove(edu.uci.ics.jung.graph.Vertex picked, double x, double y)
          Also sets the location in the SettableVertexLocationFunction.
 void moveToLocation(edu.uci.ics.jung.graph.Vertex picked, double longitude, double latitude)
          Move a vertex to a specific location using the CoordMapper.
 
Methods inherited from class edu.uci.ics.jung.visualization.StaticLayout
advancePositions, incrementsAreDone, initialize_local_vertex, initialize_local, isIncremental
 
Methods inherited from class edu.uci.ics.jung.visualization.AbstractLayout
addChangeListener, applyFilter, dontMove, fireStateChanged, getAVertex, getBaseKey, getChangeListeners, getCoordinates, getCurrentSize, getEdge, getEdge, getGraph, getLocation, getStatus, getVertex, getVertex, getVertexIterator, getVisibleEdges, getVisibleGraph, getVisibleVertices, getX, getY, initialize, initialize, initializeLocation, initializeLocations, isLocked, lockVertex, offsetVertex, postInitialize, removeChangeListener, resize, restart, unlockVertex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyStaticLayout

public MyStaticLayout(edu.uci.ics.jung.graph.Graph g,
                      CoordMapper mapper)
Method Detail

moveToLocation

public void moveToLocation(edu.uci.ics.jung.graph.Vertex picked,
                           double longitude,
                           double latitude)
Move a vertex to a specific location using the CoordMapper.

Parameters:
picked -
longitude -
latitude -

forceMove

public void forceMove(edu.uci.ics.jung.graph.Vertex picked,
                      double x,
                      double y)
Also sets the location in the SettableVertexLocationFunction.

Specified by:
forceMove in interface edu.uci.ics.jung.visualization.Layout
Overrides:
forceMove in class edu.uci.ics.jung.visualization.AbstractLayout
Parameters:
picked -
x -
y -


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.