예제 #1
0
 /** @see IFigure#translateToParent(Translatable) */
 public void translateToParent(Translatable t) {
   if (useLocalCoordinates())
     t.performTranslate(getBounds().x + getInsets().left, getBounds().y + getInsets().top);
 }
예제 #2
0
 /** @see IFigure#translateFromParent(Translatable) */
 public void translateFromParent(Translatable t) {
   if (useLocalCoordinates())
     t.performTranslate(-getBounds().x - getInsets().left, -getBounds().y - getInsets().top);
 }