Package org.openxmlformats.schemas.drawingml.x2006.chart

Examples of org.openxmlformats.schemas.drawingml.x2006.chart.CTScaling


    manualLayout.addNewX().setVal(0);
    manualLayout.addNewY().setVal(0);
    manualLayout.addNewW().setVal(0.65);
    manualLayout.addNewH().setVal(0.8);
    chart.addNewPlotVisOnly().setVal(true);
    CTPrintSettings printSettings = chartSpace.addNewPrintSettings();
    printSettings.addNewHeaderFooter();

    CTPageMargins pageMargins = printSettings.addNewPageMargins();
    pageMargins.setB(0.75);
    pageMargins.setL(0.70);
    pageMargins.setR(0.70);
    pageMargins.setT(0.75);
    pageMargins.setHeader(0.30);
    pageMargins.setFooter(0.30);
    printSettings.addNewPageSetup();
  }
View Full Code Here


  public void setLogBase(double logBase) {
    if (logBase < MIN_LOG_BASE ||
      MAX_LOG_BASE < logBase) {
      throw new IllegalArgumentException("Axis log base must be between 2 and 1000 (inclusive), got: " + logBase);
    }
    CTScaling scaling = getCTScaling();
    if (scaling.isSetLogBase()) {
      scaling.getLogBase().setVal(logBase);
    } else {
      scaling.addNewLogBase().setVal(logBase);
    }
  }
View Full Code Here

  public boolean isSetMinimum() {
    return getCTScaling().isSetMin();
  }

  public void setMinimum(double min) {
    CTScaling scaling = getCTScaling();
    if (scaling.isSetMin()) {
      scaling.getMin().setVal(min);
    } else {
      scaling.addNewMin().setVal(min);
    }
  }
View Full Code Here

      scaling.addNewMin().setVal(min);
    }
  }

  public double getMinimum() {
    CTScaling scaling = getCTScaling();
    if (scaling.isSetMin()) {
      return scaling.getMin().getVal();
    } else {
      return 0.0;
    }
  }
View Full Code Here

  public boolean isSetMaximum() {
    return getCTScaling().isSetMax();
  }

  public void setMaximum(double max) {
    CTScaling scaling = getCTScaling();
    if (scaling.isSetMax()) {
      scaling.getMax().setVal(max);
    } else {
      scaling.addNewMax().setVal(max);
    }
  }
View Full Code Here

      scaling.addNewMax().setVal(max);
    }
  }

  public double getMaximum() {
    CTScaling scaling = getCTScaling();
    if (scaling.isSetMax()) {
      return scaling.getMax().getVal();
    } else {
      return 0.0;
    }
  }
View Full Code Here

  public AxisOrientation getOrientation() {
    return toAxisOrientation(getCTScaling().getOrientation());
  }

  public void setOrientation(AxisOrientation orientation) {
    CTScaling scaling = getCTScaling();
    STOrientation.Enum stOrientation = fromAxisOrientation(orientation);
    if (scaling.isSetOrientation()) {
      scaling.getOrientation().setVal(stOrientation);
    } else {
      getCTScaling().addNewOrientation().setVal(stOrientation);
    }
  }
View Full Code Here

  public void setLogBase(double logBase) {
    if (logBase < MIN_LOG_BASE ||
      MAX_LOG_BASE < logBase) {
      throw new IllegalArgumentException("Axis log base must be between 2 and 1000 (inclusive), got: " + logBase);
    }
    CTScaling scaling = getCTScaling();
    if (scaling.isSetLogBase()) {
      scaling.getLogBase().setVal(logBase);
    } else {
      scaling.addNewLogBase().setVal(logBase);
    }
  }
View Full Code Here

  public boolean isSetMinimum() {
    return getCTScaling().isSetMin();
  }

  public void setMinimum(double min) {
    CTScaling scaling = getCTScaling();
    if (scaling.isSetMin()) {
      scaling.getMin().setVal(min);
    } else {
      scaling.addNewMin().setVal(min);
    }
  }
View Full Code Here

      scaling.addNewMin().setVal(min);
    }
  }

  public double getMinimum() {
    CTScaling scaling = getCTScaling();
    if (scaling.isSetMin()) {
      return scaling.getMin().getVal();
    } else {
      return 0.0;
    }
  }
View Full Code Here

TOP

Related Classes of org.openxmlformats.schemas.drawingml.x2006.chart.CTScaling

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.