Package nl.topicus.onderwijs.dashboard.datatypes

Examples of nl.topicus.onderwijs.dashboard.datatypes.Dot


    ArrayList<Dot> result = new ArrayList<Dot>();
    for (int i = 0; i < Math.min(5, builds.size()); i++) {
      Build build = builds.get(i);
      if (build.isBuilding()) {
        result.add(new Dot(DotColor.GRAY, build.getJob().getCode()));
      } else {
        switch (build.getResult()) {
        case SUCCESS:
          result
              .add(new Dot(DotColor.GREEN, build.getJob()
                  .getCode()));
          break;
        case UNSTABLE:
          result.add(new Dot(DotColor.YELLOW, build.getJob()
              .getCode()));
          break;
        case FAILURE:
          result.add(new Dot(DotColor.RED, build.getJob().getCode()));
          break;
        }
      }
    }
    return result;
View Full Code Here


            value = createRandomWeather();
          } else if (settings.type().equals(Dot.class)
              && settings.list()) {
            List<Dot> ret = new ArrayList<Dot>();
            for (int count = 0; count < 5; count++) {
              ret.add(new Dot(
                  DotColor.values()[random.nextInt(4)],
                  Integer.toString(count + 1)));
            }
            value = ret;
          } else if (settings.type().equals(Train.class)
View Full Code Here

  }

  public List<Dot> getServerStatusses() {
    List<Dot> ret = new ArrayList<Dot>();
    for (TopicusServerStatus curServer : getServers()) {
      ret.add(new Dot(curServer.getServerStatus(), curServer.getCode()));
    }
    return ret;
  }
View Full Code Here

TOP

Related Classes of nl.topicus.onderwijs.dashboard.datatypes.Dot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.