public String toString(){ StringBuffer buf = new StringBuffer(); buf.append("AnimationInfoAtom\n"); buf.append("\tDimColor: " + getDimColor() + "\n"); int mask = getMask(); buf.append("\tMask: " + mask + ", 0x"+Integer.toHexString(mask)+"\n"); buf.append("\t Reverse: " + getFlag(Reverse)+"\n"); buf.append("\t Automatic: " + getFlag(Automatic)+"\n"); buf.append("\t Sound: " + getFlag(Sound)+"\n"); buf.append("\t StopSound: " + getFlag(StopSound)+"\n"); buf.append("\t Play: " + getFlag(Play)+"\n"); buf.append("\t Synchronous: " + getFlag(Synchronous)+"\n"); buf.append("\t Hide: " + getFlag(Hide)+"\n"); buf.append("\t AnimateBg: " + getFlag(AnimateBg)+"\n"); buf.append("\tSoundIdRef: " + getSoundIdRef() + "\n"); buf.append("\tDelayTime: " + getDelayTime() + "\n"); buf.append("\tOrderID: " + getOrderID() + "\n"); buf.append("\tSlideCount: " + getSlideCount() + "\n"); return buf.toString(); }
/** * Assign a movie to this shape * * @see org.apache.poi.hslf.usermodel.SlideShow#addMovie(String, int) * @param idx the index of the movie */ public void setMovieIndex(int idx){ OEShapeAtom oe = (OEShapeAtom)getClientDataRecord(RecordTypes.OEShapeAtom.typeID); oe.setOptions(idx); AnimationInfo an = (AnimationInfo)getClientDataRecord(RecordTypes.AnimationInfo.typeID); if(an != null) { AnimationInfoAtom ai = an.getAnimationInfoAtom(); ai.setDimColor(0x07000000); ai.setFlag(AnimationInfoAtom.Automatic, true); ai.setFlag(AnimationInfoAtom.Play, true); ai.setFlag(AnimationInfoAtom.Synchronous, true); ai.setOrderID(idx + 1); } }
public boolean isAutoPlay(){ AnimationInfo an = (AnimationInfo)getClientDataRecord(RecordTypes.AnimationInfo.typeID); if(an != null){ return an.getAnimationInfoAtom().getFlag(AnimationInfoAtom.Automatic); } return false; }
/** * @param bit the bit to check * @return whether the specified flag is set */ public boolean getFlag(int bit){ return (getMask() & bit) != 0; }
/** * Constructs a brand new link related atom record. */ protected AnimationInfoAtom() { _recdata = new byte[28]; _header = new byte[8]; LittleEndian.putShort(_header, 0, (short)0x01); LittleEndian.putShort(_header, 2, (short)getRecordType()); LittleEndian.putInt(_header, 4, _recdata.length); }
/** * Create a new AnimationInfo, with blank fields */ public AnimationInfo() { // Setup our header block _header = new byte[8]; _header[0] = 0x0f; // We are a container record LittleEndian.putShort(_header, 2, (short)getRecordType()); _children = new Record[1]; _children[0] = animationAtom = new AnimationInfoAtom(); }
/** * Assign a movie to this shape * * @see org.apache.poi.hslf.usermodel.HSLFSlideShow#addMovie(String, int) * @param idx the index of the movie */ public void setMovieIndex(int idx){ ExObjRefAtom oe = getClientDataRecord(RecordTypes.ExObjRefAtom.typeID); oe.setExObjIdRef(idx); AnimationInfo an = getClientDataRecord(RecordTypes.AnimationInfo.typeID); if(an != null) { AnimationInfoAtom ai = an.getAnimationInfoAtom(); ai.setDimColor(0x07000000); ai.setFlag(AnimationInfoAtom.Automatic, true); ai.setFlag(AnimationInfoAtom.Play, true); ai.setFlag(AnimationInfoAtom.Synchronous, true); ai.setOrderID(idx + 1); } }
public boolean isAutoPlay(){ AnimationInfo an = getClientDataRecord(RecordTypes.AnimationInfo.typeID); if(an != null){ return an.getAnimationInfoAtom().getFlag(AnimationInfoAtom.Automatic); } return false; }
/** * @param bit the bit to check * @return whether the specified flag is set */ public boolean getFlag(int bit){ return (getMask() & bit) != 0; }
/** * Constructs a brand new link related atom record. */ protected AnimationInfoAtom() { _recdata = new byte[28]; _header = new byte[8]; LittleEndian.putShort(_header, 0, (short)0x01); LittleEndian.putShort(_header, 2, (short)getRecordType()); LittleEndian.putInt(_header, 4, _recdata.length); }
/** * Create a new AnimationInfo, with blank fields */ public AnimationInfo() { // Setup our header block _header = new byte[8]; _header[0] = 0x0f; // We are a container record LittleEndian.putShort(_header, 2, (short)getRecordType()); _children = new Record[1]; _children[0] = animationAtom = new AnimationInfoAtom(); }
public String toString(){ StringBuffer buf = new StringBuffer(); buf.append("AnimationInfoAtom\n"); buf.append("\tDimColor: " + getDimColor() + "\n"); int mask = getMask(); buf.append("\tMask: " + mask + ", 0x"+Integer.toHexString(mask)+"\n"); buf.append("\t Reverse: " + getFlag(Reverse)+"\n"); buf.append("\t Automatic: " + getFlag(Automatic)+"\n"); buf.append("\t Sound: " + getFlag(Sound)+"\n"); buf.append("\t StopSound: " + getFlag(StopSound)+"\n"); buf.append("\t Play: " + getFlag(Play)+"\n"); buf.append("\t Synchronous: " + getFlag(Synchronous)+"\n"); buf.append("\t Hide: " + getFlag(Hide)+"\n"); buf.append("\t AnimateBg: " + getFlag(AnimateBg)+"\n"); buf.append("\tSoundIdRef: " + getSoundIdRef() + "\n"); buf.append("\tDelayTime: " + getDelayTime() + "\n"); buf.append("\tOrderID: " + getOrderID() + "\n"); buf.append("\tSlideCount: " + getSlideCount() + "\n"); return buf.toString(); }