org.arakhne.neteditor.figlayout.sugiyama
public class GanswerSugiyamaFigureLayout extends AbstractDirectionBasedFigureLayout
That means a long edge (over more then one layer) should be straight. The current solution is not very good and should be improved.
This implementation was adapted to cyclic graphs by Stéphane GALLAND.
HALF_MINIMAL_HORIZONTAL_PADDING, HALF_MINIMAL_VERTICAL_PADDINGDEFAULT_ACTIVE_COLOR, DEFAULT_BACKGROUND_SELECTION_COLOR, DEFAULT_DAMAGING_EXTENTS, DEFAULT_DRAW_SHADOW, DEFAULT_FILL_COLOR, DEFAULT_FOREGROUND_SELECTION_COLOR, DEFAULT_LINE_COLOR, DEFAULT_LOCKING_FILL_COLOR, DEFAULT_LOCKING_OUTLINE_COLOR, DEFAULT_MAXIMAL_SIZE, DEFAULT_MINIMAL_SIZE, DEFAULT_MINIMAL_SUBFIGURE_SIZE, DEFAULT_SHADOW_PROJECTION_DISTANCE_X, DEFAULT_SHADOW_PROJECTION_DISTANCE_Y, FLATTENING_PRECISION| Constructor and Description |
|---|
GanswerSugiyamaFigureLayout() |
| Modifier and Type | Method and Description |
|---|---|
float |
getPreferredInterLayerSpace()
Replies the preferred size to allocate to the space between the layers.
|
Undoable |
layoutFigures(Collection<? extends Figure> figures)
Run the laying-out algorithm for the given figures.
|
void |
setPreferredInterLayerSpace(float size)
Set the preferred size to allocate to the space between the layers.
|
getLayoutDirection, setLayoutDirectiongetMargins, getOrigin, setMargins, setOrigin, setOriginpublic float getPreferredInterLayerSpace()
public void setPreferredInterLayerSpace(float size)
size - is the preferred size to allocate to the space between the layers.public Undoable layoutFigures(Collection<? extends Figure> figures)
figures - are the figures to laying out.null if the layout does not supports the undo/redo feature
or it has nothing to undo.Copyright © 2001-2013 NetEditor Developers. 
NetEditor API Documentation by NetEditor Developers is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at www.arakhne.org/neteditor