Class CompositeDiagramShape
java.lang.Object
org.stathissideris.ascii2image.graphics.DiagramComponent
org.stathissideris.ascii2image.graphics.CompositeDiagramShape
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToShapes(DiagramShape shape) voidconnectEndsToAnchors(TextGrid grid, Diagram diagram) 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) static voidvoidscale(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:
-