/** * Same lazy view function, but with resource parameters * First, checks whether model is initialized, and calls initialize() if not. Then, calls * addView(). IMPORTANT: clients should always call getView(). */ private void lazyAddView(TextAnnotation ta, ResourceManager runtimeAttributes) throws AnnotatorException { if (!isInitialized()) { doInitialize(); } addView(ta, runtimeAttributes); }
/** * First, checks whether model is initialized, and calls initialize() if not. Then, calls * addView(). IMPORTANT: clients should always call getView(). * * @param ta */ private void lazyAddView(TextAnnotation ta) throws AnnotatorException { if (!isInitialized()) { doInitialize(); } addView(ta); }
/** * Same lazy view function, but with resource parameters * First, checks whether model is initialized, and calls initialize() if not. Then, calls * addView(). IMPORTANT: clients should always call getView(). */ private void lazyAddView(TextAnnotation ta, ResourceManager runtimeAttributes) throws AnnotatorException { if (!isInitialized()) { doInitialize(); } addView(ta, runtimeAttributes); }
/** * First, checks whether model is initialized, and calls initialize() if not. Then, calls * addView(). IMPORTANT: clients should always call getView(). * * @param ta */ private void lazyAddView(TextAnnotation ta) throws AnnotatorException { if (!isInitialized()) { doInitialize(); } addView(ta); }