C# Class UMD.HCIL.GraphEditor.GraphEditor

Creates a simple graph control with some random nodes and connected edges. An event handler allows users to drag nodes around, keeping the edges connected.
Inheritance: UMD.HCIL.Piccolo.PCanvas
Show file Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Properties

Property Type Description
backLayer UMD.HCIL.Piccolo.PLayer
edgeLayer UMD.HCIL.Piccolo.PLayer
nodeLayer UMD.HCIL.Piccolo.PLayer
updating bool

Public Methods

Method Description
GraphEditor ( ) : System

Empty Constructor is necessary so that this control can be used as an applet.

GraphEditor ( int width, int height ) : System
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ScaleViewTo ( float scale ) : void
UpdateEdge ( UMD.HCIL.Piccolo.Nodes.PPath edge ) : void
addBack ( PNode p ) : void
addEdge ( UMD.HCIL.Piccolo.Nodes.PPath p ) : void
addNode ( PNode p ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnPaint ( PaintEventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

GraphEditor() public method

Empty Constructor is necessary so that this control can be used as an applet.
public GraphEditor ( ) : System
return System

GraphEditor() public method

public GraphEditor ( int width, int height ) : System
width int
height int
return System

InitializeComponent() public method

Required method for Designer support - do not modify the contents of this method with the code editor.
public InitializeComponent ( ) : void
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

ScaleViewTo() public method

public ScaleViewTo ( float scale ) : void
scale float
return void

UpdateEdge() public static method

public static UpdateEdge ( UMD.HCIL.Piccolo.Nodes.PPath edge ) : void
edge UMD.HCIL.Piccolo.Nodes.PPath
return void

addBack() public method

public addBack ( PNode p ) : void
p UMD.HCIL.Piccolo.PNode
return void

addEdge() public method

public addEdge ( UMD.HCIL.Piccolo.Nodes.PPath p ) : void
p UMD.HCIL.Piccolo.Nodes.PPath
return void

addNode() public method

public addNode ( PNode p ) : void
p UMD.HCIL.Piccolo.PNode
return void

Property Details

backLayer public property

public PLayer,UMD.HCIL.Piccolo backLayer
return UMD.HCIL.Piccolo.PLayer

edgeLayer public property

public PLayer,UMD.HCIL.Piccolo edgeLayer
return UMD.HCIL.Piccolo.PLayer

nodeLayer public property

public PLayer,UMD.HCIL.Piccolo nodeLayer
return UMD.HCIL.Piccolo.PLayer

updating public property

public bool updating
return bool