org.objectweb.fractal.gui.graph.model
Interface GraphModel

All Known Implementing Classes:
BasicGraphModel

public interface GraphModel

A model associating coordinates to components.


Method Summary
 java.awt.Color getComponentColor(Component component)
          TODO javadoc.
 Rect getComponentPosition(Component component)
          Returns the coordinates of the given component.
 void setComponentColor(Component component, java.awt.Color color)
          TODO javadoc.
 void setComponentPosition(Component component, Rect position)
          Sets the coordinates of the given component.
 

Method Detail

getComponentColor

public java.awt.Color getComponentColor(Component component)
TODO javadoc.

Parameters:
component -
Returns:

setComponentColor

public void setComponentColor(Component component,
                              java.awt.Color color)
TODO javadoc.

Parameters:
component -
color -

getComponentPosition

public Rect getComponentPosition(Component component)
Returns the coordinates of the given component.

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:
setComponentPosition(org.objectweb.fractal.gui.model.Component, org.objectweb.fractal.gui.graph.model.Rect)

setComponentPosition

public void setComponentPosition(Component component,
                                 Rect position)
Sets the coordinates of the given component.

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