Alphabetical Class Index   Compound Members  

com.techsoft.hoops.HoopsSwtCanvas Class Reference

Public Member Functions

 HoopsSwtCanvas (final Composite parent, final int style)
 Constructor which sets the value of initDone variable to false.
 
void dispose ()
 
HBaseModel getModel ()
 
HBaseView getView ()
 
void init ()
 Initializes the HBaseView object and the m_HView key. More...
 
int mapFlags (final MouseEvent e)
 Maps the GUI-specific mouse/key state flags to HOOPS/MVO abstracted flags. More...
 
int mapKeyFlags (final KeyEvent e)
 Maps the GUI-specific key state flags to HOOPS/MVO abstracted flags. More...
 
void SetCurrentOperator (HBaseOperator new_operator)
 Deletes the current operator associated with the HBaseView object (if any) and resets the HBaseView's current operator to the new one. More...
 

Protected Member Functions

HBaseModel createDefaultModel ()
 Factory method for the default HOOPS/MVO model. More...
 
HBaseView createView (final HBaseModel model)
 Factory method for the HOOPS/MVO m_HView on the given model. More...
 

Protected Attributes

final HBaseModel m_HModel
 
HBaseView m_HView
 A reference to the HBaseView object associated with the canvas.
 
HSelectionSet m_HSelectionSet
 
Object m_HOperator
 

Member Function Documentation

HBaseModel com.techsoft.hoops.HoopsSwtCanvas.createDefaultModel ( )
protected

Factory method for the default HOOPS/MVO model.

The model has to be initialized.

Returns
A newly created and initialized model.

Referenced by com.techsoft.hoops.HoopsSwtCanvas.HoopsSwtCanvas().

HBaseView com.techsoft.hoops.HoopsSwtCanvas.createView ( final HBaseModel  model)
protected

Factory method for the HOOPS/MVO m_HView on the given model.

The m_HView has to be initialized.

Returns
A newly created and initialized m_HView.

References HJ.Close_Segment(), HJ.Open_Segment_By_Key(), HJ.Set_Color(), HJ.Set_Color_By_Index(), HJ.Set_Marker_Symbol(), HJ.Set_Rendering_Options(), HJ.Set_Selectability(), HJ.Set_Text_Font(), HJ.Set_Visibility(), and com.techsoft.hoops.HoopsSwtCanvas.m_HView.

Referenced by com.techsoft.hoops.HoopsSwtCanvas.HoopsSwtCanvas().

HBaseView com.techsoft.hoops.HoopsSwtCanvas.getView ( )
Returns
The HBaseView object associated with the canvas. The object is null until first paint.

References com.techsoft.hoops.HoopsSwtCanvas.m_HView.

void com.techsoft.hoops.HoopsSwtCanvas.init ( )

Initializes the HBaseView object and the m_HView key.

When overridden, the inherited method must be called.

Should not be called directly.

References HJ.Close_Segment(), HJ.Open_Segment_By_Key(), and HJ.Set_Driver_Options().

Referenced by com.techsoft.hoops.HoopsSwtCanvas.HoopsSwtCanvas().

int com.techsoft.hoops.HoopsSwtCanvas.mapFlags ( final MouseEvent  e)

Maps the GUI-specific mouse/key state flags to HOOPS/MVO abstracted flags.

Parameters
eProvides data for the org.eclipse.swt.events.MouseEvent event
Returns
variable indicating which MouseButton and Modifier Key is pressed
int com.techsoft.hoops.HoopsSwtCanvas.mapKeyFlags ( final KeyEvent  e)

Maps the GUI-specific key state flags to HOOPS/MVO abstracted flags.

Parameters
eProvides data for the org.eclipse.swt.events.KeyEvent event
Returns
variable indicating which modifier key is pressed
void com.techsoft.hoops.HoopsSwtCanvas.SetCurrentOperator ( HBaseOperator  new_operator)

Deletes the current operator associated with the HBaseView object (if any) and resets the HBaseView's current operator to the new one.

Parameters
new_operatorA reference to an HBaseOperator object to be used as the new operator

The documentation for this class was generated from the following file: