MetaDone
metadone.client.grasyla2.visuallibrary.GraphEngine Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.GraphEngine:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.GraphEngine:

List of all members.

Classes

class  GrasylaContextGraph

Public Member Functions

 GraphEngine (GrasylaContext context, ConcreteObject expression, Engine parent) throws BadPreCondition
boolean isClassSupported (Class<?> clComp)
void trigger (EngineEvent event)

Static Public Member Functions

static GrasylaScene getScene (GrasylaContext context)

Protected Member Functions

GrasylaContext updateContext (GrasylaContext context) throws BadPreCondition
void disposeInternal ()
void notifyChildChanged (Engine child, ChildComponent comp)
void building_hook (boolean go)

Package Functions

protected< C > Component
<?extends C > 
buildNewComponent (Class< C > clComp) throws BadPreCondition

Static Package Functions

 [static initializer]

Private Member Functions

void updateSceneChildren (ChildComponent comp, HashSet<?> oldComponents)
boolean interactiveLayoutRankDir (SceneLayout sceneLayout)
void makeContextMenu (ContextMenuEvent cevent, final GrasylaScene scene)
void makeContextMenu (ContextMenuEvent cevent, final GrasylaScene scene, final Widget widget)
boolean findLayoutWidget (GraphVizLayout layout, Widget widget, int lvl)

Detailed Description

Builds a graph.

Attributes

Contents

The contents are evaluated as RootWidget and added into the scene.

Result
A Scene if a Widget is asked. Otherwise, a JComponent containing the created scene.
Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.GraphEngine.GraphEngine ( GrasylaContext  context,
ConcreteObject  expression,
Engine  parent 
) throws BadPreCondition

Member Function Documentation

metadone.client.grasyla2.visuallibrary.GraphEngine.[static initializer] ( ) [static, package]
void metadone.client.grasyla2.visuallibrary.GraphEngine.building_hook ( boolean  go) [protected]

Called when building of the components is started or stopped.

Parameters:
gotrue indicates that the process is started, otherwise it is false

Reimplemented from metadone.client.grasyla2.GrasylaEngine.

protected<C> Component<? extends C> metadone.client.grasyla2.visuallibrary.GraphEngine.buildNewComponent ( Class< C >  clComp) throws BadPreCondition [package, virtual]
void metadone.client.grasyla2.visuallibrary.GraphEngine.disposeInternal ( ) [protected]

Called by dispose().

It is called after clearing the children, the goal is to let subtypes clear their internal variables when disposing.

Reimplemented from metadone.client.grasyla2.GrasylaEngine.

References metadone.client.grasyla2.visuallibrary.GrasylaScene.clear(), and metadone.client.grasyla2.visuallibrary.GraphEngine.GrasylaContextGraph.getScene().

boolean metadone.client.grasyla2.visuallibrary.GraphEngine.findLayoutWidget ( GraphVizLayout  layout,
Widget  widget,
int  lvl 
) [private]
static GrasylaScene metadone.client.grasyla2.visuallibrary.GraphEngine.getScene ( GrasylaContext  context) [static]

Gets the scene from a context.

If the context does not contain a scene, the parents are searched.

Parameters:
contextThe context
Returns:
The scene
Exceptions:
IllegalArgumentExceptionwhen a context was not found

References metadone.client.grasyla2.GrasylaContext.getParentContext().

Referenced by metadone.client.grasyla2.visuallibrary.BorderVLEngine.BorderVLEngine(), metadone.client.grasyla2.visuallibrary.ComponentBuilderWidget.build(), metadone.client.grasyla2.visuallibrary.VLImageSVGEngine.building_hook(), metadone.client.grasyla2.visuallibrary.VLEdgeEngine.building_hook(), metadone.client.grasyla2.visuallibrary.VLEdgeEngine.evaluateComponent(), metadone.client.grasyla2.visuallibrary.GraphEngine.GraphEngine(), metadone.client.grasyla2.visuallibrary.AnchorEngine.registerAttributeHandlers(), metadone.client.grasyla2.visuallibrary.VLEdgeEngine.setAnchorKey(), metadone.client.grasyla2.visuallibrary.VLAdaptImage.VLAdaptImage(), metadone.client.grasyla2.visuallibrary.VLAdaptJComponent.VLAdaptJComponent(), metadone.client.grasyla2.visuallibrary.VLAdaptString.VLAdaptString(), metadone.client.grasyla2.visuallibrary.VLAdaptValue.VLAdaptValue(), metadone.client.grasyla2.visuallibrary.VLBoxEngine.VLBoxEngine(), metadone.client.grasyla2.visuallibrary.VLFreeEngine.VLFreeEngine(), metadone.client.grasyla2.visuallibrary.VLImageSVGEngine.VLImageSVGEngine(), metadone.client.grasyla2.visuallibrary.VLRotateEngine.VLRotateEngine(), metadone.client.grasyla2.visuallibrary.VLSeparatorEngine.VLSeparatorEngine(), metadone.client.grasyla2.visuallibrary.VLShapeEngine.VLShapeEngine(), metadone.client.grasyla2.visuallibrary.VLSpaceEngine.VLSpaceEngine(), and metadone.client.grasyla2.visuallibrary.VLSpringEngine.VLSpringEngine().

boolean metadone.client.grasyla2.visuallibrary.GraphEngine.interactiveLayoutRankDir ( SceneLayout  sceneLayout) [private]
boolean metadone.client.grasyla2.visuallibrary.GraphEngine.isClassSupported ( Class<?>  clComp)

Tests if the given class can be used by this component.

Parameters:
clCompThe component class
Returns:
true iff the class is supported

Reimplemented from metadone.client.grasyla2.GrasylaEngine.

void metadone.client.grasyla2.visuallibrary.GraphEngine.notifyChildChanged ( Engine  child,
ChildComponent  comp 
) [protected]
GrasylaContext metadone.client.grasyla2.visuallibrary.GraphEngine.updateContext ( GrasylaContext  context) throws BadPreCondition [protected]
void metadone.client.grasyla2.visuallibrary.GraphEngine.updateSceneChildren ( ChildComponent  comp,
HashSet<?>  oldComponents 
) [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations