edu.uci.ics.jung.graph.decorators
Class InterpolatingVertexSizeFunction
java.lang.Object
edu.uci.ics.jung.graph.decorators.InterpolatingVertexSizeFunction
- All Implemented Interfaces:
- VertexSizeFunction
public class InterpolatingVertexSizeFunction
- extends Object
- implements VertexSizeFunction
Provides vertex sizes that are spaced proportionally between
min_size and max_size depending on
- Author:
- Joshua O'Madadhain
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
min
protected double min
max
protected double max
nvv
protected NumberVertexValue nvv
min_size
protected int min_size
size_diff
protected int size_diff
InterpolatingVertexSizeFunction
public InterpolatingVertexSizeFunction(NumberVertexValue nvv,
int min_size,
int max_size)
getSize
public int getSize(Vertex v)
- Specified by:
getSize
in interface VertexSizeFunction
setMinSize
public void setMinSize(int min_size)
setMaxSize
public void setMaxSize(int max_size)
setNumberVertexValue
public void setNumberVertexValue(NumberVertexValue nvv)