Machinations

Public Member Functions | Protected Member Functions | Protected Attributes | Properties | Events | List of all members
Machinations.FromFlash.graph.Graph Class Reference

Abstract class, can holds machinations elements More...

Inheritance diagram for Machinations.FromFlash.graph.Graph:

## Public Member Functions

| Graph ()
void | AddElement (GraphElement element)
virtual void | RemoveElement (GraphElement element)
virtual XmlDocument | GenerateXml ()
void | FillXmlElement (XmlElement filled)
virtual void | Clear ()
virtual void | OnChanged (string reason, string message=null)
ResourceConnection | CreateResourceConnection (GraphElement startElement, GraphElement endElement, Color color, string labelText=null)
StateConnection | CreateStateConnection (GraphElement startElement, GraphElement endElement, Color color, string labelText=null)
Point | GetCenter ()
Int32Rect | GetRectangle ()

## Protected Member Functions

void | SortAndSetIds ()

## Protected Attributes

List< GraphElement > | m_elements

## Properties

List< GraphElement > | Elements`[get, set]`
List< IUserComponentSchema > | UserComponents`[get, set]`
Properties inherited from Machinations.FromFlash.graph.IGraph
List< GraphElement > | Elements`[get, set]`
List< IUserComponentSchema > | UserComponents`[get, set]`

## Events

EventHandler | Changed

## Detailed Description

Abstract class, can holds machinations elements

## Constructor & Destructor Documentation

## ◆ Graph()

Machinations.FromFlash.graph.Graph.Graph | ( |  | ) |

## Member Function Documentation

## ◆ AddElement()

void Machinations.FromFlash.graph.Graph.AddElement | ( | GraphElement | element | ) |

Add an element to the graph

Parameters

  element |

Implements Machinations.FromFlash.graph.IGraph.

## ◆ Clear()

virtual void Machinations.FromFlash.graph.Graph.Clear | ( |  | ) |

virtual

Implements Machinations.FromFlash.graph.IGraph.

Reimplemented in Machinations.FromFlash.machinations.model.MachinationsGraph.

## ◆ CreateResourceConnection()

ResourceConnection Machinations.FromFlash.graph.Graph.CreateResourceConnection | ( | GraphElement | startElement,
|  | GraphElement | endElement,
|  | Color | color,
|  | string | labelText = `null`
| ) |  |

Implements Machinations.FromFlash.graph.IGraph.

## ◆ CreateStateConnection()

StateConnection Machinations.FromFlash.graph.Graph.CreateStateConnection | ( | GraphElement | startElement,
|  | GraphElement | endElement,
|  | Color | color,
|  | string | labelText = `null`
| ) |  |

Implements Machinations.FromFlash.graph.IGraph.

## ◆ FillXmlElement()

void Machinations.FromFlash.graph.Graph.FillXmlElement | ( | XmlElement | filled | ) |

Implements Machinations.FromFlash.graph.IGraph.

## ◆ GenerateXml()

virtual XmlDocument Machinations.FromFlash.graph.Graph.GenerateXml | ( |  | ) |

virtual

Generate a XML object that represents the graph

Returns
  an XML object representing the graph

Implements Machinations.FromFlash.graph.IGraph.

Reimplemented in Machinations.FromFlash.machinations.model.MachinationsGraph, and Machinations.FromFlash.graph.UserComponentGraph.

## ◆ GetCenter()

Point Machinations.FromFlash.graph.Graph.GetCenter | ( |  | ) |

Implements Machinations.FromFlash.graph.IGraph.

## ◆ GetRectangle()

Int32Rect Machinations.FromFlash.graph.Graph.GetRectangle | ( |  | ) |

## ◆ OnChanged()

virtual void Machinations.FromFlash.graph.Graph.OnChanged | ( | string | reason,
|  | string | message = `null`
| ) |  |

virtual

Implements Machinations.FromFlash.graph.IGraph.

## ◆ RemoveElement()

virtual void Machinations.FromFlash.graph.Graph.RemoveElement | ( | GraphElement | element | ) |

virtual

Removes an element from a graph, do not call this function directly call element.dispose() instead

Parameters

  element |

Implements Machinations.FromFlash.graph.IGraph.

Reimplemented in Machinations.FromFlash.machinations.model.MachinationsGraph.

## ◆ SortAndSetIds()

void Machinations.FromFlash.graph.Graph.SortAndSetIds | ( |  | ) |

protected

## Member Data Documentation

## ◆ m_elements

List<GraphElement> Machinations.FromFlash.graph.Graph.m_elements

protected

Contains all elements in the graph

## Property Documentation

## ◆ Elements

List<GraphElement> Machinations.FromFlash.graph.Graph.Elements

get set

## ◆ UserComponents

List<IUserComponentSchema> Machinations.FromFlash.graph.Graph.UserComponents

get set

## Event Documentation

## ◆ Changed

EventHandler Machinations.FromFlash.graph.Graph.Changed

The documentation for this class was generated from the following file:

- FromFlash/graph/Graph.cs