public static RasterData load ( Xml root , String color ) { final Xml node = root . getChild ( color ) ; final double force = node . readDouble ( ATT_FORCE ) ; final int amplitude = node . readInteger ( ATT_AMPLITUDE ) ; final int offset = node . readInteger ( ATT_OFFSET ) ; final int type = node . readInteger ( ATT_TYPE ) ; return new RasterData ( force , amplitude , offset , type ) ; }
Load raster data from node .