|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jdsl.extension.LEDA.Layout.DefaultGraphLayout
DefaultGraphLayout provides a standard class
for graph layout algorithms.
| Constructor Summary | |
DefaultGraphLayout()
Empty constructor. |
|
DefaultGraphLayout(DefaultGraphLayout other)
A Copy-Constructor. |
|
| Method Summary | |
void |
calculation()
Calculate default assignment. |
void |
calculation(java.util.Enumeration vertices)
Calculate a layout based on a Vertex enumeration. |
void |
calculation(jdsl.graph.api.InspectableGraph graph)
Calculate a layout based on given graph graph. |
void |
clearLayout()
Resets current layout. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
Point[] |
getPosition(jdsl.graph.api.Edge which)
Returns current position of edge which. |
Point |
getPosition(jdsl.graph.api.Vertex which)
Returns current position of vertex which. |
void |
merge(java.util.Enumeration objs,
GraphLayout other)
Merges current and given GraphLayout together
(prefers given new layout!) |
void |
merge(java.util.Enumeration objs,
GraphLayout other,
boolean override)
Merges current and given GraphLayout together. |
protected void |
setEdgeAsStraightLine(jdsl.graph.api.InspectableGraph graph)
Calculate Edges' position in given graph. |
void |
setPosition(jdsl.graph.api.Edge which,
Point[] where)
Changes the position of edge which to
where. |
void |
setPosition(jdsl.graph.api.Vertex which,
Point where)
Changes the position of vertex which
to where. |
void |
setX(jdsl.graph.api.Vertex which,
double whereX)
Changes X-coordinate of vertex which
to whereX. |
void |
setY(jdsl.graph.api.Vertex which,
double whereY)
Changes Y-coordinate of vertex which
to whereY. |
void |
update(InspectableEdgeAttribute_PointArray data,
jdsl.graph.api.EdgeIterator edges)
Changes positions for all edges in edges
using data. |
void |
update(InspectableVertexAttribute_Point data,
jdsl.graph.api.VertexIterator vertices)
Changes positions for all vertices in vertices
using data. |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public DefaultGraphLayout()
public DefaultGraphLayout(DefaultGraphLayout other)
other - given layout to copy| Method Detail |
public java.lang.Object clone()
Cloneablepublic void calculation()
public void clearLayout()
public void calculation(java.util.Enumeration vertices)
Vertex enumeration.
Here it is an empty method.vertices - given Vertex enumerationpublic void calculation(jdsl.graph.api.InspectableGraph graph)
graph.
Here all edges are representated as straight lines.graph - given graph
public void setPosition(jdsl.graph.api.Vertex which,
Point where)
which
to where.which - the vertex which position will be changedwhere - new position
public void setX(jdsl.graph.api.Vertex which,
double whereX)
which
to whereX.which - the vertex which position will be changedwhereX - new position
public void setY(jdsl.graph.api.Vertex which,
double whereY)
which
to whereY.which - the vertex which position will be changedwhereY - new position
public void setPosition(jdsl.graph.api.Edge which,
Point[] where)
which to
where. where is an array of
Points (Interpretation is different!).which - the edge which position will be changedwhere - new positions.public Point getPosition(jdsl.graph.api.Vertex which)
which.which - the vertex which position will be returnedpublic Point[] getPosition(jdsl.graph.api.Edge which)
which.which - the edge which position will be returnedPoints
public void update(InspectableVertexAttribute_Point data,
jdsl.graph.api.VertexIterator vertices)
vertices
using data.
public void update(InspectableEdgeAttribute_PointArray data,
jdsl.graph.api.EdgeIterator edges)
edges
using data.
public void merge(java.util.Enumeration objs,
GraphLayout other,
boolean override)
GraphLayout together.objs - is an enumeration of all elements
(Vertices and Edges) to be insertedother - given other GraphLayoutoverride - if true old positions are overridden
by new position (in other).
public void merge(java.util.Enumeration objs,
GraphLayout other)
GraphLayout together
(prefers given new layout!)objs - is an enumeration of all elements
(Vertices and Edges) to be insertedother - given other GraphLayoutprotected void setEdgeAsStraightLine(jdsl.graph.api.InspectableGraph graph)
Edges' position in given graph.
These elements are represented by straight lines.graph - given graph.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||