*/
@NotImplemented
public void clip(Shape s){
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
}
/**
*/
@NotImplemented
public Shape getClip(){
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
return null;
}
public boolean drawImage(Image img, int x, int y,
Color bgcolor,
ImageObserver observer){
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
-
+ logNotImplemented();
return false;
}
int width, int height,
Color bgcolor,
ImageObserver observer){
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
-
+ logNotImplemented();
return false;
}
int dx1, int dy1, int dx2, int dy2,
int sx1, int sy1, int sx2, int sy2,
ImageObserver observer){
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
return false;
}
int sx1, int sy1, int sx2, int sy2,
Color bgcolor,
ImageObserver observer){
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
return false;
}
@NotImplemented
public boolean drawImage(Image img, int x, int y,
ImageObserver observer) {
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
return false;
}
*/
@NotImplemented
public void setClip(Shape clip) {
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
}
/**
* @since JDK1.1
*/
public Rectangle getClipBounds(){
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
return null;
}
*/
@NotImplemented
public void setComposite(Composite comp){
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
}
/**
*/
@NotImplemented
public Composite getComposite(){
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
return null;
}
*/
@NotImplemented
public void drawString(AttributedCharacterIterator iterator, float x, float y) {
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
}
/**
*/
@NotImplemented
public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs) {
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
return false;
}
public boolean drawImage(Image img, int x, int y,
int width, int height,
ImageObserver observer) {
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
return false;
}
*/
@NotImplemented
public void setXORMode(Color c1) {
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
}
/**
*/
@NotImplemented
public void setPaintMode() {
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
}
/**
*/
@NotImplemented
public void drawRenderedImage(RenderedImage img, AffineTransform xform) {
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
}
/**
*/
@NotImplemented
public void drawRenderableImage(RenderableImage img, AffineTransform xform) {
- if (LOG.check(POILogger.WARN)) {
- LOG.log(POILogger.WARN, "Not implemented");
- }
+ logNotImplemented();
}
protected void applyStroke(SimpleShape<?,?> shape) {
shape.setFillColor((Color)_paint);
}
}
+
+ private void logNotImplemented() {
+ if (LOG.check(POILogger.WARN)) {
+ LOG.log(POILogger.WARN, "Not implemented");
+ }
+ }
}
package org.apache.poi.xslf.usermodel;
+import static org.apache.poi.openxml4j.opc.PackageRelationshipTypes.CORE_PROPERTIES_ECMA376_NS;
+
import java.awt.geom.Rectangle2D;
import java.io.IOException;
XmlObject[] obj = getGraphicalData().selectPath(xpath);
if (obj != null && obj.length == 1) {
XmlCursor c = obj[0].newCursor();
- QName idQualifiedName = new QName("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "id");
+ QName idQualifiedName = new QName(CORE_PROPERTIES_ECMA376_NS, "id");
id = c.getAttributeText(idQualifiedName);
c.dispose();
}
XmlCursor c = obj[0].newCursor();
try {
// duplicate chart with embedded workbook
- QName idQualifiedName = new QName("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "id");
+ QName idQualifiedName = new QName(CORE_PROPERTIES_ECMA376_NS, "id");
String id = c.getAttributeText(idQualifiedName);
XSLFChart srcChart = (XSLFChart) src.getRelationById(id);
XSLFChart chartCopy = slide.getSlideShow().createChart(slide);
XSLFSheet sheet = srcShape.getSheet();
try {
- String dm = c.getAttributeText(new QName("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "dm"));
+ String dm = c.getAttributeText(new QName(CORE_PROPERTIES_ECMA376_NS, "dm"));
PackageRelationship dmRel = sheet.getPackagePart().getRelationship(dm);
PackagePart dmPart = sheet.getPackagePart().getRelatedPart(dmRel);
getSheet().importPart(dmRel, dmPart);
- String lo = c.getAttributeText(new QName("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "lo"));
+ String lo = c.getAttributeText(new QName(CORE_PROPERTIES_ECMA376_NS, "lo"));
PackageRelationship loRel = sheet.getPackagePart().getRelationship(lo);
PackagePart loPart = sheet.getPackagePart().getRelatedPart(loRel);
getSheet().importPart(loRel, loPart);
- String qs = c.getAttributeText(new QName("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "qs"));
+ String qs = c.getAttributeText(new QName(CORE_PROPERTIES_ECMA376_NS, "qs"));
PackageRelationship qsRel = sheet.getPackagePart().getRelationship(qs);
PackagePart qsPart = sheet.getPackagePart().getRelatedPart(qsRel);
getSheet().importPart(qsRel, qsPart);
- String cs = c.getAttributeText(new QName("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "cs"));
+ String cs = c.getAttributeText(new QName(CORE_PROPERTIES_ECMA376_NS, "cs"));
PackageRelationship csRel = sheet.getPackagePart().getRelationship(cs);
PackagePart csPart = sheet.getPackagePart().getRelatedPart(csRel);
getSheet().importPart(csRel, csPart);