Package | Description |
---|---|
jpicedt.graphic.event |
Various events used for the communication between model, view and controler, as well as to
notify external receivers of changes
in the document structure, appearance,...
|
jpicedt.graphic.toolkit |
Controller (document editing through UI actions)
|
jpicedt.graphic.view |
Document appearance.
|
jpicedt.ui |
Some classes and interfaces that help building concrete implementation of MDIManager's.
|
Modifier and Type | Method and Description |
---|---|
void |
PEEventMulticaster.mouseClicked(PEMouseEvent e)
Handles a mouseClicked event by invoking the
mouseClicked methods on listener-a and listener-b.
|
void |
PEMouseInputAdapter.mouseClicked(PEMouseEvent e) |
void |
PEMouseInputListener.mouseClicked(PEMouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component.
|
void |
PEEventMulticaster.mouseDragged(PEMouseEvent e)
Handles the mouseDragged event by invoking the
mouseDragged methods on listener-a and listener-b.
|
void |
PEMouseInputAdapter.mouseDragged(PEMouseEvent e) |
void |
PEMouseInputListener.mouseDragged(PEMouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged.
|
void |
PEEventMulticaster.mouseEntered(PEMouseEvent e)
Handles the mouseEntered event by invoking the
mouseEntered methods on listener-a and listener-b.
|
void |
PEMouseInputAdapter.mouseEntered(PEMouseEvent e) |
void |
PEMouseInputListener.mouseEntered(PEMouseEvent e)
Invoked when the mouse enters a component.
|
void |
PEEventMulticaster.mouseExited(PEMouseEvent e)
Handles the mouseExited event by invoking the
mouseExited methods on listener-a and listener-b.
|
void |
PEMouseInputAdapter.mouseExited(PEMouseEvent e) |
void |
PEMouseInputListener.mouseExited(PEMouseEvent e)
nvoked when the mouse exits a component.
|
void |
PEEventMulticaster.mouseMoved(PEMouseEvent e)
Handles the mouseMoved event by invoking the
mouseMoved methods on listener-a and listener-b.
|
void |
PEMouseInputAdapter.mouseMoved(PEMouseEvent e) |
void |
PEMouseInputListener.mouseMoved(PEMouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons down).
|
void |
PEEventMulticaster.mousePressed(PEMouseEvent e)
Handles the mousePressed event by invoking the
mousePressed methods on listener-a and listener-b.
|
void |
PEMouseInputAdapter.mousePressed(PEMouseEvent e) |
void |
PEMouseInputListener.mousePressed(PEMouseEvent e)
Invoked when a mouse button has been pressed on a component.
|
void |
PEEventMulticaster.mouseReleased(PEMouseEvent e)
Handles the mouseReleased event by invoking the
mouseReleased methods on listener-a and listener-b.
|
void |
PEMouseInputAdapter.mouseReleased(PEMouseEvent e) |
void |
PEMouseInputListener.mouseReleased(PEMouseEvent e)
Invoked when a mouse button has been released on a component.
|
Modifier and Type | Field and Description |
---|---|
protected static PEMouseEvent |
MouseTool.lastMouseEvent
this field remembers the last mouse-event produced by a call to one of the mouseXXX methods ; shared by every MouseTool
|
Modifier and Type | Method and Description |
---|---|
PEMouseEvent |
MouseTool.getLastMouseEvent()
Returns the last mouse-event as produced by the last invokation of a mouseXXX method
|
Modifier and Type | Method and Description |
---|---|
MouseTransform |
EditElementMouseTransformFactory.createMouseTransform(PEMouseEvent e)
Return a MouseTransform whose type is adequate with the given mouse-event.
|
MouseTransform |
EditPointMouseTransformFactory.createMouseTransform(PEMouseEvent e)
Return a MouseTransform whose type is adequate with the given mouse-event.
|
MouseTransform |
MouseTransformFactory.createMouseTransform(PEMouseEvent e)
Return a MouseTransform whose type is adequate with the given mouse-event.
|
HitInfo |
DefaultSelectionHandler.hitTest(PEMouseEvent me)
hitTest on the content of the selection only
|
void |
MouseTool.mouseClicked(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field
|
void |
DrawToolFactory.GenericDrawTool.mouseDragged(PEMouseEvent e)
set current point
|
void |
DrawToolFactory.AbstractCurveDrawTool.mouseDragged(PEMouseEvent e)
set the current point
|
void |
DrawToolFactory.TextDrawTool.mouseDragged(PEMouseEvent e)
do nothing
|
void |
MouseTool.mouseDragged(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field
|
void |
MoveTool.mouseDragged(PEMouseEvent e)
set the 2nd pt of the translation vector and translate the target
|
void |
RotateTool.mouseDragged(PEMouseEvent e) |
void |
ScaleTool.mouseDragged(PEMouseEvent e) |
void |
SelectionTool.mouseDragged(PEMouseEvent e)
Invoke "process" on the current MouseTransform (if non-null).
|
void |
MouseTool.mouseEntered(PEMouseEvent e)
Sets the mouseOutside flag to true, stores the given mouse-event in lastMouseEvent field,
and request focus on the PECanvas that dispatched this mouse event.
|
void |
MouseTool.mouseExited(PEMouseEvent e)
Sets the mouseOutside flag to false, and stores the given mouse-event in lastMouseEvent field.
|
void |
DrawToolFactory.GenericDrawTool.mouseMoved(PEMouseEvent e)
set cursor for canvas, then call mouseDragged
|
void |
DrawToolFactory.AbstractCurveDrawTool.mouseMoved(PEMouseEvent e)
set cursor for canvas, then call mouseDragged
|
void |
DrawToolFactory.TextDrawTool.mouseMoved(PEMouseEvent e)
set cursor for canvas, then call mouseDragged
|
void |
MouseTool.mouseMoved(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field
|
void |
MoveTool.mouseMoved(PEMouseEvent e)
set the cursor
|
void |
RotateTool.mouseMoved(PEMouseEvent e) |
void |
ScaleTool.mouseMoved(PEMouseEvent e) |
void |
SelectionTool.mouseMoved(PEMouseEvent e)
Change mouse cursor according to the MouseTransform returned by the factory for the
given PEMouseEvent.
|
void |
ZoomTool.mouseMoved(PEMouseEvent e)
set cursor
|
void |
DrawToolFactory.GenericDrawTool.mousePressed(PEMouseEvent e)
A popup-trigger mouse event (e.g.
|
void |
DrawToolFactory.AbstractCurveDrawTool.mousePressed(PEMouseEvent e)
A popup-trigger mouse event (e.g.
|
void |
DrawToolFactory.TextDrawTool.mousePressed(PEMouseEvent e)
A popup-trigger mouse event (e.g.
|
void |
MouseTool.mousePressed(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field
|
void |
MoveTool.mousePressed(PEMouseEvent e)
set the first point of the translation vector
|
void |
RotateTool.mousePressed(PEMouseEvent e)
set the source rect, then the destination rect
|
void |
ScaleTool.mousePressed(PEMouseEvent e)
set the source rect, then the destination rect
|
void |
SelectionTool.mousePressed(PEMouseEvent e)
- right button click (popup trigger) -> raise popup menu.
- left button -> createMouseTransform using the mtFactory given in the constructor. |
void |
ZoomTool.mousePressed(PEMouseEvent e)
Depending on the button and the modifiers, we increase or decrease zoom, or do nothing.
|
void |
DrawToolFactory.AbstractCurveDrawTool.mouseReleased(PEMouseEvent e)
CLOSED curve only : add a new point by splitting last segment
|
void |
MouseTool.mouseReleased(PEMouseEvent e)
this default implementation simply stores the given mouse-event in lastMouseEvent field
|
void |
MoveTool.mouseReleased(PEMouseEvent e) |
void |
RotateTool.mouseReleased(PEMouseEvent e) |
void |
ScaleTool.mouseReleased(PEMouseEvent e) |
void |
SelectionTool.mouseReleased(PEMouseEvent e)
Invokes "end" on the current MouseTransform if non-null.
|
boolean |
AbstractMouseTransform.next(PEMouseEvent e)
Called by mouseReleased.
This implementation set the clone's parent and view to null so as to make it elligible for gc. |
boolean |
AbstractMouseTransformFactory.InvalidMouseTransform.next(PEMouseEvent e)
Called when the mouse is released
|
boolean |
AbstractMouseTransformFactory.HelpMessageMouseTransform.next(PEMouseEvent e)
Called when the mouse is released
|
boolean |
AbstractMouseTransformFactory.SelectAreaTransform.next(PEMouseEvent e)
Called when the mouse is released.
|
boolean |
EditElementMouseTransformFactory.UnselectTransform.next(PEMouseEvent e) |
boolean |
EditElementMouseTransformFactory._MoveControlPointTransform.next(PEMouseEvent e)
Called when the mouse is released.
|
boolean |
EditElementMouseTransformFactory.MoveControlPointTransform.next(PEMouseEvent e)
Called when the mouse is released.
|
boolean |
EditElementMouseTransformFactory._MoveElementTransform.next(PEMouseEvent e) |
boolean |
EditElementMouseTransformFactory.MoveElementTransform.next(PEMouseEvent e) |
boolean |
EditElementMouseTransformFactory.SelectElementsInAreaTransform.next(PEMouseEvent e)
Called when the mouse is released.
|
boolean |
EditPointMouseTransformFactory.SelectPointsInAreaTransform.next(PEMouseEvent e)
Called when the mouse is released.
|
boolean |
EditPointMouseTransformFactory.UnSelectPointTransform.next(PEMouseEvent e) |
boolean |
EditPointMouseTransformFactory.SplitSegmentTransform.next(PEMouseEvent e)
Called when the mouse is released.
|
boolean |
EditPointMouseTransformFactory.RemovePointTransform.next(PEMouseEvent e)
Called when the mouse is released.
|
boolean |
EditPointMouseTransformFactory.EditSmoothCoeffTransform.next(PEMouseEvent e)
Called when the mouse is released.
|
boolean |
EditPointMouseTransformFactory.SelectElementTransform.next(PEMouseEvent e) |
boolean |
MouseTransform.next(PEMouseEvent e)
Called when the left mouse-button changes state.
|
void |
AbstractMouseTransformFactory.InvalidMouseTransform.process(PEMouseEvent e)
Called when the mouse is dragged.
|
void |
AbstractMouseTransformFactory.HelpMessageMouseTransform.process(PEMouseEvent e)
Called when the mouse is dragged.
|
void |
AbstractMouseTransformFactory.SelectAreaTransform.process(PEMouseEvent e)
Called when the mouse is dragged.
|
void |
EditElementMouseTransformFactory.UnselectTransform.process(PEMouseEvent e) |
void |
EditElementMouseTransformFactory._MoveControlPointTransform.process(PEMouseEvent e)
Called when the mouse is dragged.
|
void |
EditElementMouseTransformFactory.MoveControlPointTransform.process(PEMouseEvent e)
Called when the mouse is dragged.
|
void |
EditElementMouseTransformFactory._MoveElementTransform.process(PEMouseEvent me)
Called when the mouse is dragged.
|
void |
EditElementMouseTransformFactory.MoveElementTransform.process(PEMouseEvent me)
Called when the mouse is dragged.
|
void |
EditPointMouseTransformFactory.UnSelectPointTransform.process(PEMouseEvent e) |
void |
EditPointMouseTransformFactory.SplitSegmentTransform.process(PEMouseEvent e)
Called when the mouse is dragged.
|
void |
EditPointMouseTransformFactory.RemovePointTransform.process(PEMouseEvent e)
Called when the mouse is dragged.
|
void |
EditPointMouseTransformFactory.EditSmoothCoeffTransform.process(PEMouseEvent e)
Called when the mouse is dragged.
|
void |
EditPointMouseTransformFactory.SelectElementTransform.process(PEMouseEvent e) |
void |
MouseTransform.process(PEMouseEvent e)
Called when the mouse is dragged/moved after the first mouse-pressed event.
|
void |
DrawToolFactory.GenericDrawTool.setCurrentPoint(PEMouseEvent e)
move the points indexed in drawPoints[currentTaskIndex] to the current click-point
(possibly after grid alignment).
|
void |
AbstractMouseTransform.start(PEMouseEvent e)
Called by mousePressed.
Creates a clone of the target (e.g. |
void |
AbstractMouseTransformFactory.InvalidMouseTransform.start(PEMouseEvent e)
Called when the mouse is pressed.
|
void |
AbstractMouseTransformFactory.HelpMessageMouseTransform.start(PEMouseEvent e)
Called when the mouse is pressed.
|
void |
AbstractMouseTransformFactory.SelectAreaTransform.start(PEMouseEvent e)
Invoked by mousePressed().
|
void |
EditElementMouseTransformFactory.UnselectTransform.start(PEMouseEvent e) |
void |
EditElementMouseTransformFactory.MoveControlPointTransform.start(PEMouseEvent e)
Called when the mouse is pressed.
|
void |
EditElementMouseTransformFactory._MoveElementTransform.start(PEMouseEvent e)
Called when the mouse is pressed.
Create a clone of the clickedElement given as the parameter in the constructor. |
void |
EditElementMouseTransformFactory.MoveElementTransform.start(PEMouseEvent e)
Called when the mouse is pressed.
|
void |
EditElementMouseTransformFactory.SelectElementsInAreaTransform.start(PEMouseEvent e)
called by mousePressed
|
void |
EditPointMouseTransformFactory.SelectPointsInAreaTransform.start(PEMouseEvent e)
called by mousePressed
|
void |
EditPointMouseTransformFactory.UnSelectPointTransform.start(PEMouseEvent e)
called by mousePressed
|
void |
EditPointMouseTransformFactory.SplitSegmentTransform.start(PEMouseEvent e)
Called when the mouse is pressed for the first time.
|
void |
EditPointMouseTransformFactory.RemovePointTransform.start(PEMouseEvent e)
Called when the mouse is pressed.
|
void |
EditPointMouseTransformFactory.EditSmoothCoeffTransform.start(PEMouseEvent e)
Called when the mouse is pressed.
|
void |
EditPointMouseTransformFactory.SelectElementTransform.start(PEMouseEvent e) |
void |
MouseTransform.start(PEMouseEvent e)
Called when the mouse is pressed.
|
Modifier and Type | Method and Description |
---|---|
PEMouseEvent |
HitInfo.getMouseEvent() |
Modifier and Type | Method and Description |
---|---|
protected abstract HitInfo |
AbstractView.hitTest(PEMouseEvent e)
Returns a HitInfo corresponding to the given mouse-event.
|
HitInfo |
CompositeView.hitTest(PEMouseEvent e) |
HitInfo |
DefaultHighlighterFactory.DefaultHighlighter.hitTest(PEMouseEvent e)
Current implementation returns a HitInfo.Point if a click
occured on one of the controlled-point indices returned by
getControlPointsIterator() ; return null otherwise. |
HitInfo |
DefaultHighlighterFactory.CompositeHighlighter.hitTest(PEMouseEvent e) |
HitInfo |
DefaultViewFactory.LeafElementView.hitTest(PEMouseEvent e)
This implementation returns a HitInfo.Interior if the view is filled and a click occured on the
interior, or a HitInfo.Stroke if a click occured on the stroke path (this use
a FlatteningPathIterator built from the current
shape ). |
HitInfo |
DefaultViewFactory.TextView.hitTest(PEMouseEvent e)
This implementation calls
super.hitTest and returns the result if non-null
(this should be a HitInfo.Point),
then returns a HitInfo.Interior if the mouse-click occured inside the text bound (as defined
by text layout) |
HitInfo |
DefaultViewFactory.TextViewHybrid.hitTest(PEMouseEvent e)
This implementation calls
super.hitTest and returns the result if non-null
(this should be a HitInfo.Point),
then returns a HitInfo.Interior if the mouse-click occured inside the text bound (as defined
by text layout) |
HitInfo |
Highlighter.hitTest(PEMouseEvent e) |
HitInfo |
AbstractView.hitTest(PEMouseEvent e,
boolean isHighlightVisible)
Depending on the value of isHighlighVisible, current implementation first delegates
to the hosted Highlighter's hitTest() method, then calls
hitTest(PEMouseEvent) . |
HitInfo |
View.hitTest(PEMouseEvent e,
boolean isHighlightVisible) |
Constructor and Description |
---|
HitInfo.Composite(BranchElement clicked,
int clickedChildIndex,
PEMouseEvent mouseEvent)
construct a new HitInfo.Point that occured in the given BranchElement, on
the child with the given index.
|
HitInfo.EnvelopeStroke(Element clicked,
int clickedSegment,
PEMouseEvent mouseEvent)
Deprecated.
|
HitInfo.HighlighterStroke(Element clicked,
int clickedSegment,
PEMouseEvent mouseEvent) |
HitInfo.Interior(Element clickedObject,
PEMouseEvent mouseEvent)
construct a new HitInfo.Interior that occured on the given Element
|
HitInfo.Point(Element clickedObject,
java.util.ArrayList pointIndices,
PEMouseEvent mouseEvent)
construct a new HitInfo.Point that occured on the given Element and on the given points simultaneously.
|
HitInfo.Point(Element clickedObject,
int pointIndex,
PEMouseEvent mouseEvent)
construct a new HitInfo.Point that occured on the given Element and on the given point index
|
HitInfo.Stroke(Element clicked,
int clickedSegment,
PEMouseEvent mouseEvent)
construct a new HitInfo.Stroke that occured on the stroke of the given Element
|
HitInfo.Text(TextEditable clickedObject,
java.awt.font.TextHitInfo thi,
PEMouseEvent mouseEvent)
construct a new HitInfo.Text that occured on the given TextEditable, fetching useful information
from the given TextHitInfo.
|
HitInfo(Element clickedObject,
PEMouseEvent mouseEvent)
Construct a new HitInfo when a click occured on an object's end-point
|
Modifier and Type | Method and Description |
---|---|
void |
PEDrawingBoard.StatusBar.mouseClicked(PEMouseEvent e) |
void |
PEDrawingBoard.StatusBar.mouseDragged(PEMouseEvent e)
display mouse coords
|
void |
PEDrawingBoard.StatusBar.mouseEntered(PEMouseEvent e) |
void |
PEDrawingBoard.StatusBar.mouseExited(PEMouseEvent e) |
void |
PEDrawingBoard.StatusBar.mouseMoved(PEMouseEvent e)
display mouse coords
|
void |
PEDrawingBoard.StatusBar.mousePressed(PEMouseEvent e) |
void |
PEDrawingBoard.StatusBar.mouseReleased(PEMouseEvent e) |
Submit a bug : syd@jpicedt.org