示例#1
0
  public static TapZoneMap createZoneMap(String name, int width, int height) {
    if (ourMapsOption.getValue().contains(name)) {
      return null;
    }

    final TapZoneMap map = zoneMap(name);
    map.myWidth.setValue(width);
    map.myHeight.setValue(height);
    final List<String> lst = new LinkedList<String>(ourMapsOption.getValue());
    lst.add(name);
    ourMapsOption.setValue(lst);
    return map;
  }
示例#2
0
  public static void deleteZoneMap(String name) {
    if (ourPredefinedMaps.contains(name)) {
      return;
    }

    ourMaps.remove(name);

    final List<String> lst = new LinkedList<String>(ourMapsOption.getValue());
    lst.remove(name);
    ourMapsOption.setValue(lst);
  }
 ServerBookInfo getInfo() {
   final List<String> hashes = Hashes.getValue();
   if (hashes.size() == 0) {
     return null;
   }
   return new ServerBookInfo(
       hashes,
       Title.getValue(),
       fullUrl(DownloadUrl),
       Mimetype.getValue(),
       fullUrl(ThumbnailUrl),
       Size.getValue());
 }
示例#4
0
 public static List<String> zoneMapNames() {
   return ourMapsOption.getValue();
 }
示例#5
0
 public List<String> bookIds() {
   return myBooksInBasketOption.getValue();
 }