|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The GraphLayout interface provides
common methods for a class which is used to layout graphs.
| Method Summary | |
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. |
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. |
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 where)
Changes X-coordinate of vertex which
to where. |
void |
setY(jdsl.graph.api.Vertex which,
double where)
Changes Y-coordinate of vertex which
to where. |
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 interface jdsl.extension.LEDA.Layout.Layout |
calculation,
clearLayout |
| Method Detail |
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 where)
which
to where.which - the vertex which position will be changedwhere - new position
public void setY(jdsl.graph.api.Vertex which,
double where)
which
to where.which - the vertex which position will be changedwhere - 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 calculation(jdsl.graph.api.InspectableGraph graph)
graph.graph - given graphpublic void calculation(java.util.Enumeration vertices)
Vertex enumeration.vertices - given vertex enumeration
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 insertother - 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 GraphLayout
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||