示例#1
0
 /**
  * Receives the value of the ODFDOM attribute representation <code>ChartDimensionAttribute</code>
  * , See {@odf.attribute chart:dimension}
  *
  * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  *     and no default value defined.
  */
 public String getChartDimensionAttribute() {
   ChartDimensionAttribute attr =
       (ChartDimensionAttribute)
           getOdfAttribute(OdfName.get(OdfNamespace.get(OdfNamespaceNames.CHART), "dimension"));
   if (attr != null) {
     return String.valueOf(attr.getValue());
   }
   return null;
 }
示例#2
0
 /**
  * Sets the value of ODFDOM attribute representation <code>ChartDimensionAttribute</code> , See
  * {@odf.attribute chart:dimension}
  *
  * @param chartDimensionValue The type is <code>String</code>
  */
 public void setChartDimensionAttribute(String chartDimensionValue) {
   ChartDimensionAttribute attr = new ChartDimensionAttribute((OdfFileDom) this.ownerDocument);
   setOdfAttribute(attr);
   attr.setValue(chartDimensionValue);
 }