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

View differences:

DxfText.java
17 17

  
18 18
/**
19 19
 * Entidad TEXT de AutoCAD
20
 * @author "Luis W. Sevilla" <sevilla_lui@gva.es>* @author administrador
20 21
 * 
21
 * @author "Luis W. Sevilla" <sevilla_lui@gva.es>* @author administrador
22
 * jmorell, 050406: El segundo punto es opcional.
22 23
 */
23 24
public class DxfText extends DxfEntity {
24 25
	public final static int ALIGN_LEFT		= 0;
......
29 30
	public final static int ALIGN_FIT		= 5;
30 31
	private String text = null;
31 32
	Point2D [] pts;
33
	private Point2D pt;
32 34
	private double rot = 0.0;
33 35
	private double h = 1.0;
34 36
	int align = ALIGN_LEFT;
37
	private boolean twoPointsFlag;
35 38
	
36 39
	public DxfText(IProjection proj, DxfLayer layer, String txt) {
37 40
		super(proj, layer);
......
39 42
		extent = new Extent();
40 43
		text = txt;
41 44
		pts = new Point2D[2];
45
		pt = new Point2D.Double();
46
		twoPointsFlag = false;
42 47
	}
48
	
49
	public void setPt(Point2D pt) {
50
		this.pt = pt;
51
	}
52
	public Point2D getPt() {
53
		return pt;
54
	}
55
	public void setTwoPointsFlag(boolean f) {
56
		twoPointsFlag = f;
57
	}
58
	public boolean getTwoPointsFlag() {
59
		return twoPointsFlag;
60
	}
43 61

  
44 62
	public void setPt1(Point2D pt) { 
45 63
		pts[0] = pt;

Also available in: Unified diff