MetaDone
metadone.client.display.Engine Interface Reference
Inheritance diagram for metadone.client.display.Engine:

List of all members.

Public Member Functions

Context getContext ()
Engine getParent ()
List<?extends EnginegetChildren ()
public< C > Component<?extends C > buildComponent (Class< C > clComp, boolean active)
public< C > Component<?extends C > getComponent (Class< C > clComp)
boolean isClassSupported (Class<?> clComp)
void dispose ()
boolean isActive ()
void notifyChildChanged (Engine child)
void debugEngineTreeGraphViz (Appendable out, boolean recursive, int verbose) throws IOException

Detailed Description

The engine interface.

Author:
kma

Member Function Documentation

public<C> Component<? extends C> metadone.client.display.Engine.buildComponent ( Class< C >  clComp,
boolean  active 
)

Builds a component.

The component is not managed by this class.

Parameters:
clCompThe class denoting the component type to build (usually Widget.class, JComponent.class, etc...)
activeWhether to activate the engine when building
Returns:
The component to display

Implemented in metadone.client.grasyla2.GrasylaEngine.

Referenced by metadone.client.MetadoneDesktopPane.EngineObserver.start().

void metadone.client.display.Engine.debugEngineTreeGraphViz ( Appendable  out,
boolean  recursive,
int  verbose 
) throws IOException

Prints the children of this engine.

The output is valid for GraphViz. It consists of a node representing this engine and optional edges to the children nodes.

Parameters:
outThe output
rescursiveIndicates whether the call is recursive
verboseThe verbose level

Implemented in metadone.client.grasyla2.GrasylaEngine.

Referenced by metadone.client.actions.DebugEngineAction.actionPerformed().

List<? extends Engine> metadone.client.display.Engine.getChildren ( )

Gets the children engines.

Returns:
The children engines (unmodifiable list)

Implemented in metadone.client.grasyla2.GrasylaEngine.

public<C> Component<? extends C> metadone.client.display.Engine.getComponent ( Class< C >  clComp)

Gets the built component.

Returns:
The built component or null if nothing has been built

Implemented in metadone.client.grasyla2.GrasylaEngine.

Referenced by metadone.client.MetadoneDesktopPane.EngineObserver.trigger().

Engine metadone.client.display.Engine.getParent ( )

Gets the parent engine.

Returns:
The parent engine

Implemented in metadone.client.grasyla2.GrasylaEngine.

Referenced by metadone.client.grasyla2.GrasylaEngineFactory.loopDetectInEngines().

boolean metadone.client.display.Engine.isActive ( )

Indicates whether this engine is active.

Returns:
true iff this engine is active

Implemented in metadone.client.grasyla2.GrasylaEngine.

Referenced by metadone.client.MetadoneDesktopPane.EngineObserver.trigger().

boolean metadone.client.display.Engine.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

Implemented in metadone.client.grasyla2.base.GrasylaEngineTyped< T >, metadone.client.grasyla2.GrasylaEngine, and metadone.client.grasyla2.visuallibrary.GraphEngine.

void metadone.client.display.Engine.notifyChildChanged ( Engine  child)

Called by the active child to indicate that its component has changed.

Parameters:
childThe child engine

Implemented in metadone.client.grasyla2.GrasylaEngine.

Referenced by metadone.client.grasyla2.GrasylaEngine.GrasylaEngine().


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