|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.fmap.mapcontrol.impl.DefaultMapControlManager
public class DefaultMapControlManager
| Constructor Summary | |
|---|---|
DefaultMapControlManager()
|
|
| Method Summary | |
|---|---|
void |
clearSnappers()
|
MapControlDrawer |
createDefaultMapControlDrawer()
It returns the default implementation for the MapControlDrawer. |
MapControl |
createJMapControlPanel()
|
LayersDynObjectSetComponent |
createLayersDynObjectSetComponent(Map<String,DynObjectSet> layerName2InfoByPoint)
Creates a readonly component to view information of a set of layers. |
LayersDynObjectSetComponent |
createLayersDynObjectSetComponent(Map<String,DynObjectSet> layerName2InfoByPoint,
boolean writable)
Creates a component to view information of a set of layers. |
MapControlDrawer |
createMapControlDrawer(String name)
Creates a MapControlDrawer from a name. |
void |
disableSnapping()
|
void |
enableSnapping()
|
ISymbol |
getAxisReferenceSymbol()
Gets the symbol used to draw the axis of a geometry. |
Preferences |
getEditionPreferences()
|
ISymbol |
getGeometrySelectionSymbol()
Gets the symbol used to draw the selected geometries. |
ISymbol |
getHandlerSymbol()
Gets the symbol used to draw the handlers. |
ISymbol |
getSelectionSymbol()
Gets the symbol used to draw the selected geometries. |
ISnapper |
getSnapperAt(int index)
Returns a snapper in a concrete position; |
int |
getSnapperCount()
Returns the number of registered snappers. |
int |
getTolerance()
Tolerance (in pixels) that has to be used by the tools that use snapping. |
void |
registerDefaultMapControlDrawer(Class mapControlDrawerClass)
It registers the default implementation for the MapControlDrawer. |
void |
registerMapControlDrawer(String name,
Class mapControlDrawerClass)
Register a MapControlDrawer by name. |
void |
registerSnapper(String name,
Class snapperClass)
Add a snapper. |
void |
setAxisReferenceSymbol(ISymbol axisReferencesSymbol)
Sets the symbol that has to be used to draw a geometry that represent the axis of a geometry. |
void |
setGeometrySelectionSymbol(ISymbol geometrySelectionSymbol)
Sets the symbol that has to be used to draw a geometry when it is selected. |
void |
setHandlerSymbol(ISymbol handlerSymbol)
Sets the symbol that has to be used to draw the handlers. |
void |
setSelectionSymbol(ISymbol selectionSymbol)
Sets the symbol that has to be used to draw a geometry when it is selected. |
void |
setTolerance(int tolerance)
Sets the tolerance (in pixels) that has to be used by the tools that use snapping. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMapControlManager()
| Method Detail |
|---|
public MapControlDrawer createDefaultMapControlDrawer()
throws MapControlCreationException
MapControlManagerMapControlDrawer.
createDefaultMapControlDrawer in interface MapControlManagerMapControlDrawer.
MapControlCreationException
public MapControlDrawer createMapControlDrawer(String name)
throws MapControlCreationException
MapControlManagerMapControlDrawer from a name.
createMapControlDrawer in interface MapControlManagername - Name of the MapControlDrawer.
MapControlDrawer.
MapControlCreationExceptionpublic void registerDefaultMapControlDrawer(Class mapControlDrawerClass)
MapControlManagerMapControlDrawer.
registerDefaultMapControlDrawer in interface MapControlManagermapControlDrawerClass - A MapControlDrawer.
public void registerMapControlDrawer(String name,
Class mapControlDrawerClass)
MapControlManagerMapControlDrawer by name.
registerMapControlDrawer in interface MapControlManagername - Name of the MapControlDrawer.mapControlDrawerClass - Class used to draw graphical objects on a map.public int getTolerance()
MapControlManager
getTolerance in interface MapControlManagerpublic void setTolerance(int tolerance)
MapControlManager
setTolerance in interface MapControlManagertolerance - The tolerance to applypublic void clearSnappers()
public ISymbol getAxisReferenceSymbol()
MapControlManager
getAxisReferenceSymbol in interface MapControlManagerpublic ISymbol getGeometrySelectionSymbol()
MapControlManager
getGeometrySelectionSymbol in interface MapControlManagerpublic ISymbol getHandlerSymbol()
MapControlManager
getHandlerSymbol in interface MapControlManagerpublic ISymbol getSelectionSymbol()
MapControlManager
getSelectionSymbol in interface MapControlManagerpublic void setAxisReferenceSymbol(ISymbol axisReferencesSymbol)
MapControlManager
setAxisReferenceSymbol in interface MapControlManageraxisReferencesSymbol - The symbol to apply.public void setGeometrySelectionSymbol(ISymbol geometrySelectionSymbol)
MapControlManager
setGeometrySelectionSymbol in interface MapControlManagergeometrySelectionSymbol - The symbol to apply.public void setHandlerSymbol(ISymbol handlerSymbol)
MapControlManager
setHandlerSymbol in interface MapControlManagerhandlerSymbol - The symbol to apply.public void setSelectionSymbol(ISymbol selectionSymbol)
MapControlManager
setSelectionSymbol in interface MapControlManagerselectionSymbol - The symbol to apply.
public void registerSnapper(String name,
Class snapperClass)
MapControlManager
registerSnapper in interface MapControlManagerpublic ISnapper getSnapperAt(int index)
MapControlManager
getSnapperAt in interface MapControlManagerindex - Snapper position.
public int getSnapperCount()
MapControlManager
getSnapperCount in interface MapControlManagerpublic void disableSnapping()
public void enableSnapping()
public Preferences getEditionPreferences()
getEditionPreferences in interface MapControlManager
public MapControl createJMapControlPanel()
throws MapControlCreationException
createJMapControlPanel in interface MapControlManagerMapControlCreationExceptionpublic LayersDynObjectSetComponent createLayersDynObjectSetComponent(Map<String,DynObjectSet> layerName2InfoByPoint)
MapControlManagerDynObjects, through a
DynObjectSet.
createLayersDynObjectSetComponent in interface MapControlManagerlayerName2InfoByPoint - the map of DynObjectSet for each layer.
public LayersDynObjectSetComponent createLayersDynObjectSetComponent(Map<String,DynObjectSet> layerName2InfoByPoint,
boolean writable)
MapControlManagerDynObjects, through a
DynObjectSet.
createLayersDynObjectSetComponent in interface MapControlManagerlayerName2InfoByPoint - the map of DynObjectSet for each layer.writable - if the DynObjects loaded must be able to be edited
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||