Package com.powsybl.sld.model
Class SerialBlock
- java.lang.Object
-
- com.powsybl.sld.model.AbstractBlock
-
- com.powsybl.sld.model.AbstractComposedBlock
-
- com.powsybl.sld.model.SerialBlock
-
- All Implemented Interfaces:
Block
,ComposedBlock
public class SerialBlock extends AbstractComposedBlock
- Author:
- Benoit Jeanson
, Nicolas Duchene, Geoffroy Jamgotchian , Franck Lecuyer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.sld.model.Block
Block.Extremity, Block.Type
-
-
Field Summary
-
Fields inherited from class com.powsybl.sld.model.AbstractBlock
type
-
-
Constructor Summary
Constructors Constructor Description SerialBlock(Block block, Cell cell)
SerialBlock(List<Block> blocks, Cell cell)
Constructor A layout.block chain is oriented in order to have.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addSubBlock(Block block)
double
calculateHeight(Set<Node> encounteredNodes, LayoutParameters layoutParameters)
void
coordHorizontalCase(LayoutParameters layoutParam)
void
coordVerticalCase(LayoutParameters layoutParam)
Block
getLowerBlock()
int
getOrder()
Block
getUpperBlock()
void
sizing()
Calculate maximal pxWidth that layout.block can use in a cell without modifying root pxWidth-
Methods inherited from class com.powsybl.sld.model.AbstractComposedBlock
findBlockEmbeddingNode, getExtremityNode, getGraph, getSegments, getSubBlocks, isEmbeddingNodeType, reverseBlock, setOrientation, setOrientation, toString, writeJsonContent
-
Methods inherited from class com.powsybl.sld.model.AbstractBlock
calculateCoord, calculateRootCoord, calculateRootHeight, getCardinality, getCardinality, getCell, getCoord, getEndingNode, getExtremity, getOrientation, getParentBlock, getPosition, getStartingNode, getType, setCardinality, setCell, setParentBlock, writeJson
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.powsybl.sld.model.Block
calculateCoord, calculateRootCoord, calculateRootHeight, getCardinality, getCardinality, getCell, getCoord, getEndingNode, getExtremity, getOrientation, getPosition, getStartingNode, getType, setCardinality, setCell, setParentBlock, writeJson
-
-
-
-
Method Detail
-
getOrder
public int getOrder()
-
addSubBlock
public boolean addSubBlock(Block block)
-
getUpperBlock
public Block getUpperBlock()
-
getLowerBlock
public Block getLowerBlock()
-
sizing
public void sizing()
Description copied from interface:Block
Calculate maximal pxWidth that layout.block can use in a cell without modifying root pxWidth
-
coordVerticalCase
public void coordVerticalCase(LayoutParameters layoutParam)
-
coordHorizontalCase
public void coordHorizontalCase(LayoutParameters layoutParam)
-
calculateHeight
public double calculateHeight(Set<Node> encounteredNodes, LayoutParameters layoutParameters)
-
-