DirectX Media for Animation Java Reference Previous
Previous
Classes
Classes
Index
Index
Next
Next

PairObject Class

Constructor , Methods

public class PairObject extends java.lang.Object
{
    // Constructor
    public PairObject(Object a, Object b);

    // Methods
    public Object getFirst();
    public Object getSecond();
            
}

Used in conjunction with the andEvent and the getPickEvent methods. The andEvent method creates a third event from two simultaneously occurring events. It returns a PairObject whose first member is the event data returned by the first event and whose second member is the data returned by the second event. The getPickEvent method returns a PairObject whose first member is the point of intersection and whose second member is a vector that is perpendicular to the surface. Note that, unlike arrays, a PairObject can contain two objects of different types.


Constructor


PairObject

public PairObject(Object a, Object b);

Constructs a PairObject object. Note that this is not a behavior.

ParameterDescription
a The first member of the PairObject.
b The second member of the PairObject.


Methods


getFirst

public Object getFirst();

Returns the first object of the PairObject.

Return Value:

Returns the object that is the first member of the PairObject.


getSecond

public Object getSecond();

Returns the second object of the PairObject.

Return Value:

Returns the object that is the second member of the PairObject.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.