net.paulhertz.aifile
Class BoundsCalculationVisitor

java.lang.Object
  extended by net.paulhertz.aifile.ComponentVisitor
      extended by net.paulhertz.aifile.BoundsCalculationVisitor

public class BoundsCalculationVisitor
extends ComponentVisitor

Implements the ComponentVisitor interface to calculate the bounding rectangle of all geometry visited.


Method Summary
 BezRectangle bounds()
           
static BezRectangle componentBounds(DisplayComponent comp)
           
 int getIndex()
           
static BoundsCalculationVisitor makeBoundsCalculationVisitor()
           
 void visitBezShape(BezShape comp)
          visits a BezShape node
 float xMax()
           
 float xMin()
           
 float yMax()
           
 float yMin()
           
 
Methods inherited from class net.paulhertz.aifile.ComponentVisitor
visitCustomComponent, visitDocumentComponent, visitGroupComponent, visitLayerComponent, visitPointText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeBoundsCalculationVisitor

public static BoundsCalculationVisitor makeBoundsCalculationVisitor()

componentBounds

public static BezRectangle componentBounds(DisplayComponent comp)

visitBezShape

public void visitBezShape(BezShape comp)
visits a BezShape node

Overrides:
visitBezShape in class ComponentVisitor
Parameters:
comp - a BezShape instance

xMax

public float xMax()
Returns:
the xMax

yMax

public float yMax()
Returns:
the yMax

xMin

public float xMin()
Returns:
the xMin

yMin

public float yMin()
Returns:
the yMin

getIndex

public int getIndex()
Returns:
the index

bounds

public BezRectangle bounds()


Processing library IgnoCodeLib by Paul Hertz. (C) 2013