BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, geomManager, LOG| Constructor and Description |
|---|
GeoRasterBehavior(PanListener zili,
ITransformIO windowIO)
Crea un nuevo GeoRasterBehavior.
|
GeoRasterBehavior(PanListener zili,
ITransformIO windowIO,
FLyrRaster lyr)
Crea un nuevo RectangleBehavior.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Image |
getImageCursor()
Gets the mouse cursor of the tool listener associated to this behavior.
|
FLyrRaster |
getLayer()
Función que carga la capa si todavía no lo está.
|
ToolListener |
getListener()
Gets the
ToolListener used by this behavior to perform actions on the
associated MapControl object. |
MapControl |
getMapControl()
Returns the reference to the
MapControl object that this behavior uses. |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e)
Esta función repinta el canvas si se está arrasrtando la imagen para
poder ver el marco de arrastre.
|
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e)
Coloca el cursor del ratón con el icono adecuado cuando entra dentro de la
imagen.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Si no está activo el cursor por defecto capturamos el punto
seleccionado en coordenadas del mundo real.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Cuando soltamos el botón del ratón desplazamos la imagen a la posición
de destino calculando el extent nuevamente.
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e) |
void |
paintComponent(MapControlDrawer mapControlDrawer)
Función de pintado del canvas.Pintamos un marco a la imagen para saber
donde la movemos.
|
void |
resetDefaultCursor() |
void |
setCursorImage(java.awt.Image cursor) |
void |
setITransformIO(ITransformIO gld)
Asigna el objeto externo para variar la transformación
|
void |
setLayer(FLyrRaster lyr)
Asigna la capa raster
|
void |
setMapControl(MapControl mc)
Associates this behavior to a
MapControl object. |
clean, createArc, createArc, createArc, createCircle, createEllipse, createPoint, createPoint, getUseSnapping, isMyButton, isMyButton, paintComponent, resetMyButton, setUseSnappingpublic GeoRasterBehavior(PanListener zili, ITransformIO windowIO)
zili - listener.windowIO - public GeoRasterBehavior(PanListener zili, ITransformIO windowIO, FLyrRaster lyr)
zili - listener.public void setLayer(FLyrRaster lyr)
lyr - public void setITransformIO(ITransformIO gld)
gld - public FLyrRaster getLayer()
public void mouseMoved(java.awt.event.MouseEvent e)
throws BehaviorException
mouseMoved in interface IBehaviormouseMoved in class BehaviorBehaviorException - any exception processing the action associated to a mouse moved event, by the IBehavior objectMouseMotionListener.mouseMoved(java.awt.event.MouseEvent)public void mousePressed(java.awt.event.MouseEvent e)
throws BehaviorException
mousePressed in interface IBehaviormousePressed in class BehaviorBehaviorException - any exception processing the action associated to a mouse pressed event, by the IBehavior objectMouseListener.mousePressed(java.awt.event.MouseEvent)public void mouseReleased(java.awt.event.MouseEvent e)
throws BehaviorException
mouseReleased in interface IBehaviormouseReleased in class BehaviorBehaviorException - any exception processing the action associated to a mouse released event, by the IBehavior objectMouseListener.mouseReleased(java.awt.event.MouseEvent)public void paintComponent(MapControlDrawer mapControlDrawer)
paintComponent in interface IBehaviorpaintComponent in class BehaviorGraphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)public void mouseDragged(java.awt.event.MouseEvent e)
throws BehaviorException
mouseDragged in interface IBehaviormouseDragged in class BehaviorBehaviorException - any exception processing the action associated to a mouse dragged event, by the IBehavior objectMouseMotionListener.mouseDragged(java.awt.event.MouseEvent)public ToolListener getListener()
IBehaviorGets the ToolListener used by this behavior to perform actions on the
associated MapControl object.
getListener in interface IBehaviorgetListener in class BehaviorToolListener used by this behaviorpublic MapControl getMapControl()
IBehaviorReturns the reference to the MapControl object that this behavior uses.
getMapControl in interface IBehaviorgetMapControl in class BehaviorMapControl object used this behaviorIBehavior.setMapControl(MapControl)public void mouseClicked(java.awt.event.MouseEvent e)
throws BehaviorException
mouseClicked in interface IBehaviormouseClicked in class BehaviorBehaviorException - any exception processing the action associated to a mouse clicked event, by the IBehavior objectMouseListener.mouseClicked(java.awt.event.MouseEvent)public void mouseEntered(java.awt.event.MouseEvent e)
throws BehaviorException
mouseEntered in interface IBehaviormouseEntered in class BehaviorBehaviorException - any exception processing the action associated to a mouse entered event, by the IBehavior objectMouseListener.mouseEntered(java.awt.event.MouseEvent)public void mouseExited(java.awt.event.MouseEvent e)
throws BehaviorException
mouseExited in interface IBehaviormouseExited in class BehaviorBehaviorException - any exception processing the action associated to a mouse exited event, by the IBehavior objectMouseListener.mouseExited(java.awt.event.MouseEvent)public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
throws BehaviorException
mouseWheelMoved in interface IBehaviormouseWheelMoved in class BehaviorBehaviorException - any exception processing the action associated to a mouse wheel event, by the IBehavior objectMouseWheelListener.mouseWheelMoved(java.awt.event.MouseWheelEvent)public void setMapControl(MapControl mc)
IBehaviorAssociates this behavior to a MapControl object.
setMapControl in interface IBehaviorsetMapControl in class Behaviormc - the MapControl object to associateIBehavior.getMapControl()public void setCursorImage(java.awt.Image cursor)
public java.awt.Image getImageCursor()
IBehaviorGets the mouse cursor of the tool listener associated to this behavior.
getImageCursor in interface IBehaviorgetImageCursor in class Behaviorpublic void resetDefaultCursor()