public void compile() { cleanup(); buildLines(); calculateDimensions(); flushChanges(); snapToSize(); markAsDirty(); }