Examples of Font3D


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

Examples of javax.media.j3d.Font3D

        // 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

Examples of javax.media.j3d.Font3D

      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

Examples of javax.media.j3d.Font3D

/* 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

Examples of org.jmol.g3d.Font3D

      return;
    if (Graphics3D.getFontStyleID(fontface) >= 0) {
      fontstyle = fontface;
      fontface = "SansSerif";
    }     
    Font3D font3d = viewer.getFont3D(fontface, fontstyle, fontsize);
    loadShape(shapeType);
    setShapeProperty(shapeType, "font", font3d);
    if (scaleAngstromsPerPixel >= 0)
      setShapeProperty(shapeType, "scalereference", new Float(
          scaleAngstromsPerPixel));
View Full Code Here

Examples of org.jmol.g3d.Font3D

    if (mad == 0 || !g3d.checkTranslucent(false))
      return;
    int axesMode = viewer.getAxesMode();
    imageFontScaling = viewer.getImageFontScaling();
    if (viewer.areAxesTainted()) {
      Font3D f = axes.font3d;
      axes.initShape();
      if (f != null)
        axes.font3d = f;
    }
    font3d = g3d.getFont3DScaled(axes.font3d, imageFontScaling);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.