|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.partial.PartialLayouter.StraightLineEdgeRouter
public static class PartialLayouter.StraightLineEdgeRouter
Simple Edge Router that draws edges straight-line.
Field Summary |
---|
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
PartialLayouter.StraightLineEdgeRouter()
|
Method Summary | |
---|---|
boolean |
canLayout(LayoutGraph graph)
Returns true iff the given graph can be laid
out by this algorithm. |
void |
doLayout(LayoutGraph graph)
Main layout routine that assigns new layout information to the given graph. |
Object |
getSelectedEdgesDpKey()
Returns the DataProvider key to mark edges as
selected. |
void |
setSelectedEdgesDpKey(Object key)
Specifies the DataProvider key to mark edges as
selected. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartialLayouter.StraightLineEdgeRouter()
Method Detail |
---|
public Object getSelectedEdgesDpKey()
DataProvider
key to mark edges as
selected.
By default, Layouter.SELECTED_EDGES
is used.
DataProvider
key to mark edges as selected.setSelectedEdgesDpKey(Object)
public void setSelectedEdgesDpKey(Object key)
DataProvider
key to mark edges as
selected.
By default, Layouter.SELECTED_EDGES
is used.
IllegalArgumentException
- if the specified key is null
.key
- DataProvider
key.getSelectedEdgesDpKey()
public boolean canLayout(LayoutGraph graph)
Layouter
true
iff the given graph can be laid
out by this algorithm. Calling doLayout
with
the given graph as its argument will only success if
this method returns true
.
canLayout
in interface Layouter
public void doLayout(LayoutGraph graph)
Layouter
doLayout
in interface Layouter
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |