Package org.odftoolkit.odfdom.dom.element.dr3d

Examples of org.odftoolkit.odfdom.dom.element.dr3d.Dr3dLightElement


          axis.setProperty(StyleTextPropertiesElement.FontSizeAsian, "10pt");
          axis.setProperty(StyleTextPropertiesElement.FontSizeComplex, "10pt");
        }
      }

      Dr3dLightElement light1 = plotArea.newDr3dLightElement("");
      light1.setDr3dDiffuseColorAttribute("#b3b3b3");
      light1.setDr3dDirectionAttribute("(0 0 1)");
      light1.setDr3dEnabledAttribute(new Boolean(false));
      light1.setDr3dSpecularAttribute(new Boolean(true));
      Dr3dLightElement light2 = plotArea.newDr3dLightElement("");
      light2.setDr3dDiffuseColorAttribute("#999999");
      light2.setDr3dDirectionAttribute("(-0.2 0.7 0.6)");
      light2.setDr3dEnabledAttribute(new Boolean(true));
      light2.setDr3dSpecularAttribute(new Boolean(false));
      Dr3dLightElement light3 = plotArea.newDr3dLightElement("");
      light3.setDr3dDiffuseColorAttribute("#b3b3b3");
      light3.setDr3dDirectionAttribute("(0 0 1)");
      light3.setDr3dEnabledAttribute(new Boolean(false));
      light3.setDr3dSpecularAttribute(new Boolean(false));
      Dr3dLightElement light4 = plotArea.newDr3dLightElement("");
      light4.setDr3dDiffuseColorAttribute("#b3b3b3");
      light4.setDr3dDirectionAttribute("(0 0 1)");
      light4.setDr3dEnabledAttribute(new Boolean(false));
      light4.setDr3dSpecularAttribute(new Boolean(false));
      Dr3dLightElement light5 = plotArea.newDr3dLightElement("");
      light5.setDr3dDiffuseColorAttribute("#b3b3b3");
      light5.setDr3dDirectionAttribute("(0 0 1)");
      light5.setDr3dEnabledAttribute(new Boolean(false));
      light5.setDr3dSpecularAttribute(new Boolean(false));
      Dr3dLightElement light6 = plotArea.newDr3dLightElement("");
      light6.setDr3dDiffuseColorAttribute("#b3b3b3");
      light6.setDr3dDirectionAttribute("(0 0 1)");
      light6.setDr3dEnabledAttribute(new Boolean(false));
      light6.setDr3dSpecularAttribute(new Boolean(false));
      Dr3dLightElement light7 = plotArea.newDr3dLightElement("");
      light7.setDr3dDiffuseColorAttribute("#b3b3b3");
      light7.setDr3dDirectionAttribute("(0 0 1)");
      light7.setDr3dEnabledAttribute(new Boolean(false));
      light7.setDr3dSpecularAttribute(new Boolean(false));
      Dr3dLightElement light8 = plotArea.newDr3dLightElement("");
      light8.setDr3dDiffuseColorAttribute("#b3b3b3");
      light8.setDr3dDirectionAttribute("(0 0 1)");
      light8.setDr3dEnabledAttribute(new Boolean(false));
      light8.setDr3dSpecularAttribute(new Boolean(false));
    } else {
      NodeList lights = plotArea.getElementsByTagName(Dr3dLightElement.ELEMENT_NAME.getQName());
      for (int i = 0; i < lights.getLength(); i++) {
        plotArea.removeChild(lights.item(i));
      }
View Full Code Here


   *
   * @param dr3dDirectionValue  the <code>String</code> value of <code>Dr3dDirectionAttribute</code>, see {@odf.attribute  dr3d:direction} at specification
   * @return the element {@odf.element dr3d:light}
   */
   public Dr3dLightElement newDr3dLightElement(String dr3dDirectionValue) {
    Dr3dLightElement dr3dLight = ((OdfFileDom) this.ownerDocument).newOdfElement(Dr3dLightElement.class);
    dr3dLight.setDr3dDirectionAttribute(dr3dDirectionValue);
    this.appendChild(dr3dLight);
    return dr3dLight;
  }
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.dom.element.dr3d.Dr3dLightElement

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.