Package OpenCAGE.GUI.Display_Controllers.Graph_Display_Controllers

Class GDC_Clicked_Object

This is an Enumeration. Possible values: Background, Object, None.

Class Graph_Display_Controller

extends OpenCAGE.GUI.Display_Controllers.Display_Controller

Attributes

private Gdk.Types.Gdk_Key_Type Key 

holds the name of the key which is pressed

private OpenCAGE.GUI.Displays.Graph_Window_Models.Graph_Window_Model Model 

holds the pointer to the object of the class Window_Model

private OpenCAGE.GUI.Displays.Graph_Window_Displays.Graph_Window_Display Display 

holds the pointer to the object of the class Window_Display

private OpenCAGE.GUI.Display_Controllers.Graph_Display_Controllers.GDC_Clicked_Object Last_Left_Clicked_Object 

the last left clicked object (category).

private Boolean Button_Pressed 

true if there was a Button_Press_Event and no Button_Release_Event

private OpenCAGE.GUI.Menus.Con_Men_Controllers.Con_Men_Controller Con_Men_Controller 

private OpenCAGE.GUI.Cursors.Cursor_State_Model_Observer Cursor_Observer 

This observer changes the cursor in the window according to the observed state.

private OpenCAGE.GUI.Display_Controllers.Graph_Display_Controllers.Node_Model_Observer My_Node_Model_Observer 

This observer handles changes in the node model.

private OpenCAGE.GUI.Display_Controllers.Graph_Display_Controllers.Display_Observer My_Display_Observer 

This observer handles changes in the displays.

private Boolean Dirty 

This is set to true when the display has to be redrawn (e.g. by observers). The display controller checks this flag, when the command pipe has executed a command - notified by a milestone observer - and redraws itself if dirty.

private OpenCAGE.GUI.Display_Controllers.Graph_Display_Controllers.GDC_Milestone_Observer After_Execute_Milestone_Observer 

Observer that observes the after execute pipe segment.

Operations

public Update_All(void);

public Show_Window(void);

Shows the window of the display. [This description is adopted from 'OpenCAGE.GUI.Display_Controllers.Display_Controller'.]

public Hide_Window(void);

Hides the window of the display. [This description is adopted from 'OpenCAGE.GUI.Display_Controllers.Display_Controller'.]

public Connect_Handlers(void);

public Boolean Is_Visible(void);

Returns true, if the window is visible, false otherwise. [This description is adopted from 'OpenCAGE.GUI.Display_Controllers.Display_Controller'.]

public Toggle_Visibility(void);

Shows the window, if it is hidden, hides it, else. [This description is adopted from 'OpenCAGE.GUI.Display_Controllers.Display_Controller'.]

private Add_Misc_Data( FET.Parameter_Pot Pot);

Adds some misc data only the controller knows to the given pot.

private Child_Node_Added( OpenCAGE.GIF.Node_Model Model);

Called by a model observer when received the corresponding message.

private Child_Node_Removed( OpenCAGE.GIF.Node_Model Model);

Called by a model observer when received the corresponding message.

public Raise_Window(void);

Bring window of the display to front. [This description is adopted from 'OpenCAGE.GUI.Display_Controllers.Display_Controller'.]

public OpenCAGE.GUI.Displays.Window_Displays.Window_Display Get_Display(void);

returns the display that is controlled [This description is adopted from 'OpenCAGE.GUI.Display_Controllers.Display_Controller'.]

public OpenCAGE.GUI.Displays.Window_Models.Window_Model Get_Model(void);

returns the model that is displayed by the display of this controller [This description is adopted from 'OpenCAGE.GUI.Display_Controllers.Display_Controller'.]

private Destroy_Really(void);

The controller can not be destroyed by itself, because it is destroyed by the window. So Destroy calls the destroy method of the window, the window calls an event handler that calls this method.

private Node_Display_Destroying( OpenCAGE.GUI.Displays.Node_Displays.Node_Display Node);

Called by a display observer when received the corresponding message.

private Edge_Display_Destroying( OpenCAGE.GUI.Displays.Edge_Displays.Edge_Display Edge);

Called by a display observer when received the corresponding message.

private Boolean Is_My_Background_Equal_To( OpenCAGE.GIF.Node_Model Node);

