|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.gui.graph.model.BasicGraphModel
Basic implementation of the GraphModel
interface.
Field Summary | |
static 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(String clientItfName,
Object serverItf)
Binds the client interface whose name is given to a server interface. |
Color |
getComponentColor(Component component)
TODO. |
Rect |
getComponentPosition(Component component)
Returns the coordinates of the given component. |
org.objectweb.fractal.adl.XMLElement |
getComponentsPositions(Component component)
Returns an XML element containing the coordinates of the given component. |
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 |
setComponentColor(Component component,
Color color)
TODO. |
void |
setComponentPosition(Component component,
Rect position)
Sets the coordinates of the given component. |
void |
setComponentsPositions(Component component,
org.objectweb.fractal.adl.XMLElement xml)
Sets the coordinates of the given component from the given XML element. |
void |
unbindFc(String clientItfName)
Unbinds the given client interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String GRAPH_MODEL_LISTENERS_BINDING
listeners
of this model.
Constructor Detail |
public BasicGraphModel()
BasicGraphModel
component.
Method Detail |
public String[] listFc()
BindingController
listFc
in interface BindingController
public Object lookupFc(String clientItfName)
BindingController
bindFc
).
lookupFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.
public void bindFc(String clientItfName, Object serverItf)
BindingController
bindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.serverItf
- a server interface.public void unbindFc(String clientItfName)
BindingController
unbindFc
in interface BindingController
clientItfName
- the name of a client interface of the component to
which this interface belongs.public Color getComponentColor(Component component)
GraphModel
getComponentColor
in interface GraphModel
component
-
public void setComponentColor(Component component, Color color)
GraphModel
setComponentColor
in interface GraphModel
component
- color
- public Rect getComponentPosition(Component component)
GraphModel
getComponentPosition
in interface GraphModel
component
- the component whose coordinates must be returned.
GraphModel.setComponentPosition(org.objectweb.fractal.gui.model.Component, org.objectweb.fractal.gui.graph.model.Rect)
public org.objectweb.fractal.adl.XMLElement getComponentsPositions(Component component)
GraphModel
getComponentsPositions
in interface GraphModel
component
- the component whose coordinates must be returned.
GraphModel.setComponentsPositions(org.objectweb.fractal.gui.model.Component, org.objectweb.fractal.adl.XMLElement)
public void setComponentPosition(Component component, Rect position)
GraphModel
setComponentPosition
in interface GraphModel
component
- the component whose coordinates must be set.position
- the new coordinates of the given component.GraphModel.getComponentPosition(org.objectweb.fractal.gui.model.Component)
public void setComponentsPositions(Component component, org.objectweb.fractal.adl.XMLElement xml) throws Exception
GraphModel
setComponentsPositions
in interface GraphModel
component
- the component whose coordinates must be set.xml
- an XML element containing the new coordinates of the given
component, and of all its direct and indirect sub components.
Exception
- if something goes wrong.GraphModel.getComponentsPositions(org.objectweb.fractal.gui.model.Component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |