public class HierarchicalMatrixLayout extends AbstractHierarchicalLayout implements IHierarchicalMatrixLayout
Modifier and Type | Field and Description |
---|---|
protected float |
allColumnWidth |
protected float |
allLineHeight |
protected float[] |
columnWidth |
protected float[] |
lineHeight |
protected com.google.common.collect.BiMap<IBoundedItem,CellIndex> |
mapIndex |
protected IHierarchicalModel |
model |
protected int |
nColumn |
protected int |
nLine |
algoEnded, bounds, children, counter, doRunEdgeLayout, neighbours, parent, tubeLayout, tubeModel
Constructor and Description |
---|
HierarchicalMatrixLayout() |
HierarchicalMatrixLayout(IHierarchicalLayout parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
autoColSize() |
protected void |
autoColumnGrid() |
protected void |
autoLineGrid() |
protected void |
autoRowSize() |
protected void |
computeLayout()
ACTUAL MATRIX LAYOUT
|
float |
getColumnWidth(int column) |
float |
getLineHeight(int line) |
IHierarchicalModel |
getModel() |
protected float |
getXPosition(CellIndex index) |
protected float |
getYPosition(CellIndex index) |
void |
goAlgo() |
protected void |
init() |
void |
initAlgo() |
protected boolean |
isEven(int value) |
boolean |
isReady() |
void |
setColumnWidth(float width) |
protected void |
setColumnWidth(int column,
float width) |
void |
setItemCell(IBoundedItem item,
int lineIndex,
int columnIndex) |
void |
setLineHeight(float height) |
protected void |
setLineHeight(int line,
float height) |
void |
setModel(IHierarchicalModel model) |
void |
setSize(int nLine,
int nColumn)
DIMENSIONS
|
addChild, addChildren, canAlgo, clearCounter, endAlgo, findLayoutHoldingModel, findLayoutHoldingModel, getActualBounds, getBounds, getChildren, getCounter, getDelegate, getDepth, getLayout, getNeighbours, getParent, getTubeLayout, getTubeModel, goAlgoEdge, isDoRunEdgeLayout, isLeaf, onDoneAlgo, pause, resetPropertiesValues, setBounds, setDoRunEdgeLayout, setParent, setTubeLayout, setTubeModel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChild, canAlgo, endAlgo, findLayoutHoldingModel, findLayoutHoldingModel, getActualBounds, getBounds, getChildren, getDelegate, getDepth, getLayout, getNeighbours, getParent, getTubeLayout, getTubeModel, goAlgoEdge, isDoRunEdgeLayout, isLeaf, onDoneAlgo, resetPropertiesValues, setBounds, setDoRunEdgeLayout, setTubeLayout, setTubeModel
protected int nLine
protected int nColumn
protected float[] lineHeight
protected float[] columnWidth
protected float allLineHeight
protected float allColumnWidth
protected IHierarchicalModel model
protected com.google.common.collect.BiMap<IBoundedItem,CellIndex> mapIndex
public HierarchicalMatrixLayout()
public HierarchicalMatrixLayout(IHierarchicalLayout parent)
public void setModel(IHierarchicalModel model)
setModel
in interface IHierarchicalLayout
public IHierarchicalModel getModel()
getModel
in interface IHierarchicalLayout
public void setItemCell(IBoundedItem item, int lineIndex, int columnIndex) throws java.lang.IllegalArgumentException
setItemCell
in interface IHierarchicalMatrixLayout
java.lang.IllegalArgumentException
protected void autoColumnGrid()
protected void autoLineGrid()
public void setSize(int nLine, int nColumn) throws java.lang.IllegalArgumentException
setSize
in interface IHierarchicalMatrixLayout
java.lang.IllegalArgumentException
public void setLineHeight(float height)
setLineHeight
in interface IHierarchicalMatrixLayout
public void setColumnWidth(float width)
setColumnWidth
in interface IHierarchicalMatrixLayout
protected void setLineHeight(int line, float height)
protected void setColumnWidth(int column, float width)
public float getLineHeight(int line)
getLineHeight
in interface IHierarchicalMatrixLayout
public float getColumnWidth(int column)
getColumnWidth
in interface IHierarchicalMatrixLayout
public void initAlgo()
initAlgo
in interface IHierarchicalLayout
initAlgo
in interface ILayout
initAlgo
in class AbstractHierarchicalLayout
public void goAlgo()
goAlgo
in interface IHierarchicalLayout
goAlgo
in interface IRunnableLayout
goAlgo
in class AbstractHierarchicalLayout
protected void computeLayout()
protected float getXPosition(CellIndex index)
protected float getYPosition(CellIndex index)
protected boolean isEven(int value)
protected void autoRowSize()
protected void autoColSize()
public boolean isReady()
protected void init()