Package org.docx4j.model.properties.table.tc

Examples of org.docx4j.model.properties.table.tc.Shading


    ctBrdr.setVal(STBorder.NONE);
    tableProperties.add(new BorderBottom(ctBrdr));
    shd.setColor("auto");
    shd.setFill("auto");
    shd.setVal(STShd.CLEAR);
    tableProperties.add(new Shading(shd));
  }
View Full Code Here


  CTShd shd = null;
  int resColor = UnitsOfMeasurement.combineColors(fgColor, bgColor, pctFg);
    shd = Context.getWmlObjectFactory().createCTShd();
    shd.setVal(STShd.CLEAR);
    shd.setFill(calcHexColor(resColor));
    return new Shading(shd);
  }
View Full Code Here

            // FOP doesn't support auto, but it degrades gracefully
        } // otherwise the default 'auto' is implied
    }
   
    if (tblPr.getShd() != null) {
      properties.add(new Shading(tblPr.getShd()));
    }
   
    return properties;   
  }
View Full Code Here

    }
    if (tcPr.getVAlign()!=null) {
      properties.add(new org.docx4j.model.properties.table.tc.TextAlignmentVertical(tcPr.getVAlign() ) );
    }
    if (tcPr.getShd()!=null) {
      properties.add(new Shading(tcPr.getShd()));
    }
   
  }
View Full Code Here

TOP

Related Classes of org.docx4j.model.properties.table.tc.Shading

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.