com.hp.hpl.guess.layout
Class BinPack
java.lang.Object
edu.uci.ics.jung.visualization.AbstractLayout
com.hp.hpl.guess.layout.BinPack
- All Implemented Interfaces:
- ChangeEventSupport, Layout, VertexLocationFunction
- public class BinPack
- extends AbstractLayout
initial attempts at binpacking... do not distribute
- Author:
- Hacked by Eytan Adar
Methods inherited from class edu.uci.ics.jung.visualization.AbstractLayout |
addChangeListener, applyFilter, dontMove, fireStateChanged, forceMove, getBaseKey, getChangeListeners, getCoordinates, getCurrentSize, getEdge, getEdge, getGraph, getLocation, getStatus, getVertex, getVertex, getVertexIterator, getVisibleEdges, getVisibleVertices, initialize, initialize, lockVertex, removeChangeListener, resize, restart, unlockVertex |
BinPack
public BinPack(Graph g,
boolean rescale)
advancePositions
public void advancePositions()
rescaleRect
public void rescaleRect(com.hp.hpl.guess.layout.BinPack.SizeCompRect scr,
double percent)
getBoundingBox
public com.hp.hpl.guess.layout.BinPack.SizeCompRect getBoundingBox(Set nodes)
getX
public double getX(Vertex n)
getY
public double getY(Vertex n)
getCoordinates
public Coordinates getCoordinates(Node v)
incrementsAreDone
public boolean incrementsAreDone()
initialize_local_vertex
public void initialize_local_vertex(Vertex v)
initialize_local
public void initialize_local()
isIncremental
public boolean isIncremental()