BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, geomManager, LOG
Constructor and Description |
---|
DefaultEditingBehavior(DefaultEditingContext editingContext) |
Modifier and Type | Method and Description |
---|---|
ToolListener |
getListener()
Gets the
ToolListener used by this behavior to perform actions on the
associated MapControl object. |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
paintComponent(MapControlDrawer mapControlDrawer)
Method executed in real-time, when user is working with a tool on the associated
MapControl
object, repainting the MapControl 's image. |
clean, createArc, createArc, createArc, createCircle, createEllipse, createPoint, createPoint, getImageCursor, getMapControl, getUseSnapping, isMyButton, isMyButton, mouseDragged, mouseExited, mouseWheelMoved, paintComponent, resetMyButton, setMapControl, setUseSnapping
public DefaultEditingBehavior(DefaultEditingContext editingContext) throws CreateEditingBehaviorException
CreateEditingBehaviorException
public ToolListener getListener()
IBehavior
Gets the ToolListener
used by this behavior to perform actions on the
associated MapControl
object.
getListener
in interface IBehavior
getListener
in class Behavior
ToolListener
used by this behaviorpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface IBehavior
mouseClicked
in class Behavior
MouseListener.mouseClicked(java.awt.event.MouseEvent)
public void mouseEntered(java.awt.event.MouseEvent e) throws BehaviorException
mouseEntered
in interface IBehavior
mouseEntered
in class Behavior
BehaviorException
- any exception processing the action associated to a mouse entered event, by the IBehavior
objectMouseListener.mouseEntered(java.awt.event.MouseEvent)
public void mouseMoved(java.awt.event.MouseEvent e) throws BehaviorException
mouseMoved
in interface IBehavior
mouseMoved
in class Behavior
BehaviorException
- 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 IBehavior
mousePressed
in class Behavior
BehaviorException
- 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 IBehavior
mouseReleased
in class Behavior
BehaviorException
- 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)
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 Behavior
Graphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)