org.objectweb.fractal.gui.graph.view
Class BasicGraphView

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byorg.objectweb.fractal.swing.JPanelImpl
                      extended byorg.objectweb.fractal.gui.graph.view.BasicGraphView
All Implemented Interfaces:
Accessible, AttributeController, BindingController, org.objectweb.fractal.swing.ComponentAttributes, org.objectweb.fractal.swing.ComponentItf, ConfigurationListener, org.objectweb.fractal.swing.ContainerAttributes, org.objectweb.fractal.swing.ContainerItf, DisplayListener, GraphModelListener, ImageObserver, org.objectweb.fractal.swing.JComponentAttributes, org.objectweb.fractal.swing.JComponentItf, org.objectweb.fractal.swing.JPanelAttributes, org.objectweb.fractal.swing.JPanelItf, MenuContainer, Printable, Printer, SelectionListener, Serializable

public class BasicGraphView
extends org.objectweb.fractal.swing.JPanelImpl
implements DisplayListener, GraphModelListener, ConfigurationListener, SelectionListener, Printer, Printable, BindingController

A configuration view that displays configurations as graph of boxes and lines, representing components and bindings. This component does not draw the components and bindings itself: it uses auxiliary component renderer and binding renderer components for that. In fact this component just calls these components for each direct and indirect sub component of the configuration's root component. The mouse events are not handled by this component: they are just dispatched to the listeners of this component.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static String BINDING_RENDERER_BINDING
          A mandatory client interface bound to a BindingRenderer.
static String COMPONENT_RENDERER_BINDING
          A mandatory client interface bound to a ComponentRenderer.
static String CONFIGURATION_BINDING
          A mandatory client interface bound to a configuration model.
static String DISPLAY_BINDING
          An optional client interface bound to a display model.
static String GRAPH_BINDING
          A mandatory client interface bound to a graph model.
static String GRAPH_VIEW_LISTENERS_BINDING
          A collection client interface bound to the listeners of this view component.
static String SELECTION_BINDING
          An optional client interface bound to a selection model.
static String TOOLS_BINDING
          An optional client interface boudn to a tools model.
 
Fields inherited from class org.objectweb.fractal.swing.JPanelImpl
BOTTOM_COMPONENT_BINDING, CENTER_COMPONENT_BINDING, COMPONENTS_BINDING, LAYOUT_BINDING, LEFT_COMPONENT_BINDING, RIGHT_COMPONENT_BINDING, TOP_COMPONENT_BINDING
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
BasicGraphView()
          Constructs a new BasicGraphView component.
 
Method Summary
 void antialiasingChanged()
          Notifies this listener that the anti aliasing option of the display has changed.
 void attributeChanged(Component component, String attributeName, String oldValue)
          Notifies this listener that the value of an attribute has changed.
 void attributeControllerChanged(Component component, String oldValue)
          Notifies this listener that the attribute controller of a component has changed.
 void bindFc(String clientItfName, Object serverItf)
          Binds the client interface whose name is given to a server interface.
 void changeCountChanged(Component component, long changeCount)
          Notifies this listener that all the change count of the configuration has changed.
 void clientInterfaceAdded(Component component, ClientInterface i, int index)
          Notifies this listener that a client interface has been added to a component.
 void clientInterfaceRemoved(Component component, ClientInterface i, int index)
          Notifies this listener that a client interface has been removed from a component.
 void componentColorChanged(Component component, Color oldColor)
          TODO.
 void componentControllerDescriptorChanged(Component component, String oldValue)
          Notifies this listener that the component controller descriptor of a component has changed.
 void componentPositionChanged(Component component, Rect oldValue)
          Notifies this listener that the coordinates of a component have changed.
 void displayedAreaChanged(Rect oldValue)
          Notifies this listener that component graph area shown by the display has changed.
 void implementationChanged(Component component, String oldValue)
          Notifies this listener that the implementation of a component has changed.
 void interfaceBound(ClientInterface citf, ServerInterface sitf)
          Notifies this listener that an interface has been bound.
 void interfaceCardinalityChanged(Interface i, boolean oldValue)
          Notifies this listener that the cardinality of an interface has changed.
 void interfaceContingencyChanged(Interface i, boolean oldValue)
          Notifies this listener that the contigency of an interface has changed.
 void interfaceNameChanged(Interface i, String oldValue)
          Notifies this listener that the name of an interface has changed.
 void interfaceRebound(ClientInterface citf, ServerInterface oldSitf)
          Notifies this listener that an interface has been rebound.
 void interfaceSignatureChanged(Interface i, String oldValue)
          Notifies this listener that the signature of an interface has changed.
 void interfaceUnbound(ClientInterface citf, ServerInterface sitf)
          Notifies this listener that an interface has been unbound.
 void itfNameDisplayModeChanged()
          Notifies this listener that the displaying mode for the interfaces name of the display has changed.
 String[] listFc()
          Returns the names of the client interfaces of the component to which this interface belongs.
 Object lookupFc(String clientItfName)
          Returns the interface to which the given client interface is bound.
 void maxDepthChanged()
          Notifies this listener that the max rendering depth of the display has changed.
 void nameChanged(Component component, String oldValue)
          Notifies this listener that the name of a component has changed.
 void paint(Graphics g)
           
 boolean print(boolean ask, Component c)
          Prints the given component.
 int print(Graphics g, PageFormat pf, int pageIndex)
           
