@Override public void writeObject( DataOutput out ) throws IOException { super.writeObject( out ); RotationInterpolator interp = (RotationInterpolator)node; out.writeFloat( interp.getMinimumAngle() ); out.writeFloat( interp.getMaximumAngle() ); }
/** * Copies all RotationInterpolator information from * <code>originalNode</code> into * the current node. This method is called from the * <code>cloneNode</code> method which is, in turn, called by the * <code>cloneTree</code> method.<P> * * @param originalNode the original node to duplicate. * @param forceDuplicate when set to <code>true</code>, causes the * <code>duplicateOnCloneTree</code> flag to be ignored. When * <code>false</code>, the value of each node's * <code>duplicateOnCloneTree</code> variable determines whether * NodeComponent data is duplicated or copied. * * @exception RestrictedAccessException if this object is part of a live * or compiled scenegraph. * * @see Node#duplicateNode * @see Node#cloneTree * @see NodeComponent#setDuplicateOnCloneTree */ @Override void duplicateAttributes(Node originalNode, boolean forceDuplicate) { super.duplicateAttributes(originalNode, forceDuplicate); RotationInterpolator ri = (RotationInterpolator) originalNode; setMinimumAngle(ri.getMinimumAngle()); setMaximumAngle(ri.getMaximumAngle()); }