public abstract class AbstractBlock extends Object implements Block
Block.Extremity, Block.Type
Modifier and Type | Field and Description |
---|---|
protected Block.Type |
type |
Modifier and Type | Method and Description |
---|---|
void |
calculateCoord(LayoutParameters layoutParam)
Calculates all the blocks dimensions and find the order of the layout.block inside
the cell
|
void |
calculateRootCoord(LayoutParameters layoutParam) |
int |
getCardinality(Block.Extremity extremity) |
int |
getCardinality(Node node) |
Cell |
getCell() |
Coord |
getCoord() |
Node |
getEndingNode() |
Block.Extremity |
getExtremity(Node node) |
Block |
getParentBlock() |
Position |
getPosition() |
Node |
getStartingNode() |
Block.Type |
getType() |
void |
setCardinality(Block.Extremity extremity,
int i) |
void |
setCell(Cell cell) |
void |
setOrientation(Orientation orientation) |
void |
setParentBlock(Block parentBlock) |
void |
setX(double x) |
void |
setXSpan(double xSpan) |
void |
setY(double y) |
void |
setYSpan(double ySpan) |
void |
writeJson(com.fasterxml.jackson.core.JsonGenerator generator) |
protected abstract void |
writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
coordHorizontalCase, coordVerticalCase, getExtremityNode, getGraph, getOrder, isEmbedingNodeType, reverseBlock, sizing
protected final Block.Type type
public Node getStartingNode()
getStartingNode
in interface Block
public Node getEndingNode()
getEndingNode
in interface Block
public Block.Extremity getExtremity(Node node)
getExtremity
in interface Block
public int getCardinality(Node node)
getCardinality
in interface Block
public int getCardinality(Block.Extremity extremity)
getCardinality
in interface Block
public void setCardinality(Block.Extremity extremity, int i)
setCardinality
in interface Block
public Block getParentBlock()
public void setParentBlock(Block parentBlock)
setParentBlock
in interface Block
public Position getPosition()
getPosition
in interface Block
public void setOrientation(Orientation orientation)
setOrientation
in interface Block
public void calculateCoord(LayoutParameters layoutParam)
Block
calculateCoord
in interface Block
public void calculateRootCoord(LayoutParameters layoutParam)
calculateRootCoord
in interface Block
public Block.Type getType()
protected abstract void writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
IOException
public void writeJson(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
writeJson
in interface Block
IOException
Copyright © 2019. All rights reserved.