Package javax.media.j3d

Examples of javax.media.j3d.Font3D


        ambientLightNode.setInfluencingBounds(bounds);
        group.addChild(ambientLightNode);
    }

    private void addObjects(BranchGroup group) {
        Font3D f3d = new Font3D(new Font("TestFont", Font.PLAIN, 2), new FontExtrusion());
        Text3D text = new Text3D(f3d, new String("Wladimir Cönig"), new Point3f(-3.5f, -.5f, -4.5f));
       
        Color3f white = new Color3f(1.0f, 1.0f, 1.0f);
        Color3f blue = new Color3f(.2f, 0.2f, 0.6f);
        Appearance a = new Appearance();
View Full Code Here


        // path. However, it's not clear what user interface to provide for this.
        double depth = ((DoubleToken) extrusionDepth.getToken()).doubleValue();
        FontExtrusion extrusion = new FontExtrusion(new Line2D.Double(0.0, 0.0,
                depth, 0.0));

        Font3D font3D = new Font3D(new Font(fontFamilyValue, Font.PLAIN, 1),
                extrusion);

        _textGeometry = new Text3D(font3D, textValue);
        _textGeometry.setCapability(Text3D.ALLOW_STRING_WRITE);
View Full Code Here

      vertexMap.put(v, vg);
      branch.addChild(vg);
      String label = renderContext.getVertexStringer().transform(v);
      if(label != null) {
        String fontName = "Serif";
        Font3D f3d = new Font3D(new Font(fontName, Font.PLAIN, 2),
            new FontExtrusion());
        Text3D txt = new Text3D(f3d, label,
            new Point3f(2f,2f,0));
        OrientedShape3D textShape = new OrientedShape3D();
        textShape.setGeometry(txt);
View Full Code Here

/* 147 */     return createNode(j3dClass, new Class[] { Font.class, Double.TYPE, FontExtrusion.class }, new Object[] { this.font, new Double(this.tesselationTolerance), this.extrudePath });
/*     */   }
/*     */
/*     */   protected SceneGraphObject createNode()
/*     */   {
/* 156 */     return new Font3D(this.font, this.tesselationTolerance, this.extrudePath);
/*     */   }
View Full Code Here

TOP

Related Classes of javax.media.j3d.Font3D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.