flowdiagrams

package
v0.0.0-...-132a670 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Id         string `xml:"Id,attr"`
	Background string `xml:"Background,attr"`
	Stroke     string `xml:"Stroke,attr"`
}

type CategoryProvider

type CategoryProvider interface {
	Id() string
	Background() string
	TextColor() string
}

func NewSimpleCategoryProvider

func NewSimpleCategoryProvider(id, background, textColor string) CategoryProvider

type DirectedGraph

type DirectedGraph struct {
	//https://msdn.microsoft.com/en-us/library/dn966108.aspx
	Nodes      []*Node     `xml:"Nodes>Node"`
	Links      []*Link     `xml:"Links>Link"`
	Categories []*Category `xml:"Categories>Category"`
}

type Drawer

type Drawer struct {
	// contains filtered or unexported fields
}

func NewDrawer

func NewDrawer(diagramBackground string) *Drawer

func (*Drawer) AddCategory

func (d *Drawer) AddCategory(categoryProvider CategoryProvider)
func (d *Drawer) AddLink(fromID, toID, linkName string, categoryProvider CategoryProvider)

func (*Drawer) AddNode

func (d *Drawer) AddNode(label string, categoryProvider CategoryProvider) (id string)

func (*Drawer) SaveToDGML

func (d *Drawer) SaveToDGML(file string) error
type Link struct {
	Source   string `xml:"Source,attr"`
	Target   string `xml:"Target,attr"`
	Category string `xml:"Category,attr"`
	Label    string `xml:"Label,attr"`
}

type Node

type Node struct {
	Id       string `xml:"Id,attr"`
	Label    string `xml:"Label,attr"`
	Category string `xml:"Category,attr"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL