http://www.jpicedt.org

jpicedt.ui.internal
Class PEPopupMenuFactory

java.lang.Object
  extended by jpicedt.ui.internal.PEPopupMenuFactory
All Implemented Interfaces:
PopupMenuFactory

public class PEPopupMenuFactory
extends Object
implements PopupMenuFactory

A factory to create a PEPopupMenu for an EditorKit.

Since:
jPicEdt
Version:
$Id: PEPopupMenuFactory.java,v 1.32 2013/03/27 06:51:06 vincentb1 Exp $
Author:
Sylvain Reynal

Nested Class Summary
 class PEPopupMenuFactory.PopupMenu
          This class implements a popup-menu activable from a right-click on the associated PECanvas.
 
Constructor Summary
PEPopupMenuFactory()
          Create a new PEPopupMenuFactory using the given action-map to retrieve actions.
PEPopupMenuFactory(ActionRegistry actionMap)
          Create a new PEPopupMenuFactory using the given action-map to retrieve actions.
 
Method Summary
 JPopupMenu createPopupMenu(PECanvas board, ConvexZoneHitInfo hi)
          Describe createPopupMenu method here.
 JPopupMenu createPopupMenu(PECanvas board, HitInfo hi)
           
 JPopupMenu createPopupMenu(PECanvas board, PEMouseEvent e)
          Méthode à appeler lorsque aucun élément ou aucune zone convexe ne sont touchés.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PEPopupMenuFactory

public PEPopupMenuFactory()
Create a new PEPopupMenuFactory using the given action-map to retrieve actions.


PEPopupMenuFactory

public PEPopupMenuFactory(ActionRegistry actionMap)
Create a new PEPopupMenuFactory using the given action-map to retrieve actions.

Method Detail

createPopupMenu

public JPopupMenu createPopupMenu(PECanvas board,
                                  HitInfo hi)
Specified by:
createPopupMenu in interface PopupMenuFactory
Parameters:
board - the popup-menu invoker component
hi - holds information on the graphic element on which the click occured.

createPopupMenu

public JPopupMenu createPopupMenu(PECanvas board,
                                  PEMouseEvent e)
Description copied from interface: PopupMenuFactory
Méthode à appeler lorsque aucun élément ou aucune zone convexe ne sont touchés.

Specified by:
createPopupMenu in interface PopupMenuFactory
Parameters:
board - la planche invoquant le menu contextuel
e - détient l'information sur l'événement souris correspondant au clic.

createPopupMenu

public JPopupMenu createPopupMenu(PECanvas board,
                                  ConvexZoneHitInfo hi)
Describe createPopupMenu method here.

Specified by:
createPopupMenu in interface PopupMenuFactory
Parameters:
board - le PECanvas ayant invoqué le menu contextuel
hi - la valeur ConvexZoneHitInfo contenant l'information relative à la zone convexe sur laquelle le clic a eu lieu.
Returns:
le JPopupMenu créé
Since:
jPicEdt 1.6

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org