Examples of Dxf


Examples of com.extentech.formats.OOXML.Dxf

     */
    public String getOOXML(WorkBookHandle bk, int priority, ArrayList dxfs) {
      StringBuffer ooxml= new StringBuffer();
     
      // first deal with dfx's (differential xf's) - part of styles.xml; here we need to add dxf element to dxf's plus trap dxfId     
      Dxf dxf= new Dxf();     
      if (this.bHasFontBlock) {
        if (font!=null)
          dxf.setFont(font);
        else
          dxf.createFont(this.fontWeight, this.getFontItalic(), this.fontUnderlineStyle, this.fontColorIndex, this.fontHeight);
      }
      if (this.bHasPatternBlock) {
        if (fill!=null)
          dxf.setFill(fill);
        else
          dxf.createFill(this.patternFillStyle, this.patternFillColor, this.patternFillColorBack, bk);
      }
      if (this.bHasBorderBlock) {
        dxf.createBorder(bk, this.getBorderStyles(), new int[] {this.getBorderLineColorTop(), this.getBorderLineColorLeft(), this.getBorderLineColorBottom(), this.getBorderLineColorRight()});       
      }
      // TODO: check if this dxf already exists ****************************************************************************
      dxfs.add(dxf)// save newly created dxf (differential xf) to workbook store
      int dxfId= dxfs.size()-1// link this cf to it's dxf  NOTE: one of the ONLY OOXML id's that is 0-based ...
   
View Full Code Here

Examples of com.extentech.formats.OOXML.Dxf

                          cf.setCondition1(cfRule.getFormula1());
                        if (cfRule.getFormula2()!=null)
                          cf.setCondition2(cfRule.getFormula2());
                        int dxfId= cfRule.getDxfId();
                        if (dxfId>-1) {  // it's not required to have a dxf
                          Dxf dxf= (Dxf) dxfs.get(dxfId)// dxf= differential format, contains the specific styles to define this cf rule
                          Cf.setStylePropsFromDxf(dxf, cf);
//                          String dxfStyleString= dfx.getStyleProps();  // returns a string representation of the dxf or differential styles
//                          Cf.setStylePropsFromString(dxfStyleString,cf);  // set the dxf styles to the cf rule
                        }
                        // original code that didn't input CfRules into Cf's just stored CfRule objects ...                        condfmt.cfRules.add((CfRule.parseOOXML(xpp).cloneElement()));
View Full Code Here

Examples of com.extentech.formats.OOXML.Dxf

                         fontmap.add(Integer.valueOf(idx));
                     }
                     else if (tnm.equals("dxfs")) {   // differential formatting (conditional formatting) style
                     }
                     else if (tnm.equals("dxf"))  { // incremental style info -- for conditional save
                         Dxf d= (Dxf) Dxf.parseOOXML(xpp, bk).cloneElement();
                         dxfs.add(d);
                     }
                     else if (tnm.equals("fill")) {
                       Fill f= (Fill) Fill.parseOOXML(xpp, false, bk)
                         fills.add(f)//new Object[] { Integer.valueOf(fp), fgColor, bgColor});                      
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.