public static void cacheStretchImgStates(String skinImgDir,String[] baseURLs,String[] states){
  if (states == null)   states=defaultImageStates;
  List<String> urls=addURLSuffix(baseURLs,defaultPieces);
  List<String> stateURLs=addURLSuffix(baseURLs,states);
  String[] stateURLsArr=(String[])stateURLs.toArray(new String[stateURLs.size()]);
  stateURLs=addURLSuffix(stateURLsArr,defaultPieces);
  urls.addAll(stateURLs);
  cacheImgs(skinImgDir,urls);
}

public static void cacheStretchImgStates ( String skinImgDir , String [ ] baseURLs , String [ ] states ) { if ( states == null ) states = defaultImageStates ; List < String > urls = addURLSuffix ( baseURLs , defaultPieces ) ; List < String > stateURLs = addURLSuffix ( baseURLs , states ) ; String [ ] stateURLsArr = ( String [ ] ) stateURLs . toArray ( new String [ stateURLs . size ( ) ] ) ; stateURLs = addURLSuffix ( stateURLsArr , defaultPieces ) ; urls . addAll ( stateURLs ) ; cacheImgs ( skinImgDir , urls ) ; }
caches a set of state stretch images derived from a base image .
