public int add(RenderPart part, int zIndex) {
   part.setZIndex(zIndex);
   parts.add(part);
   return parts.size() - 1;
 }
示例#2
0
 @Override
 public int compareTo(RenderPart arg0) {
   return arg0.getZIndex() - getZIndex();
 }