Class CompositeDiagramShape
- java.lang.Object
-
- org.stathissideris.ascii2image.graphics.DiagramComponent
-
- org.stathissideris.ascii2image.graphics.CompositeDiagramShape
-
public class CompositeDiagramShape extends DiagramComponent
-
-
Constructor Summary
Constructors Constructor Description CompositeDiagramShape()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToShapes(DiagramShape shape)voidconnectEndsToAnchors(TextGrid grid, Diagram diagram)DiagramComponentconnectLines()Returns a new diagram component with the lines of this CompositeDiagramShape connected.static DiagramComponentcreateFromBoundaryCells(TextGrid grid, CellSet boundaryCells, int cellWidth, int cellHeight)static DiagramComponentcreateOpenFromBoundaryCells(TextGrid grid, CellSet boundaryCells, int cellWidth, int cellHeight, boolean allRound)java.util.ArrayListgetShapes()static voidmain(java.lang.String[] args)voidscale(float factor)-
Methods inherited from class org.stathissideris.ascii2image.graphics.DiagramComponent
createClosedFromBoundaryCells, createClosedFromBoundaryCells, makePointForCell
-
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
createFromBoundaryCells
public static DiagramComponent createFromBoundaryCells(TextGrid grid, CellSet boundaryCells, int cellWidth, int cellHeight)
-
createOpenFromBoundaryCells
public static DiagramComponent createOpenFromBoundaryCells(TextGrid grid, CellSet boundaryCells, int cellWidth, int cellHeight, boolean allRound)
-
connectLines
public DiagramComponent connectLines()
Returns a new diagram component with the lines of this CompositeDiagramShape connected. It can a composite or simple shape- Returns:
-
addToShapes
public void addToShapes(DiagramShape shape)
-
scale
public void scale(float factor)
-
getShapes
public java.util.ArrayList getShapes()
- Returns:
-
-