com.ignotus.aifile
Class BoundsCalculationVisitor
java.lang.Object
com.ignotus.aifile.ComponentVisitor
com.ignotus.aifile.BoundsCalculationVisitor
public class BoundsCalculationVisitor
- extends ComponentVisitor
Implements the ComponentVisitor interface to calculate the bounding rectangle of all geometry visited.
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) 2011