DirectX Media for Animation Java Reference |
![]() Previous |
![]() Classes |
![]() Index |
![]() Next |
The Statics class collects all the static methods and constants provided by the other classes in com.ms.dxmedia and makes them available as static methods on the Statics class. In addition, the Model class extends from Statics. This means that, when a programmer is implementing the createModel method of the class they extend from Model, all of the static methods in Statics become available without qualification.
If programmers want to write Direct Animation for Java code outside of the Model class and not have to qualify their static method invocations, they can do so by having their own class that extends the Statics class. If this is not feasible (because the class already extends another class) then explicit name qualification will be required. For example, it is possible to write:
colorRgb(mul(a,b), sin(c), toBvr(d)));
rather than:
ColorBvr.colorRgb(NumberBvr.mul(a,b), NumberBvr.sin(c), NumberBvr.toBvr(d));
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.