|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.explorer.graph.FractalGraph
public class FractalGraph
Utilities class for graphic representation
Constructor Summary | |
---|---|
FractalGraph()
Empty constructor |
Method Summary | |
---|---|
protected void |
addBinds(org.objectweb.util.explorer.swing.graph.Graph graph,
Component superComponent,
org.objectweb.util.explorer.swing.graph.CompositeVertex composite)
calls the graph method to represent all the binds between the sub-components of a composite component and the binds between the sub-components client interfaces and the server interfaces of the composite component |
protected void |
addInternalBinds(org.objectweb.util.explorer.swing.graph.Graph graph,
Component superComponent,
org.objectweb.util.explorer.swing.graph.CompositeVertex composite)
calls the graph method in order to represent the internal edges of a composite component (edges between the internal client interfaces of the composite component and the external interfaces of the sub-components) |
protected void |
addNeighbors(Component component,
org.objectweb.util.explorer.swing.graph.PrimitiveVertex primitiveVertex,
org.objectweb.util.explorer.swing.graph.Graph graph,
boolean controllersDisplay)
This method draws the neigbors of a primitive component selected by the user neighbor = a component which is directly bound to the primitive component selected |
protected void |
addPortsComposite(Component component,
org.objectweb.util.explorer.swing.graph.CompositeVertex composite)
calls the graph method to represent all the ports on a composite component (around the border) |
protected void |
addPortsPrimitive(Component component,
org.objectweb.util.explorer.swing.graph.PrimitiveVertex primitive)
calls the graph method to represent all the ports on a primitive component represented without its super-component |
protected void |
addSubComponentPorts(org.objectweb.util.explorer.swing.graph.CompositeVertex composite,
Component subComponent)
adds all the ports of a sub-component of a composite component |
protected void |
addSubComponents(org.objectweb.util.explorer.swing.graph.Graph graph,
Component superComponent,
org.objectweb.util.explorer.swing.graph.CompositeVertex composite)
adds all the sub-components of a composite component with their ports |
protected void |
drawBind(org.objectweb.util.explorer.swing.graph.Graph graph,
Object component,
String namePort,
Object targetComponent,
String nameTargetPort,
org.objectweb.util.explorer.swing.graph.CompositeVertex composite,
boolean isInternalEdge)
Method to draw a bind and make the connection between 2 interfaces |
org.objectweb.util.explorer.swing.graph.Graph |
getFractalGraph(Component component)
method to construct a graph which represents a component selected by the user If the component is a composite component, draws its sub-components with the interfaces and the binds |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FractalGraph()
Method Detail |
---|
protected void addPortsComposite(Component component, org.objectweb.util.explorer.swing.graph.CompositeVertex composite)
component
- the composite component to representcomposite
- the (CompositeVertex) associatedprotected void addPortsPrimitive(Component component, org.objectweb.util.explorer.swing.graph.PrimitiveVertex primitive)
component
- the primitive component to representprimitive
- the (PrimitiveVertex) associatedprotected void addNeighbors(Component component, org.objectweb.util.explorer.swing.graph.PrimitiveVertex primitiveVertex, org.objectweb.util.explorer.swing.graph.Graph graph, boolean controllersDisplay)
component
- the primitive component selectedprimitiveVertex
- the (PrimitiveVertex) associatedgraph
- the graph in which the components are representedcontrollersDisplay
- true : allows the display of the control interfacesprotected void addSubComponentPorts(org.objectweb.util.explorer.swing.graph.CompositeVertex composite, Component subComponent)
composite
- the (CompositeVertex) associated to the composite componentsubComponent
- a sub-componentprotected void addSubComponents(org.objectweb.util.explorer.swing.graph.Graph graph, Component superComponent, org.objectweb.util.explorer.swing.graph.CompositeVertex composite)
graph
- the graph in which the sub-components will be representedsuperComponent
- the composite component to representcomposite
- the (CompositeVertex) associatedprotected void drawBind(org.objectweb.util.explorer.swing.graph.Graph graph, Object component, String namePort, Object targetComponent, String nameTargetPort, org.objectweb.util.explorer.swing.graph.CompositeVertex composite, boolean isInternalEdge)
graph
- the graph in which the bind will be drawncomponent
- the client componentnamePort
- the name of the client interfacetargetComponent
- the server componentnameTargetPort
- the name of the server interfacecomposite
- the (CompositeVertex) which represents the super-component of the 2 components boundisInternalEdge
- true if the bind concerns an internal interface of the super-componentprotected void addBinds(org.objectweb.util.explorer.swing.graph.Graph graph, Component superComponent, org.objectweb.util.explorer.swing.graph.CompositeVertex composite)
graph
- the graph in which the binds will be representedsuperComponent
- the composite component to representcomposite
- the (CompositeVertex) associatedprotected void addInternalBinds(org.objectweb.util.explorer.swing.graph.Graph graph, Component superComponent, org.objectweb.util.explorer.swing.graph.CompositeVertex composite)
graph
- the graph in which the binds will be representedsuperComponent
- the composite component to drawcomposite
- the (CompositeVertex) associatedpublic org.objectweb.util.explorer.swing.graph.Graph getFractalGraph(Component component)
component
- the component selected by the user
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |