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, setListenerclean, createArc, createArc, createArc, createCircle, createLineString, createPoint, createPoint, getMapControl, isMyButton, isMyButton, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved, paintComponent, resetMyButton, setMapControlpublic static final String MAP_SERIES_SET_GRID_TOOL_ID
public MapSheetsDragger(IView comp)
public void mousePressed(MouseEvent e)
mousePressed in interface IBehaviormousePressed in class DraggerBehaviorMouseListener.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 IBehaviormouseDragged in class DraggerBehaviorBehaviorException - 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
BehaviorExceptionpublic void mouseDragged_Control(MouseEvent e) throws BehaviorException
BehaviorExceptionpublic void mouseReleased(MouseEvent e)
mouseReleased in interface IBehaviormouseReleased in class DraggerBehaviorMouseListener.mouseReleased(java.awt.event.MouseEvent)public Image getImageCursor()
IBehaviorGets the mouse cursor of the tool listener associated to this behavior.
getImageCursor in interface IBehaviorgetImageCursor in class Behaviorpublic void paintComponent(MapControlDrawer mcd)
IBehaviorMethod 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 IBehaviorpaintComponent in class DraggerBehaviorGraphics.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)
AtomicEventListenerCalled when is produced an AtomicEvent in the buffer of MapControl.
atomicEvent in interface AtomicEventListenere - an atomic eventEventBufferpublic void setPreviousTool(String t)
public List getGeoms(boolean cloned)
public boolean dispatchKeyEvent(KeyEvent e)
dispatchKeyEvent in interface KeyEventDispatcher