org.stathissideris.ascii2image.graphics
Class CompositeDiagramShape

java.lang.Object
  extended by org.stathissideris.ascii2image.graphics.DiagramComponent
      extended by org.stathissideris.ascii2image.graphics.CompositeDiagramShape

public class CompositeDiagramShape
extends DiagramComponent

Author:
Efstathios Sideris

Constructor Summary
CompositeDiagramShape()
           
 
Method Summary
 void addToShapes(DiagramShape shape)
           
 void connectEndsToAnchors(TextGrid grid, Diagram diagram)
           
 DiagramComponent connectLines()
          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)
           
 ArrayList getShapes()
           
static void main(String[] args)
           
 void scale(float factor)
           
 
Methods inherited from class org.stathissideris.ascii2image.graphics.DiagramComponent
createClosedFromBoundaryCells, createClosedFromBoundaryCells, makePointForCell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeDiagramShape

public CompositeDiagramShape()
Method Detail

main

public static void main(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:

connectEndsToAnchors

public void connectEndsToAnchors(TextGrid grid,
                                 Diagram diagram)

addToShapes

public void addToShapes(DiagramShape shape)

scale

public void scale(float factor)

getShapes

public ArrayList getShapes()
Returns:


Copyright © 2013. All Rights Reserved.