Revision 1607 branches/v02_desarrollo/libraries/libCq CMS for java.old/src/org/cresques/px/dxf/DxfPoint.java

View differences:

DxfPoint.java
11 11
import org.cresques.cts.ICoordTrans;
12 12
import org.cresques.cts.IProjection;
13 13
import org.cresques.geo.ViewPortData;
14
import org.cresques.io.DxfGroup;
14 15
import org.cresques.px.Extent;
15 16

  
16 17
/**
17 18
 * Entidad TEXT de AutoCAD
18
 * 
19
 * jmorell: Actualizaci?n de la escritura al formato DXF2000.
19 20
 * @author "Luis W. Sevilla" <sevilla_lui@gva.es>* @author administrador
20 21
 */
21 22
public class DxfPoint extends DxfEntity {
22 23
	
23
	Point2D pt;
24
	private Point2D pt;
24 25
	
25 26
	public DxfPoint(IProjection proj, DxfLayer layer) {
26 27
		super(proj, layer);
......
64 65
		//g.setTransform(msave);
65 66
	}
66 67

  
67
	/* (non-Javadoc)
68
	 * @see org.cresques.px.dxf.DxfEntity#toDxfFileString()
68
	/**
69
	 * 050221, jmorell: Escritura de puntos en un DXF2000.
69 70
	 */
70 71
	public String toDxfString() {
71
		// TODO Auto-generated method stub
72
		return "";
72
		StringBuffer sb = null;
73
		sb = new StringBuffer( DxfGroup.toString(0, "POINT") );
74
		sb.append( DxfGroup.toString(5, getHandle()) );
75
		sb.append( DxfGroup.toString(100, "AcDbEntity") );
76
		sb.append( DxfGroup.toString(8, layer.getName()) );
77
		sb.append( DxfGroup.toString(62, dxfColor) );
78
		sb.append( DxfGroup.toString(100, "AcDbPoint") );
79
		sb.append( DxfGroup.toString(10, pt.getX(), 6) );
80
		sb.append( DxfGroup.toString(20, pt.getY(), 6) );
81
		sb.append( DxfGroup.toString(30, 0.0, 6) );
82
		return sb.toString();
73 83
	}
84
	/**
85
	 * @return Returns the pt.
86
	 */
87
	public Point2D getPt() {
88
		return pt;
89
	}
74 90
}

Also available in: Unified diff