示例#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);
 }