com.hp.hpl.guess.layout
Class BinPack

java.lang.Object
  extended byedu.uci.ics.jung.visualization.AbstractLayout
      extended bycom.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

Constructor Summary
BinPack(Graph g, boolean rescale)
           
 
Method Summary
 void advancePositions()
           
 com.hp.hpl.guess.layout.BinPack.SizeCompRect getBoundingBox(Set nodes)
           
 Coordinates getCoordinates(Node v)
           
 double getX(Vertex n)
           
 double getY(Vertex n)
           
 boolean incrementsAreDone()
           
 void initialize_local_vertex(Vertex v)
           
 void initialize_local()
           
 boolean isIncremental()
           
 void rescaleRect(com.hp.hpl.guess.layout.BinPack.SizeCompRect scr, double percent)
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinPack

public BinPack(Graph g,
               boolean rescale)
Method Detail

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()