Revision 19296 trunk/extensions/extRasterTools-SE/src/org/gvsig/raster/beans/canvas/DrawableElement.java
DrawableElement.java | ||
---|---|---|
21 | 21 |
import java.awt.Color; |
22 | 22 |
import java.awt.Graphics; |
23 | 23 |
|
24 |
import org.gvsig.raster.IProcessActions; |
|
24 | 25 |
|
26 |
|
|
25 | 27 |
/** |
26 | 28 |
* Clase base para los gr?ficos a dibujar sobre el canvas |
27 | 29 |
* |
... | ... | |
30 | 32 |
*/ |
31 | 33 |
public abstract class DrawableElement { |
32 | 34 |
|
33 |
protected Color color = Color.BLACK;
|
|
35 |
protected Color color = Color.BLACK;
|
|
34 | 36 |
/** |
35 | 37 |
* Entorno donde se dibuja |
36 | 38 |
*/ |
37 |
protected GCanvas canvas = null; |
|
38 |
private boolean firstDraw = true; |
|
39 |
protected GCanvas canvas = null; |
|
40 |
private boolean firstDraw = true; |
|
41 |
protected IProcessActions actionsManager = null; |
|
39 | 42 |
|
40 | 43 |
/** |
41 | 44 |
* Dibujado del elemento gr?fico desde el GCanvas. Llamar? antes de dibujar a la funci?n firstDrawActions |
... | ... | |
74 | 77 |
public void setColor(Color c) { |
75 | 78 |
this.color = c; |
76 | 79 |
} |
80 |
|
|
81 |
/** |
|
82 |
* Asigna el gestor de acciones |
|
83 |
* @param actionsManager |
|
84 |
*/ |
|
85 |
public void setActionManager(IProcessActions actionsManager) { |
|
86 |
this.actionsManager = actionsManager; |
|
87 |
} |
|
77 | 88 |
} |
Also available in: Unified diff