Revision 20100 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/tools/Behavior/Behavior.java
Behavior.java | ||
---|---|---|
58 | 58 |
|
59 | 59 |
|
60 | 60 |
/** |
61 |
* Herramienta del MapControl. Ejecuta acciones respondiendo a eventos, por
|
|
62 |
* delegaci?n desde MapControl.
|
|
61 |
* <p>When user is working with a tool on a {@link MapControl MapControl} instance, <code>Behavior</code> defines
|
|
62 |
* the basic ways of interacting: selecting a point, a circle, a rectangle, or ...</p>
|
|
63 | 63 |
* |
64 |
* <p>All events generated will be <code>MouseEvent</code>, and will depend on the nature of the |
|
65 |
* <i>behavior</i>, like the kind of tool for applying the changes.</p> |
|
66 |
* |
|
67 |
* <p><code>Behavior</code> defines the common and basic functionality for all kinds of interacting ways |
|
68 |
* with the <code>MapControl</code> object.</p> |
|
69 |
* |
|
70 |
* @see IBehavior |
|
71 |
* |
|
64 | 72 |
* @author Luis W. Sevilla |
65 | 73 |
*/ |
66 | 74 |
public abstract class Behavior implements IBehavior { |
75 |
/** |
|
76 |
* Reference to the <code>MapControl</code> object that uses. |
|
77 |
* |
|
78 |
* @see #getMapControl() |
|
79 |
* @see #setMapControl(MapControl) |
|
80 |
*/ |
|
67 | 81 |
private MapControl mapControl; |
82 |
|
|
68 | 83 |
/* (non-Javadoc) |
69 | 84 |
* @see com.iver.cit.gvsig.fmap.tools.Behavior.IBehavior#getListener() |
70 | 85 |
*/ |
71 | 86 |
public abstract ToolListener getListener(); |
72 | 87 |
|
73 |
/* (non-Javadoc) |
|
88 |
/* |
|
89 |
* <p>Draws as much of the associated <code>MapControl</code> image as is currently available. The image |
|
90 |
* is drawn with its top-left corner at (0, 0) in this graphics context's coordinate space. Transparent |
|
91 |
* pixels in the image do not affect whatever pixels are already there.</p> |
|
92 |
* |
|
74 | 93 |
* @see com.iver.cit.gvsig.fmap.tools.Behavior.IBehavior#paintComponent(java.awt.Graphics) |
75 | 94 |
*/ |
76 | 95 |
public void paintComponent(Graphics g) { |
Also available in: Unified diff