| Package | Description |
|---|---|
| org.gvsig.fmap.mapcontrol | |
| org.gvsig.fmap.mapcontrol.tools | |
| org.gvsig.fmap.mapcontrol.tools.Behavior |
| Modifier and Type | Field and Description |
|---|---|
protected Behavior |
MapControl.currentMapTool
Active
Behavior that will generate events according a
criterion, and then, with a ToolListener associated,
will simulate to user that works with this component as a particular
tool. |
| Modifier and Type | Method and Description |
|---|---|
Behavior |
MapControl.getCombinedTool()
Gets the tool used in combination with the current tool of this
MapControl. |
Behavior |
MapControl.getCurrentMapTool()
Gets as current active
Behavior associated to this
component, that one which is registered and identified by
toolName. |
Behavior |
MapControl.getMapTool(java.lang.String name)
Gets the
Behavior registered in this component, identified
by name. |
| Modifier and Type | Method and Description |
|---|---|
void |
MapControl.addBehavior(java.lang.String name,
Behavior tool)
Registers a new behavior to this component.
|
void |
MapControl.addBehavior(java.lang.String name,
Behavior[] tools)
Registers a new behavior to this component as a
CompoundBehavior made up of tools. |
void |
MapControl.addCombinedBehavior(Behavior tool)
Adds a new tool as combined tool.
|
void |
MapControl.removeCombinedTool(Behavior tool)
Removes the tool
tool used in combination with the current
tool of this MapControl. |
void |
MapControl.setCombinedTool(Behavior combinedTool)
Sets a tool to be used in combination with the current tool of this
MapControl. |
void |
MapControl.setCurrentMapTool(Behavior mapTool)
Sets
mapTool as this MapControl's current map
tool. |
| Modifier and Type | Class and Description |
|---|---|
class |
CompoundBehavior
Allows having multiple behaviors when user works with the associated
MapControl. |
| Modifier and Type | Method and Description |
|---|---|
static Behavior |
CompoundBehavior.getAllControlsBehavior()
Gets the
Behavior that will be used for any MapControl. |
Behavior |
CompoundBehavior.getBehavior(int index)
Returns the first-level
Behavior at the specified position. |
| Modifier and Type | Method and Description |
|---|---|
void |
CompoundBehavior.addMapBehavior(Behavior mt,
boolean draw)
Adds a new behavior, setting if will be real-time (when user is working with it) drawn or not.
|
boolean |
CompoundBehavior.containsBehavior(Behavior mt)
Searches for
mt, returning true if is contained. |
void |
CompoundBehavior.removeMapBehavior(Behavior mt)
Removes a
Behavior that composes this one. |
static void |
CompoundBehavior.setAllControlsBehavior(Behavior behavior)
Sets the
Behavior that will be used for any MapControl. |
| Constructor and Description |
|---|
CompoundBehavior(Behavior[] behaviors)
Creates a new behavior as a composition of others.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CircleBehavior
Behavior that allows user to draw a circle on the image of the associated
MapControl using a PolylineListener. |
class |
DraggerBehavior
Behavior that permits user to drag the image of the associated
MapControl using a PanListener. |
class |
MouseMovementBehavior
Behavior that permits user to move and drag the mouse on the image of the associated
MapControl instance using a PointListener. |
class |
MouseWheelBehavior |
class |
MoveBehavior
Behavior that permits user to move the image of the associated
MapControl using a PanListener. |
class |
PointBehavior
Behavior that permits user to select a point with a double click mouse action, on the associated
MapControl using a PointListener. |
class |
PolygonBehavior
Behavior that permits user to draw a polygon by its vertexes on the image of the associated
MapControl using a PolylineListener. |
class |
PolylineBehavior
Behavior that allows user to draw a polyline by its vertexes on the image of the associated
MapControl using a PolylineListener. |
class |
RectangleBehavior
Behavior that permits user to select a rectangular area on the associated
MapControl using
a RectangleListener. |
Copyright © 2013 gvSIG Association. All Rights Reserved.