public class RingLayout extends Object implements LayoutAlgo
Constructor and Description |
---|
RingLayout() |
Modifier and Type | Method and Description |
---|---|
void |
configure(NodeAttributesReader vreader,
int nbRoot,
int nbStable,
int nbClassic,
int maxHeight,
int maxWidth)
set some parameters for the layout, getting ready to place all nodes.
|
void |
placeNextClassic()
place the next classic node
|
void |
placeNextRoot()
place the next root node.
|
void |
placeNextStable()
place the next stable node
|
public void configure(NodeAttributesReader vreader, int nbRoot, int nbStable, int nbClassic, int maxHeight, int maxWidth)
LayoutAlgo
configure
in interface LayoutAlgo
vreader
- used to read and change node's propertiesnbRoot
- number of root nodesnbStable
- number of stable nodesnbClassic
- number of classic nodesmaxHeight
- height of the taller nodemaxWidth
- width of the bigger nodepublic void placeNextRoot()
LayoutAlgo
placeNextRoot
in interface LayoutAlgo
public void placeNextStable()
LayoutAlgo
placeNextStable
in interface LayoutAlgo
public void placeNextClassic()
LayoutAlgo
placeNextClassic
in interface LayoutAlgo
Copyright © 2005–2020. All rights reserved.