Documentation
¶
Index ¶
- Variables
- func ClearElements_from_Document(DocXML *etree.Document) *etree.Document
- func CreateDocument() (*etree.Document, types.ElementInfoStruct)
- func CreateElement_Edge(ElementInfoGraph, ElementInfoFrom, ElementInfoTo types.ElementInfoStruct, ...) types.ElementInfoStruct
- func CreateElement_Entity(ElementInfoMain types.ElementInfoStruct, ...) types.ElementInfoStruct
- func CreateElement_Group(ElementInfoGraph types.ElementInfoStruct, GroupCaption string, ...) types.ElementInfoStruct
- func CreateElement_SmallEntity(ElementInfoMain types.ElementInfoStruct, ElementName string, Width float64, ...) types.ElementInfoStruct
- func FindElementInfoGraphML(DocXML *etree.Document) types.ElementInfoStruct
- func FindId(ElementInfoMain, ElementInfo types.ElementInfoStruct) string
- func FindMapNodeStruct(MassElement []*etree.Element) map[string]types.NodeStruct
- func FindMassElement(doc *etree.Document) []*etree.Element
- func ReadFile(Filename string) (*etree.Document, error)
- func StartReadFile() *etree.Document
Constants ¶
This section is empty.
Variables ¶
var FONT_SIZE_BENDS = 8
FONT_SIZE_BENDS - размер шрифта стрелки куриная лапка
var FONT_SIZE_EDGE = 8
FONT_SIZE_EDGE - размер шрифта стрелок
var FONT_SIZE_ENTITY = 16
FONT_SIZE_ENTITY - размер шрифта Entity
var FONT_SIZE_GROUP = 10
FONT_SIZE_SHAPE - размер шрифта групп
var FONT_SIZE_SHAPE = 16
FONT_SIZE_SHAPE - размер шрифта прямоугольника
Functions ¶
func ClearElements_from_Document ¶
ClearElements_from_Document - возвращает документ, в котором удалены все элементы типа "node"
func CreateDocument ¶
func CreateDocument() (*etree.Document, types.ElementInfoStruct)
CreateDocument - создаёт новый документ .xgml
func CreateElement_Edge ¶
func CreateElement_Edge(ElementInfoGraph, ElementInfoFrom, ElementInfoTo types.ElementInfoStruct, label, Description string, NumberAttributeFrom, NumberAttributeTo int) types.ElementInfoStruct
CreateElement_Edge - создаёт элемент graphml - стрелка
func CreateElement_Entity ¶
func CreateElement_Entity(ElementInfoMain types.ElementInfoStruct, ElementName, ElementAttribute, Description string) types.ElementInfoStruct
CreateElement_Entity - создаёт элемент - Entity
func CreateElement_Group ¶
func CreateElement_Group(ElementInfoGraph types.ElementInfoStruct, GroupCaption string, Width, Height float64) types.ElementInfoStruct
CreateElement_Group - создаёт элемент xgml - группа
func CreateElement_SmallEntity ¶
func CreateElement_SmallEntity(ElementInfoMain types.ElementInfoStruct, ElementName string, Width float64, AttributeIndex int) types.ElementInfoStruct
CreateElement_SmallEntity - создаёт элемент - Entity
func FindElementInfoGraphML ¶
func FindElementInfoGraphML(DocXML *etree.Document) types.ElementInfoStruct
FindElementInfoGraphML - возвращает элемент "graphml"
func FindId ¶
func FindId(ElementInfoMain, ElementInfo types.ElementInfoStruct) string
FindId - находит ИД в формате "n1::n1::n1"
func FindMapNodeStruct ¶
func FindMapNodeStruct(MassElement []*etree.Element) map[string]types.NodeStruct
FindMapNodeStruct - возвращает map из узлов Element, имя, х, у
func FindMassElement ¶
FindMassElement - возвращает массив элементов типа "node"
func StartReadFile ¶
StartReadFile - читает и возвращает старый файл .graphml
Types ¶
This section is empty.