public abstract class AbstractCircularLayout<V,E> extends AbstractLayout<edu.uci.ics.jung.graph.Graph<V,E>>
| Modifier and Type | Field and Description |
|---|---|
protected Map<E,VisualItem> |
edgeMap |
protected CenterEdgeRouter2<V,E> |
edgeRouter |
protected edu.uci.ics.jung.graph.Graph<V,E> |
g |
protected org.apache.commons.collections15.Transformer<V,VisualItem> |
itemTransformer |
protected org.slf4j.Logger |
logger |
protected double |
offset |
protected Map<V,VisualItem> |
vertexMap |
desiredBounds, layouted| Constructor and Description |
|---|
AbstractCircularLayout(edu.uci.ics.jung.graph.Graph<V,E> g,
org.apache.commons.collections15.Transformer<V,VisualItem> itemTransformer) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
before(int uPos,
int vPos,
int startPos,
int numVertices) |
protected boolean |
crosses(E e1,
E e2,
List<V> vertexList) |
protected List<V> |
doForcePlacement(List<V> vertexList) |
protected List<V> |
doForcePlacementRound(List<V> vertexList) |
protected List<V> |
doInitialPlacement() |
protected abstract List<V> |
doLayout() |
protected List<V> |
doRandomPlacement() |
protected int |
getCrossingChange(V v1,
V v2,
List<V> layout) |
EdgeRouter<V,E> |
getEdgeRouter() |
protected int |
getNumCrossings(int v1Pos,
int v2Pos,
List<Integer> v1NeighborPositions,
List<Integer> v2NeighborPositions,
int numVertices) |
protected int |
getNumCrossings(List<V> vertexList) |
protected int |
getNumCrossings(V v1,
V v2,
List<V> vertexList) |
double |
getOffset() |
protected List<Integer> |
getPositionList(Collection<V> vertices,
List<V> layout,
int ignorePos) |
protected List<Integer> |
getSortedPositionList(List<V> layout,
Collection<V> vertices,
int startPos,
int ignorePos) |
void |
layout() |
static int |
modulo(int i1,
int i2) |
void |
render(Graphics2D g2d) |
void |
setOffset(double offset) |
getBounds, isLayouted, setlayoutedprotected final org.apache.commons.collections15.Transformer<V,VisualItem> itemTransformer
protected CenterEdgeRouter2<V,E> edgeRouter
protected Map<V,VisualItem> vertexMap
protected Map<E,VisualItem> edgeMap
protected double offset
protected final org.slf4j.Logger logger
public AbstractCircularLayout(edu.uci.ics.jung.graph.Graph<V,E> g, org.apache.commons.collections15.Transformer<V,VisualItem> itemTransformer)
public void layout()
throws LayoutException
LayoutExceptionpublic double getOffset()
public void setOffset(double offset)
public EdgeRouter<V,E> getEdgeRouter()
protected boolean before(int uPos,
int vPos,
int startPos,
int numVertices)
protected int getNumCrossings(int v1Pos,
int v2Pos,
List<Integer> v1NeighborPositions,
List<Integer> v2NeighborPositions,
int numVertices)
public void render(Graphics2D g2d)
public static int modulo(int i1,
int i2)
protected List<Integer> getSortedPositionList(List<V> layout, Collection<V> vertices, int startPos, int ignorePos)
protected List<Integer> getPositionList(Collection<V> vertices, List<V> layout, int ignorePos)
Copyright © 2013 dontdrinkandroot. All Rights Reserved.