elements

package
v0.0.0-...-c41b6d4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dashed
	Dotted
	Thick
	Empty
)

kind

View Source
const (
	Right = iota
	Left
	Up
	Down
	Both
)

direction & arrowLocation (left, right and both)

View Source
const (
	Regular = iota
	Filled
)

arrowType

Variables

This section is empty.

Functions

This section is empty.

Types

type CList

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

func NewComponentsList

func NewComponentsList(s string) *CList

func (*CList) Exists

func (cl *CList) Exists(s string) bool

func (*CList) GetFilenameByType

func (cl *CList) GetFilenameByType(c *Component) string

func (*CList) Parse

func (cl *CList) Parse() error

type Component

type Component struct {
	DefaultElement
	Typ        string
	Identifier string
	Alias      string
}

func Get

func Get(r *Registry, i string) *Component

func NewComponent

func NewComponent(typ, identifier, alias string) *Component

type ComponentsList

type ComponentsList interface {
	GetFilenameByType(*Component) string
	Parse() error
	Exists(string) bool
}

type DefaultElement

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

func NewDefaultElement

func NewDefaultElement() DefaultElement

func (*DefaultElement) Add

func (d *DefaultElement) Add(e Element)

func (*DefaultElement) AddRelation

func (d *DefaultElement) AddRelation(r *Relation)

func (*DefaultElement) Added

func (d *DefaultElement) Added(a bool)

func (*DefaultElement) HasChilds

func (d *DefaultElement) HasChilds() bool

func (*DefaultElement) IsAdded

func (d *DefaultElement) IsAdded() bool

func (*DefaultElement) Next

func (d *DefaultElement) Next() Element

func (*DefaultElement) Relations

func (d *DefaultElement) Relations() []*Relation

func (*DefaultElement) Reset

func (d *DefaultElement) Reset()

type Element

type Element interface {
	Add(Element)
	AddRelation(*Relation)
	Relations() []*Relation
	Next() Element
	HasChilds() bool
	Reset()
	Added(bool)
	IsAdded() bool
}

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Add

func (r *Registry) Add(c *Component) error

type Relation

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

func IsRelation

func IsRelation(r string) (*Relation, bool)

func NewRelation

func NewRelation(r string) (*Relation, error)

func (*Relation) Element

func (b *Relation) Element() *Component

func (*Relation) To

func (b *Relation) To(c *Component)

type Stackable

type Stackable interface {
	Add(*Component)
}

Jump to

Keyboard shortcuts

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