Revision 10317
trunk/libraries/libDwg/src/com/iver/cit/jdwglib/dwg/objects/DwgText.java | ||
---|---|---|
351 | 351 |
DwgText transformedEntity = (DwgText) this.clone(); |
352 | 352 |
transformedEntity.setInsertionPoint(newInsertionPoint); |
353 | 353 |
|
354 |
pointAux = new Point2D.Double(alignmentPoint.getX() - bPoint[0], |
|
355 |
alignmentPoint.getY() - bPoint[1]); |
|
356 |
laX = insPoint.getX() + ((pointAux.getX()*scale[0])*Math.cos(rot) + (pointAux.getY()*scale[1])*(-1)*Math.sin(rot)); |
|
357 |
laY = insPoint.getY() + ((pointAux.getX()*scale[0])*Math.sin(rot) + (pointAux.getY()*scale[1])*Math.cos(rot)); |
|
358 |
Point2D.Double newAlignPoint = new Point2D.Double(laX, laY); |
|
359 |
transformedEntity.setAlignmentPoint(newAlignPoint); |
|
360 |
|
|
354 |
if(alignmentPoint != null){ |
|
355 |
pointAux = new Point2D.Double(alignmentPoint.getX() - bPoint[0], |
|
356 |
alignmentPoint.getY() - bPoint[1]); |
|
357 |
laX = insPoint.getX() + ((pointAux.getX()*scale[0])*Math.cos(rot) + (pointAux.getY()*scale[1])*(-1)*Math.sin(rot)); |
|
358 |
laY = insPoint.getY() + ((pointAux.getX()*scale[0])*Math.sin(rot) + (pointAux.getY()*scale[1])*Math.cos(rot)); |
|
359 |
Point2D.Double newAlignPoint = new Point2D.Double(laX, laY); |
|
360 |
transformedEntity.setAlignmentPoint(newAlignPoint); |
|
361 |
} |
|
361 | 362 |
//TODO Transformar el resto de parametros en base a los datos del bloque |
362 | 363 |
//altura, etc. |
363 | 364 |
} |
Also available in: Unified diff