Lines 213-218
Link Here
|
213 |
|
213 |
|
214 |
int quadrant; |
214 |
int quadrant; |
215 |
if (connOwner != null) { |
215 |
if (connOwner != null) { |
|
|
216 |
|
217 |
// *********************** Fix part 1: switch to relative ********** |
218 |
connOwner.translateToRelative(startPoint); |
219 |
connOwner.translateToRelative(endPoint); |
220 |
// *********************** End of fix part 1 *********************** |
221 |
|
216 |
Rectangle connOwnerBounds = connOwner.getBounds(); |
222 |
Rectangle connOwnerBounds = connOwner.getBounds(); |
217 |
Point connOwnerCenter = connOwnerBounds.getCenter(); |
223 |
Point connOwnerCenter = connOwnerBounds.getCenter(); |
218 |
Point connOwnerTL = connOwnerBounds.getTopLeft(); |
224 |
Point connOwnerTL = connOwnerBounds.getTopLeft(); |
Lines 251-256
Link Here
|
251 |
|
257 |
|
252 |
figureBounds.setSize(transposer.t(figureSize)); |
258 |
figureBounds.setSize(transposer.t(figureSize)); |
253 |
figureBounds.setLocation(transposer.t(figurePoint)); |
259 |
figureBounds.setLocation(transposer.t(figurePoint)); |
|
|
260 |
|
261 |
// *********************** Fix part 2: come back to absolute ******* |
262 |
if (connOwner != null) { |
263 |
connOwner.translateToAbsolute(figureBounds); |
264 |
} |
265 |
// *********************** End of fix part 2 *********************** |
266 |
|
254 |
figure.setBounds(figureBounds); |
267 |
figure.setBounds(figureBounds); |
255 |
} |
268 |
} |
256 |
|
269 |
|