public static FramesConfig imports ( Xml root ) { Check . notNull ( root ) ; final Xml node = root . getChild ( NODE_FRAMES ) ; final int horizontals = node . readInteger ( ATT_HORIZONTAL ) ; final int verticals = node . readInteger ( ATT_VERTICAL ) ; final int offsetX = node . readInteger ( 0 , ATT_OFFSET_X ) ; final int offsetY = node . readInteger ( 0 , ATT_OFFSET_Y ) ; return new FramesConfig ( horizontals , verticals , offsetX , offsetY ) ; }
Imports the frames config from node .