Esempio n. 1
0
 @Override
 public void setParentModified(boolean b) {
   super.setParentModified(b);
   if (b) {
     tempStartPt = (Point) startPt.clone();
     tempEndPt = (Point) endPt.clone();
     tempStartIndex = startStateIndex;
     tempEndIndex = endStateIndex;
     sdx = (int) startCtrlPt.getX() - (int) startPt.getX();
     sdy = (int) startCtrlPt.getY() - (int) startPt.getY();
     edx = (int) endCtrlPt.getX() - (int) endPt.getX();
     edy = (int) endCtrlPt.getY() - (int) endPt.getY();
   }
 }
Esempio n. 2
0
 @Override
 public void setPage(int i) {
   if (selectStatus == SelectOptions.TXT) {
     if (attrib != null) {
       for (int j = 0; j < attrib.size(); j++) {
         ObjAttribute s = attrib.get(j);
         if (s.getSelectStatus() != 0) {
           s.setPage(i);
           break;
         }
       }
     }
   } else {
     super.setPage(i);
   }
 }