List of usage examples for javax.media.j3d Interpolator getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:InterpolatorTest.java
private BranchGroup createBranchGroup(TransformGroup bgShared, Interpolator interpolator) { BranchGroup bg = new BranchGroup(); bg.addChild(bgShared);//from w w w . j a v a 2 s . c o m bg.addChild(interpolator); interpolator.setSchedulingBounds(getApplicationBounds()); // strip the package name from szClass (everything before the final ".") String szClass = interpolator.getClass().getName(); int nIndex = szClass.lastIndexOf("."); String szTrimedClass = szClass; if (nIndex > -1) szTrimedClass = szClass.substring(nIndex + 1, szClass.length()); Text2D text = new Text2D(szTrimedClass, new Color3f(1, 1, 1), "SansSerif", 20, Font.PLAIN); bg.addChild(text); return bg; }