public static Animation createAnimation ( XmlReader node ) { Check . notNull ( node ) ; final String name = node . readString ( ANIMATION_NAME ) ; final int start = node . readInteger ( ANIMATION_START ) ; final int end = node . readInteger ( ANIMATION_END ) ; final double speed = node . readDouble ( ANIMATION_SPEED ) ; final boolean reversed = node . readBoolean ( ANIMATION_REVERSED ) ; final boolean repeat = node . readBoolean ( ANIMATION_REPEAT ) ; return new Animation ( name , start , end , speed , reversed , repeat ) ; }
Create animation data from node .