@Test @Ignore public void section() throws IOException, OfxAuthoringException, OfxConfigurationException { Section section = new Section(); section.getContent().add(XmlTitleFactory.build("test")); section.getContent().add(image); rSection.render(section); List<String> content = rSection.getContent(); OfxContentDebugger.debug(content); }
public void render(Object parent, Image image) throws OfxAuthoringException { setEnvironment(parent); if(!image.isSetMedia()){throw new OfxAuthoringException(Image.class.getSimpleName()+" has no "+Media.class.getSimpleName());} renderPre(image); if(Environment.Figure.equals(environment) && image.isSetAlignment()){alignment(image.getAlignment());} StringBuffer sb = new StringBuffer(); if(Environment.Cell.equals(environment)){sb.append("$\\vcenter{\\hbox{");} sb.append(" \\includegraphics"); sb.append(imageArguments(image)); sb.append("{").append(cmm.getImageRef(image.getMedia())).append("}"); if(Environment.Cell.equals(environment)){sb.append("}}$");} txt.add(sb.toString()); renderPost(image); }
LatexImageRenderer extends AbstractOfxLatexRenderer implements OfxLatexRenderer { public void render(Object parent, Image image) throws OfxAuthoringException { setEnvironment(parent); if(!image.isSetMedia()){throw new OfxAuthoringException(Image.class.getSimpleName()+" has no "+Media.class.getSimpleName());} renderPre(image); if(Environment.Figure.equals(environment) && image.isSetAlignment()){alignment(image.getAlignment());} StringBuffer sb = new StringBuffer(); if(Environment.Cell.equals(environment)){sb.append("$\\vcenter{\\hbox{");} sb.append(" \\includegraphics"); sb.append(imageArguments(image)); sb.append("{").append(cmm.getImageRef(image.getMedia())).append("}"); if(Environment.Cell.equals(environment)){sb.append("}}$");} txt.add(sb.toString()); renderPost(image); } }
LatexImageRenderer extends AbstractOfxLatexRenderer implements OfxLatexRenderer { public void render(Object parent, Image image) throws OfxAuthoringException { setEnvironment(parent); if(!image.isSetMedia()){throw new OfxAuthoringException(Image.class.getSimpleName()+" has no "+Media.class.getSimpleName());} renderPre(image); if(Environment.Figure.equals(environment) && image.isSetAlignment()){alignment(image.getAlignment());} StringBuffer sb = new StringBuffer(); if(Environment.Cell.equals(environment)){sb.append("$\\vcenter{\\hbox{");} sb.append(" \\includegraphics"); sb.append(imageArguments(image)); sb.append("{").append(cmm.getImageRef(image.getMedia())).append("}"); if(Environment.Cell.equals(environment)){sb.append("}}$");} txt.add(sb.toString()); renderPost(image); } LatexImageRenderer(CrossMediaManager cmm,DefaultSettingsManager dsm); }
LatexImageRenderer extends AbstractOfxLatexRenderer implements OfxLatexRenderer { public void render(Object parent, Image image) throws OfxAuthoringException { setEnvironment(parent); if(!image.isSetMedia()){throw new OfxAuthoringException(Image.class.getSimpleName()+" has no "+Media.class.getSimpleName());} renderPre(image); if(Environment.Figure.equals(environment) && image.isSetAlignment()){alignment(image.getAlignment());} StringBuffer sb = new StringBuffer(); if(Environment.Cell.equals(environment)){sb.append("$\\vcenter{\\hbox{");} sb.append(" \\includegraphics"); sb.append(imageArguments(image)); sb.append("{").append(cmm.getImageRef(image.getMedia())).append("}"); if(Environment.Cell.equals(environment)){sb.append("}}$");} txt.add(sb.toString()); renderPost(image); } LatexImageRenderer(CrossMediaManager cmm,DefaultSettingsManager dsm); void render(Object parent, Image image); }
LatexImageRenderer extends AbstractOfxLatexRenderer implements OfxLatexRenderer { public void render(Object parent, Image image) throws OfxAuthoringException { setEnvironment(parent); if(!image.isSetMedia()){throw new OfxAuthoringException(Image.class.getSimpleName()+" has no "+Media.class.getSimpleName());} renderPre(image); if(Environment.Figure.equals(environment) && image.isSetAlignment()){alignment(image.getAlignment());} StringBuffer sb = new StringBuffer(); if(Environment.Cell.equals(environment)){sb.append("$\\vcenter{\\hbox{");} sb.append(" \\includegraphics"); sb.append(imageArguments(image)); sb.append("{").append(cmm.getImageRef(image.getMedia())).append("}"); if(Environment.Cell.equals(environment)){sb.append("}}$");} txt.add(sb.toString()); renderPost(image); } LatexImageRenderer(CrossMediaManager cmm,DefaultSettingsManager dsm); void render(Object parent, Image image);  }