Interface XGobi::XGobi

interface XGobi

This is the interface defining how clients can communicate with an instance of XGobi.



Attribute Index

fileName
The current file loaded in XGobi.

Operation Index

addVariable
Add a single variable to the current data being displayed by the server
addVariables
Add a collection of variables to the list of variables currently being displayed.
connectObservations
Connect each pair of observations with a line segment that are identified row-wise in the specified matrix.
disconnectAllObservations
Clear all connections between observations.
disconnectObservations
Remove the connection between the pairs of points identifed in the matrix.
getCoefficients
This returns the coefficients as they are displayed in the variable dials in the variable panel of the XGobi display.
getColorNames
Retrieve the list of available colors understood by the XGobi server.
getConnectedObservations
Get current collection of connections.
getCurrentValues
List of all values on the dial
getCurrentVariableValue
This is the value on the dial.
getData
A client can ask for the current data being used by the server.
getRotation
Get the rotation matrix for the current view.
getRowColors
Get the names of the colors currently being used to display each point.
getRowNames
Get the names of the observations in the currently displayed data.
getSelectedIndices
Retrieve a list of indeces identifying which observations are currently selected.
getSelectedVariables
Retrieve the names of the currently selected variables.
getSymbolNames
Return the name of the glyphs understood by the XGobi server.
getVariable
This retrieves the data associated with a given variable.
getVariableNames
Get the names of the variables currently being displayed.
getView
Retrieve the name of the current view type.
getViewTypes
Obtain a list of the names of all the possible views understood by the XGobi server.
isSelected
Determine whether the specified variable is currently selected.
replicate
clone the XGobi window, creating a new one.
setData
Load data from a Matrix object.
setObservationColor
Set the display color of an individual observation.
setObservationSymbol
Set the display symbol or glyph of an individual observation.
setObservationSymbolSize
Set the display symbol size of an individual observation.
setRotation
Specify the rotation to use in the current view.
setRowName
Set an individual observation name.
setRowNames
Set the names of the observations in the currently displayed data.
setSelected
This turns on or off the selection for the specified variable.
setSelectedIndices
Set the observations identified by index in the argument sequence to be selected.
setVariableName
setView
Sethe view to the specfied type (e.g.
setX
Specify the variable identified by the first argument to be considered as a predictor or X variable.
setY
Similar to setX(), this specifies the appropriate variable as a response.

Attributes

fileName
attribute string fileName;

The current file loaded in XGobi. This might be generalized to the identify whether the data was loaded directly from a client's data in the form of a Matrix or Data frame. Methods to set and get this value are available. The latter loads a new file.



Operations

addVariable
long addVariable(in Sequences::DoubleSequence values,
                 in string name);

Add a single variable to the current data being displayed by the server


addVariables
long addVariables(in Omegahat::BaseMatrix data,
                  in Sequences::StringSequence names);

Add a collection of variables to the list of variables currently being displayed. The names are given in the second argument. This works much like the setData method, but augments the existing data if the variables have the same length. Otherwise, an exception is thrown. It should be specified here.


connectObservations
void connectObservations(in Omegahat::Matrix pairs);

Connect each pair of observations with a line segment that are identified row-wise in the specified matrix.


disconnectAllObservations
void disconnectAllObservations();

Clear all connections between observations.


disconnectObservations
void disconnectObservations(in Omegahat::Matrix pairs);

Remove the connection between the pairs of points identifed in the matrix.


getCoefficients
Sequences::DoubleSequence getCoefficients();

This returns the coefficients as they are displayed in the variable dials in the variable panel of the XGobi display.


getColorNames
Sequences::StringSequence getColorNames();

Retrieve the list of available colors understood by the XGobi server. This allows the client to ensure that commands to set a color will be understood since the selection can be made from this list.


getConnectedObservations
Omegahat::BaseMatrix getConnectedObservations();

Get current collection of connections.


getCurrentValues
Sequences::DoubleSequence getCurrentValues();

List of all values on the dial


getCurrentVariableValue
double getCurrentVariableValue(in string name);

This is the value on the dial.


getData
Omegahat::BaseMatrix getData();

A client can ask for the current data being used by the server. It is returned as a Matrix. The are no names with matrix. This is currently a separate call. (Synchronization issues are a problem.) We will add methods to return a Data Frame which will contain the names of the variables, etc.


getRotation
Omegahat::BaseMatrix getRotation();

Get the rotation matrix for the current view. This can be used in the client to extract useful information either for plotting or for transforming variables locally according to this view, etc.


getRowColors
Sequences::StringSequence getRowColors();

Get the names of the colors currently being used to display each point. This is useful for being able to reproduce the plot in a client application.


getRowNames
Sequences::StringSequence getRowNames();

Get the names of the observations in the currently displayed data.


getSelectedIndices
Sequences::LongSequence getSelectedIndices();

Retrieve a list of indeces identifying which observations are currently selected.


getSelectedVariables
Sequences::StringSequence getSelectedVariables();

Retrieve the names of the currently selected variables.


getSymbolNames
Sequences::StringSequence getSymbolNames();

Return the name of the glyphs understood by the XGobi server.


getVariable
Omegahat::DataVector getVariable(in string name);

This retrieves the data associated with a given variable.


getVariableNames
Sequences::StringSequence getVariableNames();

Get the names of the variables currently being displayed.


getView
string getView()
    raises(InsufficientInformationException);

Retrieve the name of the current view type.


getViewTypes
Sequences::StringSequence getViewTypes();

Obtain a list of the names of all the possible views understood by the XGobi server.


isSelected
boolean isSelected(in string name);

Determine whether the specified variable is currently selected.


replicate
XGobi replicate(in boolean linked,
                in string name);

clone the XGobi window, creating a new one. linked: true or false indicating whether the new instance of the server should be linked to the other. name: the name to use by which it is registered with the CORBA naming. Also, this can be used in the titlebar of the new window.


setData
void setData(in Omegahat::BaseMatrix data,
             in Sequences::StringSequence names);

Load data from a Matrix object. The variables are taken to be the columns of the matrix and their names are provided in the second argument.


setObservationColor
boolean setObservationColor(in string color,
                            in long row);

Set the display color of an individual observation. The observation is identified by index.


setObservationSymbol
boolean setObservationSymbol(in string symbolName,
                             in long row);

Set the display symbol or glyph of an individual observation.


setObservationSymbolSize
boolean setObservationSymbolSize(in long size,
                                 in long row);

Set the display symbol size of an individual observation.


setRotation
void setRotation(in Omegahat::BaseMatrix rotation);

Specify the rotation to use in the current view. This allows the client to control the current view.


setRowName
void setRowName(in long which,
                in string name);

Set an individual observation name.


setRowNames
void setRowNames(in Sequences::StringSequence names);

Set the names of the observations in the currently displayed data.


setSelected
boolean setSelected(in string name,
                    in boolean select);

This turns on or off the selection for the specified variable.


setSelectedIndices
void setSelectedIndices(in Sequences::LongSequence rows);

Set the observations identified by index in the argument sequence to be selected.


setVariableName
void setVariableName(in long which,
                     in string name);
setView
boolean setView(in string name);

Sethe view to the specfied type (e.g. xyplot, grand tour, etc.)


setX
long setX(in string name,
          in boolean append);

Specify the variable identified by the first argument to be considered as a predictor or X variable. The second argument indicate whether this should clear existing values first (false) or simply add this variable to the existing list of predictors.


setY
long setY(in string name,
          in boolean append);

Similar to setX(), this specifies the appropriate variable as a response.



Generated by the ORBacus IDL-to-HTML translator (non-commercial)