Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /* ====================================================================
     Licensed to the Apache Software Foundation (ASF) under one or more
     contributor license agreements.  See the NOTICE file distributed with
     this work for additional information regarding copyright ownership.
     The ASF licenses this file to You under the Apache License, Version 2.0
     (the "License"); you may not use this file except in compliance with
     the License.  You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
 
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
 
 package org.apache.poi.hslf.record;
 
 
A wrapper around a DDF (Escher) EscherTextbox Record. Causes the DDF Record to be accessible as if it were a HSLF record. Note: when asked to write out, will simply put any child records correctly into the Escher layer. A call to the escher layer to write out (by the parent PPDrawing) will do the actual write out

Author(s):
Nick Burch
 
 public final class EscherTextboxWrapper extends RecordContainer {
 	private long _type;
 	private int shapeId;
Returns the underlying DDF Escher Record
 
 	public EscherTextboxRecord getEscherRecord() { return ; }

Creates the wrapper for the given DDF Escher Record and children
 
 		 = textbox;
 
 		// Find the child records in the escher data
 		byte[] data = .getData();
 		 = Record.findChildRecords(data,0,data.length);
 		for (Record r : this.) {
 			if (r instanceof StyleTextPropAtom) { this. = (StyleTextPropAtomr; }
 		}
 	}

Creates a new, empty wrapper for DDF Escher Records and their children
 
 	public EscherTextboxWrapper() {
 
 		 = new Record[0];
 	}


Return the type of the escher record (normally in the 0xFnnn range)
 
 	public long getRecordType() { return ; }

Stores the data for the child records back into the Escher layer. Doesn't actually do the writing out, that's left to the Escher layer to do. Must be called before writeOut/serialize is called on the underlying Escher object!
 
 	public void writeOut(OutputStream outthrows IOException {
 		// Write out our children, and stuff them into the Escher layer
 
 		// Grab the children's data
 		for(int i=0; i<.i++) {
 			[i].writeOut(baos);
 		}
 		byte[] data = baos.toByteArray();
 
 		// Save in the escher layer
 	}

Returns:
Shape ID
	public int getShapeId(){
		return ;
	}

Parameters:
id Shape ID
	public void setShapeId(int id){
		 = id;
	}
	}
	public void setStyleTextProp9Atom(final StyleTextProp9Atom nineAtom) {
		this. = nineAtom;
	}
		return this.;
	}
New to GrepCode? Check out our FAQ X