protected  void processMouseEvent(MouseEvent e)
           
protected  void processMouseMotionEvent(MouseEvent e)
           
 void repaint()
           
 void rootComponentChanged(Component oldValue)
          Notifies this listener that the root component has changed.
 void selectionChanged()
          Notifies this listener that the selection has changed.
 void serverInterfaceAdded(Component component, ServerInterface i, int index)
          Notifies this listener that a server interface has been added to a component.
 void serverInterfaceRemoved(Component component, ServerInterface i, int index)
          Notifies this listener that a server interface has been removed from a component.
 void setVisible(boolean visible)
           
 void subComponentAdded(Component parent, Component child, int index)
          Notifies this listener that a sub component has been added to a component.
 void subComponentRemoved(Component parent, Component child, int index)
          Notifies this listener that a sub component has been removed from a component.
 void templateControllerDescriptorChanged(Component component, String oldValue)
          Notifies this listener that the template controller descriptor of a component has changed.
 void typeChanged(Component component, String oldValue)
          Notifies this listener that the type of a component has changed.
 void unbindFc(String clientItfName)
          Unbinds the given client interface.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.fractal.swing.JComponentItf
addAncestorListener, addVetoableChangeListener, computeVisibleRect, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getAutoscrolls, getBorder, getConditionForKeyStroke, getDebugGraphicsOptions, getInputVerifier, getInsets, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, grabFocus, isFocusCycleRoot, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, requestDefaultFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, updateUI
 
Methods inherited from interface org.objectweb.fractal.swing.ContainerItf
add, add, add, add, add, addContainerListener, countComponents, findComponentAt, findComponentAt, getComponent, getComponentCount, getComponents, getInsets, getLayout, insets, isAncestorOf, paintComponents, printComponents, remove, remove, removeAll, removeContainerListener, setLayout
 
Methods inherited from interface org.objectweb.fractal.swing.ComponentItf
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, doLayout, enable, enable, enableInputMethods, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, update, validate
 
Methods inherited from interface org.objectweb.fractal.swing.JComponentAttributes
getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getDebugGraphicsOptions, getInputVerifier, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getToolTipText, getVerifyInputWhenFocusTarget, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setToolTipText, setVerifyInputWhenFocusTarget
 
Methods inherited from interface org.objectweb.fractal.swing.ContainerAttributes
getLayout, setLayout
 
Methods inherited from interface org.objectweb.fractal.swing.ComponentAttributes
getBackground, getBounds, getComponentOrientation, getCursor, getDropTarget, getFont, getForeground, getLocale, getLocation, getName, getSize, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setFont, setForeground, setLocale, setLocation, setName, setSize
 

Field Detail

CONFIGURATION_BINDING

