org.objectweb.fractal.gui.graph.model
Class BasicGraphModel

java.lang.Object
  extended byorg.objectweb.fractal.gui.graph.model.BasicGraphModel
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, GraphModel

public class BasicGraphModel
extends java.lang.Object
implements GraphModel, org.objectweb.fractal.api.control.BindingController

Basic implementation of the GraphModel interface.


Field Summary
static java.lang.String GRAPH_MODEL_LISTENERS_BINDING
          A collection client interface bound to the listeners of this model.
 
Constructor Summary
BasicGraphModel()
          Constructs a new BasicGraphModel component.
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 java.awt.Color getComponentColor(Component component)
          TODO javadoc.
 Rect getComponentPosition(Component component)
          Returns the coordinates of the given component.
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 void setComponentColor(Component component, java.awt.Color color)
          TODO javadoc.
 void setComponentPosition(Component component, Rect position)
          Sets the coordinates of the given component.
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRAPH_MODEL_LISTENERS_BINDING

public static final java.lang.String GRAPH_MODEL_LISTENERS_BINDING
A collection client interface bound to the listeners of this model.

See Also:
Constant Field Values
Constructor Detail

BasicGraphModel

public BasicGraphModel()
Constructs a new BasicGraphModel component.

Method Detail

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController

unbindFc

public void unbindFc(java.lang.String clientItfName)
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController

getComponentColor

public java.awt.Color getComponentColor(Component component)
Description copied from interface: GraphModel
TODO javadoc.

Specified by:
getComponentColor in interface GraphModel
Parameters:
component -
Returns:

setComponentColor

public void setComponentColor(Component component,
                              java.awt.Color color)
Description copied from interface: GraphModel
TODO javadoc.

Specified by:
setComponentColor in interface GraphModel
Parameters:
component -
color -

getComponentPosition

public Rect getComponentPosition(Component component)
Description copied from interface: GraphModel
Returns the coordinates of the given component.

Specified by:
getComponentPosition in interface GraphModel
Parameters:
component - the component whose coordinates must be returned.
Returns:
the coordinates of the given component. These coordinates are relative to the parent component of the given component: (0,0) is the top left corner of the inner area of the parent component, and (1,1) is the botton right corner of this area.
See Also:
GraphModel.setComponentPosition(org.objectweb.fractal.gui.model.Component, org.objectweb.fractal.gui.graph.model.Rect)

setComponentPosition

public void setComponentPosition(Component component,
                                 Rect position)
Description copied from interface: GraphModel
Sets the coordinates of the given component.

Specified by:
setComponentPosition in interface GraphModel
Parameters:
component - the component whose coordinates must be set.
position - the new coordinates of the given component.
See Also:
GraphModel.getComponentPosition(org.objectweb.fractal.gui.model.Component)