示例#1
0
 public JobActor copy() {
   JobActor copy = new JobActor(pos, username);
   copy.name = name;
   copy.color = this.color;
   return copy;
 }
示例#2
0
 private JobActor createJobActor(GridJob job) {
   JobActor jobActor = new JobActor(null, job.getOwner());
   jobActor.color = legend.getItemColor(job.getOwner());
   jobActor.name = job.getFullJobId();
   return jobActor;
 }