Examples of SupportedLinearMeasure


Examples of org.odftoolkit.simple.style.StyleTypeDefinitions.SupportedLinearMeasure

      double cmins = SupportedLinearMeasure.CM.toINs(25.4);
      Assert.assertTrue(10 == cmins);
      double cmcms = SupportedLinearMeasure.CM.toCMs(11.0);
      Assert.assertTrue(11.0 == cmcms);
     
      SupportedLinearMeasure suppMeasure = SupportedLinearMeasure.enumValueOf("pt");
      Assert.assertEquals("pt", suppMeasure.toString());
      SupportedLinearMeasure suppMeasure1 = SupportedLinearMeasure.enumValueOf("");
      Assert.assertEquals(null, suppMeasure1);
      try {
        SupportedLinearMeasure.enumValueOf("aaa");
      } catch (Exception e) {
        Assert.assertTrue(e instanceof RuntimeException);
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.