ilog.views.bpmn
Class IlvBPMNMakeSDMNodeInteractor

java.lang.Object
  extended by ilog.views.IlvManagerViewInteractor
      extended by ilog.views.sdm.interactor.IlvMakeSDMNodeInteractor
          extended by ilog.views.bpmn.IlvBPMNMakeSDMNodeInteractor
All Implemented Interfaces:
IlvPermanentInteractorInterface, Serializable

public class IlvBPMNMakeSDMNodeInteractor
extends IlvMakeSDMNodeInteractor

The class IlvBPMNMakeSDMNodeInteractor creates nodes to represent BPMN objects. In particular, it allows you to create Interrupt Intermediate Events and Association objects.

Since:
JViews 6.0
See Also:
Serialized Form

Constructor Summary
IlvBPMNMakeSDMNodeInteractor()
          Creates an IlvBPMNMakeSDMNodeInteractor.
 
Method Summary
protected  void attach(IlvManagerView v)
          This method is called when the interactor is attached to the specified manager view.
protected  IlvEditSDMLabelInteractor createEditLabelInteractor()
          Factory to create the edit label interactor, used in IlvMakeSDMNodeInteractor.createNode(float, float) when autoEditLabel is true.
protected  void createNode(float x, float y)
          Creates the new node.
protected  void detach()
          This method is called when the interactor is detached from the specified manager view.
protected  void drawGhost(Graphics g)
          Draws the ghost when creating an Association object.
protected  void highlight(Object obj)
          Highlights an object when moving over it.
protected  void processMouseEvent(MouseEvent event)
          Processes the mouse events.
protected  void processMouseMotionEvent(MouseEvent event)
          Processes the mouse motion events.
 
Methods inherited from class ilog.views.sdm.interactor.IlvMakeSDMNodeInteractor
getCursor, getEngine, getPrototypeModel, getPrototypeObject, getTag, init, isAutoEditLabel, isGridMode, isPermanent, processKeyEvent, setAutoEditLabel, setCursor, setGridMode, setNodeProperties, setPermanent, setPrototypeObject, setTag
 
Methods inherited from class ilog.views.IlvManagerViewInteractor
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, isXORGhost, processEvent, processFocusEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvBPMNMakeSDMNodeInteractor

public IlvBPMNMakeSDMNodeInteractor()
Creates an IlvBPMNMakeSDMNodeInteractor.

Method Detail

createNode

protected void createNode(float x,
                          float y)
Creates the new node. If the prototype object is an Association, this interactor waits for the callout and the anchor objects. If the prototype object is an Intermediate Event, this interactor sets the Interrupt property to true when the node is created inside a Task or a collapsed Sub-Process, or when the node is created at the bottom of an expanded Sub-Process.

Overrides:
createNode in class IlvMakeSDMNodeInteractor
Parameters:
x - The x-position in manager coordinates.
y - The y-position in manager coordinates.

processMouseEvent

protected void processMouseEvent(MouseEvent event)
Processes the mouse events.

Overrides:
processMouseEvent in class IlvMakeSDMNodeInteractor
Parameters:
event - The event.
See Also:
IlvManagerViewInteractor.addMouseListener(java.awt.event.MouseListener)

processMouseMotionEvent

protected void processMouseMotionEvent(MouseEvent event)
Processes the mouse motion events.

Overrides:
processMouseMotionEvent in class IlvManagerViewInteractor
Parameters:
event - The event.
See Also:
IlvManagerViewInteractor.addMouseMotionListener(java.awt.event.MouseMotionListener)

highlight

protected void highlight(Object obj)
Highlights an object when moving over it.

Parameters:
obj - The object to highlight

attach

protected void attach(IlvManagerView v)
This method is called when the interactor is attached to the specified manager view.

Overrides:
attach in class IlvMakeSDMNodeInteractor
Parameters:
v - The manager view.
See Also:
IlvManagerViewInteractor.detach()

detach

protected void detach()
This method is called when the interactor is detached from the specified manager view.

Overrides:
detach in class IlvMakeSDMNodeInteractor
See Also:
IlvManagerViewInteractor.attach(ilog.views.IlvManagerView)

drawGhost

protected void drawGhost(Graphics g)
Draws the ghost when creating an Association object.

Overrides:
drawGhost in class IlvManagerViewInteractor
Parameters:
g - The graphics.
See Also:
IlvManagerViewInteractor.handleExpose(java.awt.Graphics), IlvManagerViewInteractor.setXORGhost(boolean)

createEditLabelInteractor

protected IlvEditSDMLabelInteractor createEditLabelInteractor()
Description copied from class: IlvMakeSDMNodeInteractor
Factory to create the edit label interactor, used in IlvMakeSDMNodeInteractor.createNode(float, float) when autoEditLabel is true.

Overrides:
createEditLabelInteractor in class IlvMakeSDMNodeInteractor
Returns:
a new instance of IlvEditSDMLabelInteractor
See Also:
IlvMakeSDMNodeInteractor.setAutoEditLabel(boolean)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.