Package org.odftoolkit.simple.draw

Examples of org.odftoolkit.simple.draw.FrameStyleHandler


     
      Textbox box = p.addTextbox(frameR);
      box.setName("tbox name");
      box.setTextContent(content);
     
      FrameStyleHandler frameStyleHandler = new FrameStyleHandler(box);
      frameStyleHandler.setBackgroundColor(Color.BLUE);
     
      textDoc.changeMode(OdfMediaType.TEXT_TEMPLATE);
      frameStyleHandler.setAchorType(StyleTypeDefinitions.AnchorType.TO_PAGE);
     
      //validate
      GraphicProperties graphicPropertiesForWrite = frameStyleHandler.getGraphicPropertiesForWrite();
      Assert.assertEquals(VerticalRelative.PAGE, graphicPropertiesForWrite.getVerticalRelative());
      Assert.assertEquals(FrameVerticalPosition.TOP, graphicPropertiesForWrite.getVerticalPosition());
      Assert.assertEquals(HorizontalRelative.PAGE, graphicPropertiesForWrite.getHorizontalRelative());
      Assert.assertEquals(FrameHorizontalPosition.CENTER, graphicPropertiesForWrite.getHorizontalPosition());
View Full Code Here


     
      Textbox box = p.addTextbox(frameR);
      box.setName("tbox name");
      box.setTextContent(content);
     
      FrameStyleHandler frameStyleHandler = new FrameStyleHandler(box);
      frameStyleHandler.setBackgroundColor(Color.YELLOW);
      frameStyleHandler.setVerticalRelative(VerticalRelative.PARAGRAPH);
     
      //validate
      Assert.assertEquals(VerticalRelative.PARAGRAPH, frameStyleHandler.getVerticalRelative());
     
      //
      StyleTypeDefinitions.VerticalRelative vert = StyleTypeDefinitions.VerticalRelative.enumValueOf("");
      Assert.assertEquals("page", vert.toString());
      StyleTypeDefinitions.VerticalRelative vert1 = StyleTypeDefinitions.VerticalRelative.enumValueOf("aaaa");
View Full Code Here

     
      Textbox box = p.addTextbox(frameR);
      box.setName("tbox name");
      box.setTextContent(content);
     
      FrameStyleHandler frameStyleHandler = new FrameStyleHandler(box);
      frameStyleHandler.setBackgroundColor(Color.YELLOW);
      frameStyleHandler.setHorizontalRelative(HorizontalRelative.PARAGRAPH);
     
      //validate
      Assert.assertEquals(HorizontalRelative.PARAGRAPH, frameStyleHandler.getHorizontalRelative());
     
      //
      HorizontalRelative hor = HorizontalRelative.enumValueOf("");
      Assert.assertEquals("page", hor.toString());
     
View Full Code Here

TOP

Related Classes of org.odftoolkit.simple.draw.FrameStyleHandler

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.