gvsig-vectorediting / org.gvsig.vectorediting / trunk / org.gvsig.vectorediting / org.gvsig.vectorediting.lib / org.gvsig.vectorediting.lib.spi / src / main / java / org / gvsig / vectorediting / lib / spi / DefaultEditingServiceinfo.java @ 14
History | View | Annotate | Download (1.93 KB)
1 |
/*
|
---|---|
2 |
* Copyright 2014 DiSiD Technologies S.L.L. All rights reserved.
|
3 |
*
|
4 |
* Project : DiSiD org.gvsig.vectorediting.lib.spi
|
5 |
* SVN Id : $Id$
|
6 |
*/
|
7 |
package org.gvsig.vectorediting.lib.spi; |
8 |
|
9 |
import java.awt.Image; |
10 |
import java.util.List; |
11 |
|
12 |
import org.gvsig.vectorediting.lib.api.EditingServiceInfo; |
13 |
import org.gvsig.vectorediting.lib.api.EditingServiceParameter; |
14 |
|
15 |
public class DefaultEditingServiceinfo implements EditingServiceInfo { |
16 |
|
17 |
private String name; |
18 |
|
19 |
private String description; |
20 |
|
21 |
private boolean createsNewGeometries; |
22 |
|
23 |
private Image mouseCursor; |
24 |
|
25 |
private List<EditingServiceParameter> parameters; |
26 |
|
27 |
private int supportedPrimitiveGeometryType; |
28 |
|
29 |
public DefaultEditingServiceinfo(String name, String description, |
30 |
boolean createsNewGeometries, Image mouseCursor, |
31 |
List<EditingServiceParameter> parameters,
|
32 |
int supportedPrimitiveGeometryType) {
|
33 |
super();
|
34 |
this.name = name;
|
35 |
this.description = description;
|
36 |
this.createsNewGeometries = createsNewGeometries;
|
37 |
this.mouseCursor = mouseCursor;
|
38 |
this.parameters = parameters;
|
39 |
this.supportedPrimitiveGeometryType = supportedPrimitiveGeometryType;
|
40 |
} |
41 |
|
42 |
public boolean createsNewGeometries() { |
43 |
// TODO Auto-generated method stub
|
44 |
return this.createsNewGeometries; |
45 |
} |
46 |
|
47 |
public String getDescription() { |
48 |
// TODO Auto-generated method stub
|
49 |
return this.description; |
50 |
} |
51 |
|
52 |
public Image getMouseIcon() { |
53 |
// TODO Auto-generated method stub
|
54 |
return this.mouseCursor; |
55 |
} |
56 |
|
57 |
public String getName() { |
58 |
// TODO Auto-generated method stub
|
59 |
return this.name; |
60 |
} |
61 |
|
62 |
public List<EditingServiceParameter> getParameters() { |
63 |
// TODO Auto-generated method stub
|
64 |
return this.parameters; |
65 |
} |
66 |
|
67 |
public int getSupportedPrimitiveGeometryType() { |
68 |
// TODO Auto-generated method stub
|
69 |
return this.supportedPrimitiveGeometryType; |
70 |
} |
71 |
|
72 |
public EditingServiceParameter getParameterInfo(String name) { |
73 |
// TODO Auto-generated method stub
|
74 |
return null; |
75 |
} |
76 |
|
77 |
} |