|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MapControlManager
This class is the manager of the MapControl library. It is used to manage all the properties related with the drawing of objects in a map, including default symbols used to draw objects in a map, the tolerance used by the selection or edition tools...
It also holds the implementations of the MapControlDrawer's,
that is the responsible to draw graphical objects in a map.
| Method Summary | |
|---|---|
MapControlDrawer |
createDefaultMapControlDrawer()
It returns the default implementation for the MapControlDrawer. |
MapControl |
createJMapControlPanel()
|
LayersDynObjectSetComponent |
createLayersDynObjectSetComponent(java.util.Map<java.lang.String,org.gvsig.tools.dynobject.DynObjectSet> layerName2InfoByPoint)
Creates a readonly component to view information of a set of layers. |
LayersDynObjectSetComponent |
createLayersDynObjectSetComponent(java.util.Map<java.lang.String,org.gvsig.tools.dynobject.DynObjectSet> layerName2InfoByPoint,
boolean writable)
Creates a component to view information of a set of layers. |
MapControlDrawer |
createMapControlDrawer(java.lang.String name)
Creates a MapControlDrawer from a name. |
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol |
getAxisReferenceSymbol()
Gets the symbol used to draw the axis of a geometry. |
java.util.prefs.Preferences |
getEditionPreferences()
|
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol |
getGeometrySelectionSymbol()
Gets the symbol used to draw the selected geometries. |
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol |
getHandlerSymbol()
Gets the symbol used to draw the handlers. |
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(java.lang.Class mapControlDrawerClass)
It registers the default implementation for the MapControlDrawer. |
void |
registerMapControlDrawer(java.lang.String name,
java.lang.Class mapControolDrawerClass)
Register a MapControlDrawer by name. |
void |
registerSnapper(java.lang.String name,
java.lang.Class snapperClass)
Add a snapper. |
void |
setAxisReferenceSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol axisReferencesSymbol)
Sets the symbol that has to be used to draw a geometry that represent the axis of a geometry. |
void |
setGeometrySelectionSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol geometrySelectionSymbol)
Sets the symbol that has to be used to draw a geometry when it is selected. |
void |
setHandlerSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol handlerSymbol)
Sets the symbol that has to be used to draw the handlers. |
void |
setTolerance(int tolerance)
Sets the tolerance (in pixels) that has to be used by the tools that use snapping. |
| Method Detail |
|---|
MapControlDrawer createDefaultMapControlDrawer()
throws MapControlCreationException
MapControlDrawer.
MapControlDrawer.
MapControlCreationException
MapControl createJMapControlPanel()
throws MapControlCreationException
MapControlCreationExceptionLayersDynObjectSetComponent createLayersDynObjectSetComponent(java.util.Map<java.lang.String,org.gvsig.tools.dynobject.DynObjectSet> layerName2InfoByPoint)
DynObjects, through a
DynObjectSet.
layerName2InfoByPoint - the map of DynObjectSet for each layer.
LayersDynObjectSetComponent createLayersDynObjectSetComponent(java.util.Map<java.lang.String,org.gvsig.tools.dynobject.DynObjectSet> layerName2InfoByPoint,
boolean writable)
DynObjects, through a
DynObjectSet.
layerName2InfoByPoint - the map of DynObjectSet for each layer.writable - if the DynObjects loaded must be able to be edited
MapControlDrawer createMapControlDrawer(java.lang.String name)
throws MapControlCreationException
MapControlDrawer from a name.
name - Name of the MapControlDrawer.
MapControlDrawer.
MapControlCreationExceptionorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getAxisReferenceSymbol()
java.util.prefs.Preferences getEditionPreferences()
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getGeometrySelectionSymbol()
org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getHandlerSymbol()
ISnapper getSnapperAt(int index)
index - Snapper position.
int getSnapperCount()
int getTolerance()
void registerDefaultMapControlDrawer(java.lang.Class mapControlDrawerClass)
MapControlDrawer.
mapControlDrawerClass - A MapControlDrawer.
void registerMapControlDrawer(java.lang.String name,
java.lang.Class mapControolDrawerClass)
MapControlDrawer by name.
name - Name of the MapControlDrawer.mapControolDrawerClass - Class used to draw graphical objects on a map.
void registerSnapper(java.lang.String name,
java.lang.Class snapperClass)
snapper - void setAxisReferenceSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol axisReferencesSymbol)
axisReferencesSymbol - The symbol to apply.void setGeometrySelectionSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol geometrySelectionSymbol)
geometrySelectionSymbol - The symbol to apply.void setHandlerSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol handlerSymbol)
handlerSymbol - The symbol to apply.void setTolerance(int tolerance)
tolerance - The tolerance to apply
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||