BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, geomManager| 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(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(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, createLineString, createPoint, createPoint, getImageCursor, getMapControl, isMyButton, isMyButton, mouseDragged, mouseExited, mouseWheelMoved, paintComponent, resetMyButton, setMapControlpublic DefaultEditingBehavior(DefaultEditingContext editingContext) throws CreateEditingBehaviorException
CreateEditingBehaviorExceptionpublic 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 void mouseClicked(MouseEvent e)
mouseClicked in interface IBehaviormouseClicked in class BehaviorMouseListener.mouseClicked(java.awt.event.MouseEvent)public void mouseEntered(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 mouseMoved(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(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(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)
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 BehaviorGraphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)