true: if the background of the graph_display_controller equals the given node. false: if not.

public Add_Incoming_Edge( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model New_Edge);

Adds an incoming edge to the given node.

public Add_Outgoing_Edge( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model New_Edge);

Adds an outgoing edge to the given node.

public Remove_Incoming_Edge( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model Old_Edge);

Remove an incoming edge from the given node.

public Remove_Outgoing_Edge( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model Old_Edge);

Remove an outgoing edge from the given node.

private Changed(void);

Called by a model observer when received the corresponding message.

public Redraw_If_Dirty(void);

Redraws the display if Dirty is True.

public Set_Oc_Data( OpenCAGE.Data.Data To);

needed to initialize further objects that need Oc_Data

Class Node_Model_Observer

extends OpenCAGE.GIF.Node_Model_Observer

Attributes

private OpenCAGE.GUI.Display_Controllers.Graph_Display_Controllers.Graph_Display_Controller Controller 

Operations

public Destroying( OpenCAGE.GIF.Node_Model Old_Node);

Is called by the observed node when it is asked to destroy itself. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Changed( OpenCAGE.GIF.Node_Model Node);

Is called by the observed node when it has changed. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Child_Added( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Node_Model Child_Node);

Is called by the observed node when a child is added. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Child_Removed( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Node_Model Child_Node);

Is called by the observed node when a child is removed. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Incoming_Edge_Added( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model New_Edge);

Is called by the observed node when an incoming edge was added. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Outgoing_Edge_Added( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model New_Edge);

Is called by the observed node when an outgoing edge was added. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Incoming_Edge_Removed( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model Old_Edge);

Is called by the observed node when an incoming edge was removed. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

public Outgoing_Edge_Removed( OpenCAGE.GIF.Node_Model Node, OpenCAGE.GIF.Edge_Model Old_Edge);

Is called by the observed node when an outgoing edge was removed. [This description is adopted from 'OpenCAGE.GIF.Node_Model_Observer'.]

Class Display_Observer

extends OpenCAGE.GUI.Displays.Object_Displays.Display_Observer

the graph_window_model's display observer

Attributes

private OpenCAGE.GUI.Display_Controllers.Graph_Display_Controllers.Graph_Display_Controller Controller 

private Boolean Refresh_By_Controller 

Operations

public Moved( OpenCAGE.GUI.Displays.Object_Displays.Object_Display Display, Graphics.Points.Point Old_Position);

has to be called if the Object_Display was moved or had become a new position [This description is adopted from 'OpenCAGE.GUI.Displays.Object_Displays.Display_Observer'.]

public Changed( OpenCAGE.GUI.Displays.Object_Displays.Object_Display Display);

has to be called if there were any changes [This description is adopted from 'OpenCAGE.GUI.Displays.Object_Displays.Display_Observer'.]

public Node_Destroying( OpenCAGE.GUI.Displays.Object_Displays.Object_Display Display);

has to be called if the node has to be destroyed [This description is adopted from 'OpenCAGE.GUI.Displays.Object_Displays.Display_Observer'.]

public Edge_Destroying( OpenCAGE.GUI.Displays.Object_Displays.Object_Display Display);

has to be called if the edge has to be destroyed [This description is adopted from 'OpenCAGE.GUI.Displays.Object_Displays.Display_Observer'.]

public Visibility_Changed( OpenCAGE.GUI.Displays.Object_Displays.Object_Display Display);

has to be called if the visibility has changed [This description is adopted from 'OpenCAGE.GUI.Displays.Object_Displays.Display_Observer'.]

Class GDC_Milestone_Observer

extends OpenCAGE.Controller.Pipe_Segments.Milestone.Milestone_Observer

a milestone_observer that refreshes his graph display.

Attributes

private OpenCAGE.GUI.Display_Controllers.Graph_Display_Controllers.Graph_Display_Controller GDC 

the graph_display_controller that should be refreshed

Operations

public Reached( Ada.Strings.Unbounded.Unbounded_String Id, OpenCAGE.Controller.Command.Command Command);

called by the milestone pipe segment when the segment is called from the pipe [This description is adopted from 'OpenCAGE.Controller.Pipe_Segments.Milestone.Milestone_Observer'.]