public static final String CONFIGURATION_BINDING
A mandatory client interface bound to a configuration model.

See Also:
Constant Field Values

GRAPH_BINDING

public static final String GRAPH_BINDING
A mandatory client interface bound to a graph model.

See Also:
Constant Field Values

SELECTION_BINDING

public static final String SELECTION_BINDING
An optional client interface bound to a selection model.

See Also:
Constant Field Values

DISPLAY_BINDING

public static final String DISPLAY_BINDING
An optional client interface bound to a display model.

See Also:
Constant Field Values

TOOLS_BINDING

public static final String TOOLS_BINDING
An optional client interface boudn to a tools model.

See Also:
Constant Field Values

COMPONENT_RENDERER_BINDING

public static final String COMPONENT_RENDERER_BINDING
A mandatory client interface bound to a ComponentRenderer.

See Also:
Constant Field Values

BINDING_RENDERER_BINDING

public static final String BINDING_RENDERER_BINDING
A mandatory client interface bound to a BindingRenderer.

See Also:
Constant Field Values

GRAPH_VIEW_LISTENERS_BINDING

public static final String GRAPH_VIEW_LISTENERS_BINDING
A collection client interface bound to the listeners of this view component.

See Also:
Constant Field Values
Constructor Detail

BasicGraphView

public BasicGraphView()
Constructs a new BasicGraphView component.

Method Detail

listFc

public String[] listFc()
Description copied from interface: BindingController
Returns the names of the client interfaces of the component to which this interface belongs.

Specified by:
listFc in interface BindingController

lookupFc

public Object lookupFc(String clientItfName)
Description copied from interface: BindingController
Returns the interface to which the given client interface is bound. More precisely, returns the server interface to which the client interface whose name is given is bound. This server interface is necessarily in the same address space as the client interface (see bindFc).

Specified by:
lookupFc in interface BindingController

bindFc

public void bindFc(String clientItfName,
                   Object serverItf)
Description copied from interface: BindingController
Binds the client interface whose name is given to a server interface. More precisely, binds the client interface of the component to which this interface belongs, and whose name is equal to the given name, to the given server interface. The given server interface must be in the same address space as the client interface.

Specified by:
bindFc in interface BindingController

unbindFc

public void unbindFc(String clientItfName)
Description copied from interface: BindingController
Unbinds the given client interface. More precisely, unbinds the client interface of the component to which this interface belongs, and whose name is equal to the given name.

Specified by:
unbindFc in interface BindingController

displayedAreaChanged

public void displayedAreaChanged(Rect oldValue)
Description copied from interface: DisplayListener
Notifies this listener that component graph area shown by the display has changed.

Specified by:
displayedAreaChanged in interface DisplayListener
Parameters:
oldValue - the old component graph area that was shown by the display.

antialiasingChanged

public void antialiasingChanged()
Description copied from interface: DisplayListener
Notifies this listener that the anti aliasing option of the display has changed.

Specified by:
antialiasingChanged in interface DisplayListener

maxDepthChanged

public void maxDepthChanged()
Description copied from interface: DisplayListener
Notifies this listener that the max rendering depth of the display has changed.

Specified by:
maxDepthChanged in interface DisplayListener

itfNameDisplayModeChanged

public void itfNameDisplayModeChanged()
Description copied from interface: DisplayListener
Notifies this listener that the displaying mode for the interfaces name of the display has changed.

Specified by:
itfNameDisplayModeChanged in interface DisplayListener

selectionChanged

public void selectionChanged()
Description copied from interface: SelectionListener
Notifies this listener that the selection has changed.

Specified by:
selectionChanged in interface SelectionListener

print

public boolean print(boolean ask,
                     Component c)
Description copied from interface: Printer
Prints the given component.

Specified by:
print in interface Printer
Parameters:
ask - TODO.
c - the component to be printed.

print

public int print(Graphics g,
                 PageFormat pf,
                 int pageIndex)
          throws PrinterException
Specified by:
print in interface Printable
Throws:
PrinterException

changeCountChanged

public void changeCountChanged(Component component,
                               long changeCount)
