Package com.extentech.formats.OOXML

Examples of com.extentech.formats.OOXML.SpPr


        while (eventType != XmlPullParser.END_DOCUMENT) {
          if(eventType == XmlPullParser.START_TAG) {
                 String tnm = xpp.getName();
                 if (tnm.equals("spPr")) {
                   lastTag.push(tnm);
                   SpPr sppr= (SpPr)SpPr.parseOOXML(xpp, lastTag, bk).cloneElement();
                   LineFormat lf= findLineFormatRec();
                if (lf!=null)
                  lf.setFromOOXML(sppr);
                 }              
          } else if (eventType== XmlPullParser.END_TAG) {
View Full Code Here


      int eventType = xpp.getEventType();
      int idx= 0;
      int seriesidx= parentChart.getParentChart().getAllSeries().size();
      String[] ranges= {"","","",""};   //legend, cat, ser/value, bubble cell references
      String legendText= ""
      SpPr sp= null;
      DLbls d= null
      Marker m= null;
      boolean smooth= false;
      ArrayList dpts= null;
      String cache= null;
View Full Code Here

   *
   * @param t
   */
  public Title(String t) {
    this.chartText = new ChartText(t);
    this.sp= new SpPr("c");
    // no spPr
  }
View Full Code Here

   */
  public static OOXMLElement parseOOXML(XmlPullParser xpp, Stack<String> lastTag, WorkBookHandle bk) {
    TxPr txpr = null;
    ChartText ct = null;
    Layout l = null;
    SpPr sp = null;

    /*
     * TextDisp td= (TextDisp) TextDisp.getPrototype(ObjectLink.TYPE_TITLE,
     * str, this.getWorkBook()); this.addChartRecord((BiffRec) td); // add
     * TextDisp title to end of chart recs ... charttitle= td;
View Full Code Here

          while (eventType != XmlPullParser.END_DOCUMENT) {
            if(eventType == XmlPullParser.START_TAG) {
                 String tnm = xpp.getName();
                 if (tnm.equals("spPr")) {
                   lastTag.push(tnm);
                   SpPr sppr= (SpPr)SpPr.parseOOXML(xpp, lastTag, bk).cloneElement();
                   LineFormat lf= getAxisLine((endTag.equals("majorGridlines")?AxisLineFormat.ID_MAJOR_GRID:AxisLineFormat.ID_MINOR_GRID));
                   lf.setFromOOXML(sppr);
                 }     
            } else if (eventType== XmlPullParser.END_TAG) {
                 if (xpp.getName().equals(endTag)){
View Full Code Here

                 } else if (tnm.equals("gapWidth")) {  // default=150
                   upBar.setGapWidth(Integer.valueOf(xpp.getAttributeValue(0)))// TODO: should this be in 1st dropbar or both??
                   downBar.setGapWidth(Integer.valueOf(xpp.getAttributeValue(0)))// TODO: should this be in 1st dropbar or both??
                 } else if (tnm.equals("spPr")) {
                   lastTag.push(tnm);
                   SpPr sppr= (SpPr)SpPr.parseOOXML(xpp, lastTag, bk).cloneElement();
                   LineFormat lf= (LineFormat) curbar.chartArr.get(0);
                if (lf!=null)
                  lf.setFromOOXML(sppr);
                // TODO: fill AreaFormat with sppr
                 }              
View Full Code Here

         ooxml.append("</c:strRef>");  ooxml.append("\r\n");         
         ooxml.append("</c:tx>");  ooxml.append("\r\n");
         if (this.getSpPr()!=null)
           ooxml.append(this.getSpPr().getOOXML())
         else if (from2003) {
           SpPr ss;
           if (parentChart.getChartType()!=RADARCHART)
             ss= new SpPr("c", this.getSeriesColor().substring(1), 12700, "000000");
           else
             ss= new SpPr("c", null, 25400, this.getSeriesColor().substring(1));
           ooxml.append(ss.getOOXML());
         }
        }
    return ooxml;    
   }
View Full Code Here

    int lw=-1, lclr= 0, bgcolor= 0;
    if (ttl.getLayout()!=null) {  // pos
      coords= ttl.getLayout().getCoords();
    }
    if (ttl.getSpPr()!=null) {  // Area Fill, Line Format
      SpPr sp= ttl.getSpPr();
      lw= sp.getLineWidth()// TO DO: Style, fill/color ...
      lclr= sp.getLineColor();
      bgcolor= sp.getColor();
    }
    if (coords!=null)
      charttitle.setFrame(lw, lclr, bgcolor, coords);

    // must also set the fontx id for the title
View Full Code Here

        cooxml.append(this.getAxes().getOOXML(ZAXIS, 3, serAxisId, valAxisId))// ser axis (crosses val axis)                 
        // TODO: dateAx
        if (this.getSpPr(0)!=null) {  // plot area shape props
          cooxml.append(this.getSpPr(0).getOOXML());       
        } else if (!this.wbh.getIsExcel2007()) {
          SpPr sp= new SpPr("c", this.getPlotAreaBgColor().substring(1), 12700, this.getPlotAreaLnColor().substring(1));
          cooxml.append(sp.getOOXML());

        }

        cooxml.append("</c:plotArea>");       cooxml.append("\r\n");
        // legend
View Full Code Here

TOP

Related Classes of com.extentech.formats.OOXML.SpPr

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.