public class MapSheetsDragger extends DraggerBehavior implements AtomicEventListener, KeyEventDispatcher
Modifier and Type | Field and Description |
---|---|
static String |
MAP_SERIES_SET_GRID_TOOL_ID |
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, geomManager
Constructor and Description |
---|
MapSheetsDragger(IView comp) |
Modifier and Type | Method and Description |
---|---|
void |
atomicEvent(AtomicEvent e)
Called when is produced an
AtomicEvent in the buffer of MapControl . |
boolean |
dispatchKeyEvent(KeyEvent e) |
List |
getGeoms(boolean cloned) |
MapSheetsGrid |
getGrid() |
Image |
getImageCursor()
Gets the mouse cursor of the tool listener associated to this behavior.
|
int |
getSheetCount() |
void |
mouseDragged_Control(MouseEvent e) |
void |
mouseDragged_Shift(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mousePressed_Control(MouseEvent e) |
void |
mousePressed_Shift(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
paintComponent(MapControlDrawer mcd)
Method executed in real-time, when user is working with a tool on the associated
MapControl
object, repainting the MapControl 's image. |
void |
setGrid(MapSheetsGrid gr,
boolean clear_undo) |
void |
setListener(MapContext mx) |
void |
setPreviousTool(String t) |
getListener, setListener
clean, createArc, createArc, createArc, createCircle, createLineString, createPoint, createPoint, getMapControl, isMyButton, isMyButton, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved, paintComponent, resetMyButton, setMapControl
public static final String MAP_SERIES_SET_GRID_TOOL_ID
public MapSheetsDragger(IView comp)
public void mousePressed(MouseEvent e)
mousePressed
in interface IBehavior
mousePressed
in class DraggerBehavior
MouseListener.mousePressed(java.awt.event.MouseEvent)
public void mousePressed_Shift(MouseEvent e)
public void mousePressed_Control(MouseEvent e)
public void mouseDragged(MouseEvent e) throws BehaviorException
mouseDragged
in interface IBehavior
mouseDragged
in class DraggerBehavior
BehaviorException
- any exception processing the action associated to a mouse dragged event, by the IBehavior
objectMouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
public void mouseDragged_Shift(MouseEvent e) throws BehaviorException
BehaviorException
public void mouseDragged_Control(MouseEvent e) throws BehaviorException
BehaviorException
public void mouseReleased(MouseEvent e)
mouseReleased
in interface IBehavior
mouseReleased
in class DraggerBehavior
MouseListener.mouseReleased(java.awt.event.MouseEvent)
public Image getImageCursor()
IBehavior
Gets the mouse cursor of the tool listener associated to this behavior.
getImageCursor
in interface IBehavior
getImageCursor
in class Behavior
public void paintComponent(MapControlDrawer mcd)
IBehavior
Method executed in real-time, when user is working with a tool on the associated MapControl
object, repainting the MapControl
's image.
Returns immediately in all cases, even if the complete image has not yet been loaded.
This method will be implemented according to the specific nature of each behavior, and its extra and particular features.
paintComponent
in interface IBehavior
paintComponent
in class DraggerBehavior
Graphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
public MapSheetsGrid getGrid()
public void setGrid(MapSheetsGrid gr, boolean clear_undo)
public int getSheetCount()
public void setListener(MapContext mx)
public void atomicEvent(AtomicEvent e)
AtomicEventListener
Called when is produced an AtomicEvent
in the buffer of MapControl
.
atomicEvent
in interface AtomicEventListener
e
- an atomic eventEventBuffer
public void setPreviousTool(String t)
public List getGeoms(boolean cloned)
public boolean dispatchKeyEvent(KeyEvent e)
dispatchKeyEvent
in interface KeyEventDispatcher