root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / FPoint2DM.java @ 25515
History | View | Annotate | Download (1.5 KB)
1 |
package com.iver.cit.gvsig.fmap.core; |
---|---|
2 |
|
3 |
/**
|
4 |
* Punto 2D con coordenada M
|
5 |
*
|
6 |
* @author An�nimo ;-)
|
7 |
*/
|
8 |
public class FPoint2DM extends FPoint2D implements FShapeM { |
9 |
private double m; |
10 |
private static final String NAME = "POINTM"; |
11 |
|
12 |
/**
|
13 |
* Crea un nuevo FPoint2DM.
|
14 |
*
|
15 |
* @param x Coordenada x.
|
16 |
* @param y Coordenada y.
|
17 |
* @param z Coordenada z.
|
18 |
*/
|
19 |
public FPoint2DM(double x, double y, double m) { |
20 |
super(x, y);
|
21 |
this.m = m;
|
22 |
} |
23 |
|
24 |
public double getM() { |
25 |
return m;
|
26 |
} |
27 |
|
28 |
public void setM(double value) { |
29 |
m = value; |
30 |
} |
31 |
|
32 |
/*
|
33 |
* (non-Javadoc)
|
34 |
* @see com.iver.cit.gvsig.fmap.core.FShapeM#getMs()
|
35 |
*/
|
36 |
public double[] getMs() { |
37 |
// tODO Auto-generated method stub
|
38 |
return null; |
39 |
} |
40 |
|
41 |
/*
|
42 |
* (non-Javadoc)
|
43 |
* @see com.iver.cit.gvsig.fmap.core.FShapeM#isDecreasing()
|
44 |
*/
|
45 |
public boolean isDecreasing() { |
46 |
// tODO Auto-generated method stub
|
47 |
return false; |
48 |
} |
49 |
|
50 |
/*
|
51 |
* (non-Javadoc)
|
52 |
* @see com.iver.cit.gvsig.fmap.core.FShapeM#setMAt(int, double)
|
53 |
*/
|
54 |
public void setMAt(int i, double value) { |
55 |
// tODO Auto-generated method stub
|
56 |
|
57 |
} |
58 |
|
59 |
/*
|
60 |
* (non-Javadoc)
|
61 |
* @see com.iver.cit.gvsig.fmap.core.FShapeM#revertMs()
|
62 |
*/
|
63 |
public void revertMs(){ |
64 |
|
65 |
} |
66 |
|
67 |
/*
|
68 |
* (non-Javadoc)
|
69 |
* @see com.iver.cit.gvsig.fmap.core.FShapeM#toText()
|
70 |
*/
|
71 |
public String toText() { |
72 |
StringBuffer str = new StringBuffer(); |
73 |
str.append(NAME); |
74 |
str.append(" ((");
|
75 |
str.append(getX() + " " + getY() + " " + m); |
76 |
str.append("))");
|
77 |
return str.toString();
|
78 |
} |
79 |
} |