Package javax.media.j3d

Examples of javax.media.j3d.FontExtrusion


        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


        String fontFamilyValue = fontFamily.stringValue();

        // NOTE: The extrusion can, in principle, follow a more complicated
        // 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);
View Full Code Here

      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);
        textShape.setAppearance(grayLook);
View Full Code Here

/* 137 */         shape.closePath();
/*     */       }
/*     */
/* 140 */       segType = in.readInt();
/*     */     }
/* 142 */     if (shape != null) this.extrudePath = new FontExtrusion(shape, in.readDouble()); else
/* 143 */       this.extrudePath = null; }
View Full Code Here

TOP

Related Classes of javax.media.j3d.FontExtrusion

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.