Package OpenCAGE.Pixmap_Tables.Nodes.Typed

Typed extension of node pixmap. For each node type exist a pixmap vector (pixmap for each state). There is a access of a hash table to get the correct vector.

Class Type_Node_Pixmap

extends OpenCAGE.Pixmap_Tables.Nodes.Node_Pixmap

Typed extension of node pixmap. For each node type exist a pixmap vector (pixmap for each state). There is a access of a hash table to get the correct vector.

Attributes

private OpenCAGE.Pixmap_Tables.Nodes.Typed.Node_Tables.Mapping Pixmap_Table 

hash table of pixmap vectors (hash index is the type of node)

private Graphics.Graphic_Component.Gtk_GC.Gtk_Graphic_Component GC 

used Graphic-Component

Operations

public Graphics.Pixmaps.Pixmap Get_Pixmap( OpenCAGE.GIF.Node_Model Model, OpenCAGE.GUI.Displays.States.State State, OpenCAGE.Zoom_Tables.Zoom_Table Zoom);

returns the correct pixmap to model and state of node. The type of node it gets from node model.

private OpenCAGE.Pixmap_Tables.Nodes.Node_Pixmap Get_Vector( Ada.Strings.Unbounded.Unbounded_String Name);

returns the name's pixmap. 1. is it in table, take this 2. otherwise, load it from disk (do it in table for further use and returns it) 3. is it not loadable, take default one

public String Get_Default_Path(void);

returns default ID of node [This description is adopted from 'OpenCAGE.Pixmap_Tables.Nodes.Node_Pixmap'.]

public String Get_Default_ID(void);

returns default ID of node [This description is adopted from 'OpenCAGE.Pixmap_Tables.Nodes.Node_Pixmap'.]

public OpenCAGE.Pixmap_Tables.Nodes.Typed.Type_Node_Pixmap Create( Graphics.Graphic_Component.Gtk_GC.Gtk_Graphic_Component GC);

public Initialize( Graphics.Graphic_Component.Gtk_GC.Gtk_Graphic_Component GC, String Name);

initializes a new node pixmap table [This description is adopted from 'OpenCAGE.Pixmap_Tables.Nodes.Node_Pixmap'.]

private Finalize(void);