N
- The node type for the graphE
- The edge type for the graphpublic class ProjectionArrangement<N,E> extends AbstractArrangement<N> implements GraphArrangement<N,E>
Constructor and Description |
---|
ProjectionArrangement(Projection proj)
Instantiates a new projection arrangement.
|
Modifier and Type | Method and Description |
---|---|
void |
arrange(Graph<N,E> graph)
Arranges the nodes in the graph.
|
Projection |
getProjection()
Gets the projection used by this arrangement
|
void |
setProjection(Projection proj)
Sets the projection used by this arrangement.
|
void |
setSize(int width,
int height)
Sets size of working area.
|
getMargin, getNodeLocation, getSize, invalidate, setMargin, setNodeLocation, setSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNodeLocation, getSize, setMargin, setSize
public ProjectionArrangement(Projection proj)
proj
- the projection used by this arrangementpublic void arrange(Graph<N,E> graph)
arrange
in interface GraphArrangement<N,E>
graph
- the graph to be arranged.public Projection getProjection()
public void setProjection(Projection proj)
proj
- the new projectionpublic void setSize(int width, int height)
setSize
in interface Arrangement<N>
setSize
in class AbstractArrangement<N>
width
- the width of the working areaheight
- the height of the working area