Class CompositeDiagramShape
java.lang.Object
org.stathissideris.ascii2image.graphics.DiagramComponent
org.stathissideris.ascii2image.graphics.CompositeDiagramShape
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToShapes
(DiagramShape shape) void
connectEndsToAnchors
(TextGrid grid, Diagram diagram) Returns a new diagram component with the lines of this CompositeDiagramShape connected.static DiagramComponent
createFromBoundaryCells
(TextGrid grid, CellSet boundaryCells, int cellWidth, int cellHeight) static DiagramComponent
createOpenFromBoundaryCells
(TextGrid grid, CellSet boundaryCells, int cellWidth, int cellHeight, boolean allRound) static void
void
scale
(float factor) Methods inherited from class org.stathissideris.ascii2image.graphics.DiagramComponent
createClosedFromBoundaryCells, createClosedFromBoundaryCells, makePointForCell
-
Constructor Details
-
CompositeDiagramShape
public CompositeDiagramShape()
-
-
Method Details
-
main
-
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
Returns a new diagram component with the lines of this CompositeDiagramShape connected. It can a composite or simple shape- Returns:
-
connectEndsToAnchors
-
addToShapes
-
scale
public void scale(float factor) -
getShapes
- Returns:
-