Description copied from interface: ConfigurationListener
Notifies this listener that all the change count of the configuration has changed.

Specified by:
changeCountChanged in interface ConfigurationListener
Parameters:
changeCount - the new change count of the configuration.

rootComponentChanged

public void rootComponentChanged(Component oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the root component has changed.

Specified by:
rootComponentChanged in interface ConfigurationListener
Parameters:
oldValue - the old root component of the configuration.

nameChanged

public void nameChanged(Component component,
                        String oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the name of a component has changed.

Specified by:
nameChanged in interface ConfigurationListener
Parameters:
component - the component whose name has changed.
oldValue - the old name of the component.

typeChanged

public void typeChanged(Component component,
                        String oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the type of a component has changed.

Specified by:
typeChanged in interface ConfigurationListener
Parameters:
component - the component whose type has changed.
oldValue - the old type of the component.

implementationChanged

public void implementationChanged(Component component,
                                  String oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the implementation of a component has changed.

Specified by:
implementationChanged in interface ConfigurationListener
Parameters:
component - the component whose implementation has changed.
oldValue - the old implementation of the component.

interfaceNameChanged

public void interfaceNameChanged(Interface i,
                                 String oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the name of an interface has changed.

Specified by:
interfaceNameChanged in interface ConfigurationListener
Parameters:
i - the interface whose name has changed.
oldValue - the old name of the interface.

interfaceSignatureChanged

public void interfaceSignatureChanged(Interface i,
                                      String oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the signature of an interface has changed.

Specified by:
interfaceSignatureChanged in interface ConfigurationListener
Parameters:
i - the interface whose signature has changed.
oldValue - the old signature of the interface.

interfaceContingencyChanged

public void interfaceContingencyChanged(Interface i,
                                        boolean oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the contigency of an interface has changed.

Specified by:
interfaceContingencyChanged in interface ConfigurationListener
Parameters:
i - the interface whose contingency has changed.
oldValue - the old contingency of the interface.

interfaceCardinalityChanged

public void interfaceCardinalityChanged(Interface i,
                                        boolean oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the cardinality of an interface has changed.

Specified by:
interfaceCardinalityChanged in interface ConfigurationListener
Parameters:
i - the interface whose cardinality has changed.
oldValue - the old cardinality of the interface.

clientInterfaceAdded

public void clientInterfaceAdded(Component component,
                                 ClientInterface i,
                                 int index)
Description copied from interface: ConfigurationListener
Notifies this listener that a client interface has been added to a component.

Specified by:
clientInterfaceAdded in interface ConfigurationListener
Parameters:
component - the component into which the new interface has been added.
i - the interface that has been added.
index - the index of this interface in the client interface list of the component.

clientInterfaceRemoved

public void clientInterfaceRemoved(Component component,
                                   ClientInterface i,
                                   int index)
Description copied from interface: ConfigurationListener
Notifies this listener that a client interface has been removed from a component.

Specified by:
clientInterfaceRemoved in interface ConfigurationListener
Parameters:
component - the component from which the interface has been removed.
i - the interface that has been removed.
index - the index of this interface in the client interface list of the component.

serverInterfaceAdded

public void serverInterfaceAdded(Component component,
                                 ServerInterface i,
                                 int index)
Description copied from interface: ConfigurationListener
Notifies this listener that a server interface has been added to a component.

Specified by:
serverInterfaceAdded in interface ConfigurationListener
Parameters:
component - the component into which the new interface has been added.
i - the interface that has been added.
index - the index of this interface in the server interface list of the component.

serverInterfaceRemoved

public void serverInterfaceRemoved(Component component,
                                   ServerInterface i,
                                   int index)
Description copied from interface: ConfigurationListener
Notifies this listener that a server interface has been removed from a component.

Specified by:
serverInterfaceRemoved in interface ConfigurationListener
Parameters:
component - the component from which the interface has been removed.
i - the interface that has been removed.
index - the index of this interface in the server interface list of the component.

interfaceBound

public void interfaceBound(ClientInterface citf,
                           ServerInterface sitf)
Description copied from interface: ConfigurationListener
Notifies this listener that an interface has been bound.

Specified by:
interfaceBound in interface ConfigurationListener
Parameters:
citf - the client interface that has been bound.
sitf - the server interface to which it has been bound.

interfaceRebound

public void interfaceRebound(ClientInterface citf,
                             ServerInterface oldSitf)
Description copied from interface: ConfigurationListener
Notifies this listener that an interface has been rebound.

Specified by:
interfaceRebound in interface ConfigurationListener
Parameters:
citf - the client interface that has been rebound.
oldSitf - the server interface to which it was bound.

interfaceUnbound

public void interfaceUnbound(ClientInterface citf,
                             ServerInterface sitf)
Description copied from interface: ConfigurationListener
Notifies this listener that an interface has been unbound.

Specified by:
interfaceUnbound in interface ConfigurationListener
Parameters:
citf - the client interface that has been unbound.
sitf - the server interface to which it was bound.

attributeControllerChanged

public void attributeControllerChanged(Component component,
                                       String oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the attribute controller of a component has changed.

Specified by:
attributeControllerChanged in interface ConfigurationListener
Parameters:
component - the component whose attribute controller has changed.
oldValue - the old attribute controller of the component.

attributeChanged

public void attributeChanged(Component component,
                             String attributeName,
                             String oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the value of an attribute has changed.

Specified by:
attributeChanged in interface ConfigurationListener
Parameters:
component - the component whose attribute has changed.
attributeName - the name of the attribute whose value has changed.
oldValue - the old value of the attribute.

templateControllerDescriptorChanged

public void templateControllerDescriptorChanged(Component component,
                                                String oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the template controller descriptor of a component has changed.

Specified by:
templateControllerDescriptorChanged in interface ConfigurationListener
Parameters:
component - the component whose template contoller descriptor has changed.
oldValue - the old value of the template controller descriptor.

componentControllerDescriptorChanged

public void componentControllerDescriptorChanged(Component component,
                                                 String oldValue)
Description copied from interface: ConfigurationListener
Notifies this listener that the component controller descriptor of a component has changed.

Specified by:
componentControllerDescriptorChanged in interface ConfigurationListener
Parameters:
component - the component whose component contoller descriptor has changed.
oldValue - the old value of the component controller descriptor.

subComponentAdded

public void subComponentAdded(Component parent,
                              Component child,
                              int index)
Description copied from interface: ConfigurationListener
Notifies this listener that a sub component has been added to a component.

Specified by:
subComponentAdded in interface ConfigurationListener
Parameters:
parent - the component into which the sub component has been added.
child - the sub component that has been added.
index - the index of this sub component in the sub component list of the parent component.

subComponentRemoved

public void subComponentRemoved(Component parent,
                                Component child,
                                int index)
Description copied from interface: ConfigurationListener
Notifies this listener that a sub component has been removed from a component.

Specified by:
subComponentRemoved in interface ConfigurationListener
Parameters:
parent - the component from which the sub component has been removed.
child - the sub component that has been removed.
index - the index of this sub component in the sub component list of the parent component.

componentColorChanged

public void componentColorChanged(Component component,
                                  Color oldColor)
Description copied from interface: GraphModelListener
TODO.

Specified by:
componentColorChanged in interface GraphModelListener
Parameters:
component -
oldColor -

componentPositionChanged

public void componentPositionChanged(Component component,
                                     Rect oldValue)
Description copied from interface: GraphModelListener
Notifies this listener that the coordinates of a component have changed.

Specified by:
componentPositionChanged in interface GraphModelListener
Parameters:
component - the component whose coordinates have changed.
oldValue - the old coordinates of this component.

processMouseEvent

protected void processMouseEvent(MouseEvent e)

processMouseMotionEvent

protected void processMouseMotionEvent(MouseEvent e)

paint

public void paint(Graphics g)
Specified by:
paint in interface org.objectweb.fractal.swing.ComponentItf

repaint

public void repaint()
Specified by:
repaint in interface org.objectweb.fractal.swing.ComponentItf

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface org.objectweb.fractal.swing.ComponentItf