Revision 269 org.gvsig.dgn/trunk/org.gvsig.dgn/org.gvsig.dgn.provider.legend/src/main/java/org/gvsig/fmap/dal/store/dgn/legend/DGNGetLegendBuilder.java
DGNGetLegendBuilder.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import org.gvsig.fmap.dal.store.dgn.LegendBuilder; |
31 | 31 |
import org.gvsig.tools.ToolsLocator; |
32 |
import org.gvsig.tools.dynobject.AbstractDynMethod; |
|
32 | 33 |
import org.gvsig.tools.dynobject.DynClass; |
33 |
import org.gvsig.tools.dynobject.DynMethod; |
|
34 | 34 |
import org.gvsig.tools.dynobject.DynObject; |
35 | 35 |
import org.gvsig.tools.dynobject.DynObjectManager; |
36 | 36 |
import org.gvsig.tools.dynobject.exception.DynMethodException; |
37 | 37 |
import org.gvsig.tools.dynobject.exception.DynMethodNotSupportedException; |
38 | 38 |
|
39 |
public class DGNGetLegendBuilder implements DynMethod {
|
|
39 |
public class DGNGetLegendBuilder extends AbstractDynMethod {
|
|
40 | 40 |
private static int code = DynObjectManager.NULLCODE; |
41 | 41 |
|
42 | 42 |
static void register(DynClass DGNDynClass) { |
... | ... | |
50 | 50 |
|
51 | 51 |
} |
52 | 52 |
|
53 |
public DGNGetLegendBuilder() { |
|
54 |
super(LegendBuilder.DYNMETHOD_BUILDER_NAME,"DGN LegendBuilder creator"); |
|
55 |
} |
|
56 |
|
|
57 |
@Override |
|
53 | 58 |
public int getCode() throws DynMethodNotSupportedException { |
54 | 59 |
return code; |
55 | 60 |
} |
56 | 61 |
|
57 |
public String getDescription() { |
|
58 |
return "DGN LegendBuilder creator"; |
|
59 |
} |
|
60 |
|
|
61 |
public String getName() { |
|
62 |
return LegendBuilder.DYNMETHOD_BUILDER_NAME; |
|
63 |
} |
|
64 |
|
|
65 |
public Object invoke(Object self, DynObject context) |
|
62 |
@Override |
|
63 |
public Object invoke(DynObject self, Object[] args) |
|
66 | 64 |
throws DynMethodException { |
67 | 65 |
return new DGNLegendBuilder(); |
68 | 66 |
} |
Also available in: Unified diff