mapmodel

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MindMap

type MindMap struct {
	Root     *Node
	Selected *Node
	Filename string
}

func New

func New(source *xmlfile.Node, filename string) *MindMap

func (*MindMap) Adopt

func (m *MindMap) Adopt(node *Node, newParent *Node, beforeNode *Node)

func (*MindMap) Backspace

func (m *MindMap) Backspace()

func (*MindMap) DeleteNode

func (m *MindMap) DeleteNode()

func (*MindMap) Down

func (m *MindMap) Down()

func (*MindMap) Every

func (m *MindMap) Every(fn func(node *Node))

func (*MindMap) Export

func (m *MindMap) Export() *xmlfile.Node

func (*MindMap) Insert

func (m *MindMap) Insert(alpha rune)

func (*MindMap) Left

func (m *MindMap) Left()

func (*MindMap) NewChildNode

func (m *MindMap) NewChildNode()

func (*MindMap) NewNextNode

func (m *MindMap) NewNextNode()

func (*MindMap) Right

func (m *MindMap) Right()

func (*MindMap) Select

func (m *MindMap) Select(node *Node)

func (*MindMap) Up

func (m *MindMap) Up()

type Node

type Node struct {
	Value  *field.Field
	Parent *Node
	Childs []*Node
}

func (*Node) Level

func (node *Node) Level() int

Jump to

Keyboard shortcuts

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