Click or drag to resize

GUIGraphModel Class

New version of Graph which the purpose is to replace GUIChartModel
Inheritance Hierarchy

Namespace:  Livit.Learn.Model.GUI
Assembly:  Livit.Learn.Model (in Livit.Learn.Model.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class GUIGraphModel : GUIWidgetModel

The GUIGraphModel type exposes the following members.

Constructors
  NameDescription
Public methodGUIGraphModel
Initializes a new instance of the GUIGraphModel class
Top
Properties
  NameDescription
Public propertyAlign
Aligns the Widget in the parent GUI.
(Inherited from GUIWidgetModel.)
Public propertyAtlasPath
Defines the texture atlas to be applied to the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertyAttached
Defines an attached property.
(Inherited from BaseModel.)
Public propertyBarWidth
Defines the width of each bar for when the Graph type is Bar
Public propertyColor (Inherited from GUIWidgetModel.)
Public propertyComments
(Development) Includes comments in the XML code.
(Inherited from BaseModel.)
Public propertyCode exampleDataContext
Contains a source of all bindings defined for element.
(Inherited from BaseModel.)
Public propertyDepth
Defines the depth of the Widget.
(Inherited from GUIWidgetModel.)
Public propertyDescription
Displays a description of the object to the user.
(Inherited from TriggableModel.)
Public propertyEmphasisDuration
Duration of an element's emphasizing in the scene.
(Inherited from ViewableModel.)
Public propertyExternalXmlPath (Inherited from BaseModel.)
Public propertyFields (Inherited from ScopeableModel.)
Public propertyFieldsSerialized (Inherited from ScopeableModel.)
Public propertyFontPath
Defines the font to be used on the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertyGraphData
Defines the list of GraphSeries in which the data are plotted into the Graph
Public propertyGUIGraphAxes
Defines the X and Y GraphAxis and their settings to be shown in the Graph
Public propertyGUIGraphPie
Defines the data and settings for Pie Chart
Public propertyId
Defines a unique identifier for an element in the simulation.
(Inherited from BaseModel.)
Public propertyImageSource
Defines the Image used by the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertyInitialSize
Defines the size in pixels of the Widget.
(Inherited from GUIWidgetModel.)
Public propertyIsIdAutogenerated (Inherited from BaseModel.)
Public propertyIsScope (Inherited from ScopeableModel.)
Public propertyIsVisible (Inherited from ViewableModel.)
Public propertyMessageHandlers (Inherited from ScopeableModel.)
Public propertyMessageHandlersSerialized (Inherited from ScopeableModel.)
Public propertyName
(Obsolete) Refers to the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertyPivot
Aligns the GUI object to its parent.
(Inherited from GUIViewBaseModel.)
Public propertyPosition
Defines the position of the GUI object relative to its parent.
(Inherited from GUIViewBaseModel.)
Public propertyRotation
Defines the Z-rotation of the GUI object relative to its parent (defaults to 0).
(Inherited from GUIViewBaseModel.)
Public propertySource
Defines the content source of the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertyCode exampleStateGroups
Defines the possible StateGroup for this element.
(Inherited from StateableModel.)
Public propertyStateGroupsSerialized (Inherited from StateableModel.)
Public propertyStyleId
Defines the style identifier of the GUI object.
(Inherited from GUIViewBaseModel.)
Public propertyTags (Inherited from ViewableModel.)
Public propertyTemplateVersionId
Contains a id of source template.
(Inherited from BaseModel.)
Public propertyTitle
Defines a title for the object.
(Inherited from TriggableModel.)
Public propertyTitleColor
Defines the color of the Title text
Public propertyTitleFontSize
Defines the font size of the Title in the Axis
Public propertyTriggers (Inherited from TriggableModel.)
Public propertyTriggersSerialized
Lists the available Triggers for this object.
(Inherited from TriggableModel.)
Public propertyType
Defines the Type of the Graph
Public propertyWasShown
(Internal use only) Returns true if the object has been shown in the simulation.
(Inherited from ViewableModel.)
Public propertyXmlComments
(Development) Used as temporary storage for XML comments (like ) to keep them.
(Inherited from BaseModel.)
Top
Methods
  NameDescription
Public methodDeepCopy
Creates an in-memory clone of this object using a BinaryFormatter to ensure all child properties are copied as well.
(Inherited from BaseModel.)
Public methodShallowCopy (Inherited from BaseModel.)
Public methodShouldSerializeStateGroups (Inherited from StateableModel.)
Public methodShouldSerializeTriggers (Inherited from TriggableModel.)
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseModel.)
Public methodUpdateModels
This method will update this model and all its child models.
(Inherited from BaseModel.)
Top
Examples
XML
<Graph Type="Bar" Title="Graph Test" TitleColor="Grey" Position="-200,60" Size="550,170" Align="BottomLeft" FontPath="OpenSansRegular" BarWidth="20" IsVisible="true">
  <GraphAxes>
    <GraphAxisX Title="Axis X" Min="0" Max="1.0" Interval="0.2" TitleOffset="30" TitleColor="Yellow" LabelColor="Red" CustomLabels="Jan; Feb; Mar; Apr; May; June" />
    <GraphAxisY Title="Axis Y" Min="0" Max="100" Interval="20" TitleOffset="40" TitleColor="Yellow" LabelColor="Red" />
  </GraphAxes>
  <GraphData>
    <GraphSeries DataSource="{Binding Lookup.FakeContainer9.Contents, ElementId=Engine}" LineColor="Yellow" PointColor="Yellow" LineWidth="0.5" PointWidth="5">
      <Values X="{Binding Viscosity}" Y="{Binding Amount}" />
    </GraphSeries>
    <GraphSeries DataSource="{Binding Lookup.FakeContainer9.Contents, ElementId=Engine}" LineColor="Yellow" PointColor="Red" LineWidth="0.5" PointWidth="5">
      <Values X="{Binding Viscosity}" Y="{Binding Amount}" />
    </GraphSeries>
  </GraphData>
</Graph>

For Example on Pie Chart see GUIGraphPieModel.

See Also