diff --git a/.classpath b/.classpath
deleted file mode 100644
index 3238145f4..000000000
--- a/.classpath
+++ /dev/null
@@ -1,36 +0,0 @@
-
- The Apache POI team is pleased to announce the release of ${version.id}.
- Featured are a handful of new areas of functionality and numerous bug fixes. A summary of changes is available in the
- Release Notes.
- A full list of changes is available in the change log.
- People interested should also follow the dev list
- to track progress.
- The POI source release as well as the pre-built binary deployment packages are listed below.
- Pre-built versions of all POI components
- are available in the central Maven repository under Group ID "org.apache.poi" and Version
- "${version.id}".
-
-Apache POI - the Java API for Microsoft Documents
-
-This is an automatically generated Job Config, do not edit it here!
-Instead change the Jenkins Job DSL at https://svn.apache.org/repos/asf/poi/trunk/jenkins,
-see https://github.com/jenkinsci/job-dsl-plugin/wiki
-for more details about the DSL.
-
-Sonar reports -
-
-API Check POI
-API Check POI-OOXML
-API Check POI-Excelant
-API Check POI-Scratchpad
-
-
-Findbugs report of latest build -
-Sonar reports -
-Coverage of latest build
- This class copies a POI file system to a new file and compares the copy
- * with the original. Property set streams are copied logically, i.e. the application
- * establishes a {@link org.apache.poi.hpsf.PropertySet} of an original property
- * set, creates a {@link org.apache.poi.hpsf.MutablePropertySet} from the
- * {@link org.apache.poi.hpsf.PropertySet} and writes the
- * {@link org.apache.poi.hpsf.MutablePropertySet} to the destination POI file
- * system. - Streams which are no property set streams are copied bit by
- * bit. The comparison of the POI file systems is done logically. That means that
- * the two disk files containing the POI file systems do not need to be
- * exactly identical. However, both POI file systems must contain the same
- * files, and most of these files must be bitwise identical. Property set
- * streams, however, are compared logically: they must have the same sections
- * with the same attributs, and the sections must contain the same properties.
- * Details like the ordering of the properties do not matter. Runs the example program. The application expects one or two
- * arguments: The first argument is the disk file name of the POI filesystem to
- * copy. The second argument is optional. If it is given, it is the name of
- * a disk file the copy of the POI filesystem will be written to. If it is
- * not given, the copy will be written to a temporary file which will be
- * deleted at the end of the program. Compares two {@link DirectoryEntry} instances of a POI file system.
- * The directories must contain the same streams with the same names and
- * contents. Compares two {@link DocumentEntry} instances of a POI file system.
- * Documents that are not property set streams must be bitwise identical.
- * Property set streams must be logically equal. This class does all the work. Its method {@link
- * #processPOIFSReaderEvent(POIFSReaderEvent)} is called for each file in
- * the original POI file system. Except for property set streams it copies
- * everything unmodified to the destination POI filesystem. Property set
- * streams are copied by creating a new {@link PropertySet} from the
- * original property set by using the {@link
- * MutablePropertySet#MutablePropertySet(PropertySet)} constructor. The constructor of a {@link CopyFile} instance creates the target
- * POIFS. It also stores the name of the file the POIFS will be written
- * to once it is complete. The method is called by POI's eventing API for each file in the
- * origin POIFS. Writes a {@link PropertySet} to a POI filesystem. Copies the bytes from a {@link DocumentInputStream} to a new
- * stream in a POI filesystem. Writes the POI file system to a disk file. Ensures that the directory hierarchy for a document in a POI
- * fileystem is in place. When a document is to be created somewhere in
- * a POI filesystem its directory must be created first. This method
- * creates all directories between the POI filesystem root and the
- * directory the document should belong to which do not yet exist. Unfortunately POI does not offer a simple method to interrogate
- * the POIFS whether a certain child node (file or directory) exists in
- * a directory. However, since we always start with an empty POIFS which
- * contains the root directory only and since each directory in the
- * POIFS is created by this method we can maintain the POIFS's directory
- * hierarchy ourselves: The {@link DirectoryEntry} of each directory
- * created is stored in a {@link Map}. The directories' path names map
- * to the corresponding {@link DirectoryEntry} instances. This is a sample application showing how to easily modify properties in
- * the summary information and in the document summary information. The
- * application reads the name of a POI filesystem from the command line and
- * performs the following actions: Open the POI filesystem. Read the summary information. Read and print the "author" property. Change the author to "Rainer Klute". Read the document summary information. Read and print the "category" property. Change the category to "POI example". Read the custom properties (if available). Insert a new custom property. Write the custom properties back to the document summary
- * information. Write the summary information to the POI filesystem. Write the document summary information to the POI filesystem. Write the POI filesystem back to the original file. Main method - see class description. Sample application showing how to read a document's custom property set.
- * Call it with the document's file name as command-line parameter. Explanations can be found in the HPSF HOW-TO. Runs the example program. Sample application showing how to read a OLE 2 document's
- * title. Call it with the document's file name as command line
- * parameter. Explanations can be found in the HPSF HOW-TO. Runs the example program. This class is a sample application which shows how to write or modify the
- * author and title property of an OLE 2 document. This could be done in two
- * different ways: The first approach is to open the OLE 2 file as a POI filesystem
- * (see class {@link POIFSFileSystem}), read the summary information property
- * set (see classes {@link SummaryInformation} and {@link PropertySet}), write
- * the author and title properties into it and write the property set back into
- * the POI filesystem. The second approach does not modify the original POI filesystem, but
- * instead creates a new one. All documents from the original POIFS are copied
- * to the destination POIFS, except for the summary information stream. The
- * latter is modified by setting the author and title property before writing
- * it to the destination POIFS. It there are several summary information streams
- * in the original POIFS - e.g. in subordinate directories - they are modified
- * just the same. This sample application takes the second approach. It expects the name of
- * the existing POI filesystem's name as its first command-line parameter and
- * the name of the output POIFS as the second command-line argument. The
- * program then works as described above: It copies nearly all documents
- * unmodified from the input POI filesystem to the output POI filesystem. If it
- * encounters a summary information stream it reads its properties. Then it sets
- * the "author" and "title" properties to new values and writes the modified
- * summary information stream into the output file. Further explanations can be found in the HPSF HOW-TO. Runs the example program. This class does all the work. As its name implies it modifies a
- * summary information property set and copies everything else unmodified
- * to the destination POI filesystem. Since an instance of it is registered
- * as a {@link POIFSReader} its method {@link
- * #processPOIFSReaderEvent(POIFSReaderEvent)} is called for each document
- * in the origin POIFS. The constructor of a {@link ModifySICopyTheRest} instance creates
- * the target POIFS. It also stores the name of the file the POIFS will
- * be written to once it is complete. The method is called by POI's eventing API for each file in the
- * origin POIFS. Receives a summary information property set modifies (or creates)
- * its "author" and "title" properties and writes the result under the
- * same path and name as the origin to a destination POI filesystem. Writes a {@link PropertySet} to a POI filesystem. This method is
- * simpler than {@link #editSI} because the origin property set has just
- * to be copied. Copies the bytes from a {@link DocumentInputStream} to a new
- * stream in a POI filesystem. Writes the POI file system to a disk file. Ensures that the directory hierarchy for a document in a POI
- * fileystem is in place. When a document is to be created somewhere in
- * a POI filesystem its directory must be created first. This method
- * creates all directories between the POI filesystem root and the
- * directory the document should belong to which do not yet exist. Unfortunately POI does not offer a simple method to interrogate
- * the POIFS whether a certain child node (file or directory) exists in
- * a directory. However, since we always start with an empty POIFS which
- * contains the root directory only and since each directory in the
- * POIFS is created by this method we can maintain the POIFS's directory
- * hierarchy ourselves: The {@link DirectoryEntry} of each directory
- * created is stored in a {@link Map}. The directories' path names map
- * to the corresponding {@link DirectoryEntry} instances. This class is a simple sample application showing how to create a property
- * set and write it to disk. Runs the example program.
- * Excel comment is a kind of a text shape,
- * so inserting a comment is very similar to placing a text box in a worksheet
- * ");
- }
-
- public void closeParagraph ()
- throws IOException
- {
- _out.write (" Describes the most important (whatever that is) features of a
- * {@link POIFSDocument}. Creates a {@link DocumentDescriptor}. {@link TreeCellRenderer} for a {@link DocumentDescriptor}. The
- * renderer is extremly rudimentary since displays only the document's
- * name, its size and its fist few bytes. Renders {@link DocumentDescriptor} as a string. This is a {@link TreeCellRenderer} implementation which is able
- * to render arbitrary objects. The {@link ExtendableTreeCellRenderer}
- * does not do the rendering itself but instead dispatches to
- * class-specific renderers. A class/renderer pair must be registered
- * using the {@link #register} method. If a class has no registered
- * renderer, the renderer of its closest superclass is used. Since the
- * {@link ExtendableTreeCellRenderer} always has a default renderer
- * for the {@link Object} class, rendering is always possible. The
- * default {@link Object} renderer can be replaced by another renderer
- * but it cannot be unregistered. Maps classes to renderers. Registers a renderer for a class. Unregisters a renderer for a class. The renderer for the
- * {@link Object} class cannot be unregistered. Renders an object in a tree cell depending of the object's
- * class. Find the renderer for the specified class. The main class of the POI Browser. It shows the structure of POI
- * filesystems (Microsoft Office documents) in a {@link
- * JTree}. Specify their filenames on the command line! The tree's root node must be visible to all methods. Takes a bunch of file names as command line parameters,
- * opens each of them as a POI filesystem and displays their
- * internal structures in a {@link JTree}. Describes the most important (whatever that is) features of a
- * stream containing a {@link PropertySet}. Returns this {@link PropertySetDescriptor}'s {@link
- * PropertySet}. Creates a {@link PropertySetDescriptor} by reading a {@link
- * PropertySet} from a {@link DocumentInputStream}. Renders a {@link PropertySetDescriptor} by more or less dumping
- * the stuff into a {@link JTextArea}. Returns a string representation of a list of {@link
- * Section}s. Returns a string representation of a {@link Section}. Organizes document information in a tree model in order to be
- * e.g. displayed in a Swing {@link javax.swing.JTree}. An instance of this
- * class is created with a root tree node ({@link MutableTreeNode}) and
- * registered as a {@link POIFSReaderListener} with a {@link
- * org.apache.poi.poifs.eventfilesystem.POIFSReader}. While the latter processes
- * a POI filesystem it calls this class' {@link #processPOIFSReaderEvent} for
- * each document it has been registered for. This method appends the document it
- * processes at the appropriate position into the tree rooted at the
- * above mentioned root tree node. The root tree node should be the root tree node of a {@link
- * javax.swing.tree.TreeModel}. A top-level element in the tree model, i.e. an immediate child
- * node of the root node, describes a POI filesystem as such. It is
- * suggested to use the file's name (as seen by the operating system)
- * but it could be any other string. The value of a tree node is a {@link DocumentDescriptor}. Unlike
- * a {@link org.apache.poi.poifs.filesystem.POIFSDocument} which may be as heavy
- * as many megabytes, an instance of {@link DocumentDescriptor} is a
- * light-weight object and contains only some meta-information about a
- * document. The tree's root node. POI filesystems get attached to this
- * node as children. Maps filenames and POI document paths to their associated
- * tree nodes.
-
-
- MD5 checksum:
- ${bin-tar-md5}
-
- SHA1 checksum:
- ${bin-tar-sha1}
-
- MD5 checksum:
- ${bin-zip-md5}
-
- SHA1 checksum:
- ${bin-zip-sha1}
-
-
-
- MD5 checksum:
- ${src-tar-md5}
-
- SHA1 checksum:
- ${src-tar-sha1}
-
- MD5 checksum:
- ${src-zip-md5}
-
- SHA1 checksum:
- ${src-zip-sha1}
-
You chose the file <%= filename %>.
-
It's contents are:
-<%
- try
- {
-
- // create a poi workbook from the excel spreadsheet file
- POIFSFileSystem fs =
- new POIFSFileSystem(new FileInputStream(filename));
- HSSFWorkbook wb = new HSSFWorkbook(fs);
-
- for (int k = 0; k < wb.getNumberOfSheets(); k++)
- {
-%>
-
Sheet <%= k %>
-<%
-
- HSSFSheet sheet = wb.getSheetAt(k);
- int rows = sheet.getPhysicalNumberOfRows();
-
- for (int r = 0; r < rows; r++)
- {
- HSSFRow row = sheet.getRow(r);
- if (row != null) {
- int cells = row.getPhysicalNumberOfCells();
-%>
-
ROW <%=
-row.getRowNum() %>
-<%
- for (short c = 0; c < cells; c++)
- {
- HSSFCell cell = row.getCell(c);
- if (cell != null) {
- String value = null;
-
- switch (cell.getCellType())
- {
-
- case HSSFCell.CELL_TYPE_FORMULA :
- value = "FORMULA ";
- break;
-
- case HSSFCell.CELL_TYPE_NUMERIC :
- value = "NUMERIC value="
- + cell.getNumericCellValue
-();
- break;
-
- case HSSFCell.CELL_TYPE_STRING :
- value = "STRING value="
- + cell.getStringCellValue();
- break;
-
- default :
- }
-%>
- <%= "CELL col="
-
- + cell.getColumnIndex()
- + " VALUE=" + value %>
-<%
- }
- }
- }
- }
- }
- }
- catch (Exception e)
- {
-%>
- Error occurred: <%= e.getMessage() %>
-<%
- e.printStackTrace();
- }
-
- }
-%>
-
-
-
diff --git a/src/examples/lib/dummy.txt b/src/examples/lib/dummy.txt
deleted file mode 100644
index ee37f4519..000000000
--- a/src/examples/lib/dummy.txt
+++ /dev/null
@@ -1 +0,0 @@
-Dummy file so this directory is not deleted by CVS. It's required for the build.
\ No newline at end of file
diff --git a/src/examples/src/org/apache/poi/crypt/examples/EncryptionUtils.java b/src/examples/src/org/apache/poi/crypt/examples/EncryptionUtils.java
deleted file mode 100644
index c2b795cb5..000000000
--- a/src/examples/src/org/apache/poi/crypt/examples/EncryptionUtils.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * ====================================================================
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ====================================================================
- */
-
-package org.apache.poi.crypt.examples;
-
-import java.io.InputStream;
-
-import org.apache.poi.poifs.crypt.Decryptor;
-import org.apache.poi.poifs.crypt.EncryptionInfo;
-import org.apache.poi.poifs.filesystem.POIFSFileSystem;
-import org.apache.poi.util.IOUtils;
-
-public class EncryptionUtils {
- private EncryptionUtils() {
- }
-
- public static InputStream decrypt(final InputStream inputStream, final String pwd) throws Exception {
- try {
- POIFSFileSystem fs = new POIFSFileSystem(inputStream);
- EncryptionInfo info = new EncryptionInfo(fs);
- Decryptor d = Decryptor.getInstance(info);
- if (!d.verifyPassword(pwd)) {
- throw new RuntimeException("incorrect password");
- }
- return d.getDataStream(fs);
- } finally {
- IOUtils.closeQuietly(inputStream);
- }
- }
-}
diff --git a/src/examples/src/org/apache/poi/examples/util/TempFileUtils.java b/src/examples/src/org/apache/poi/examples/util/TempFileUtils.java
deleted file mode 100644
index 5d4f7ab53..000000000
--- a/src/examples/src/org/apache/poi/examples/util/TempFileUtils.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * ====================================================================
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ====================================================================
- */
-
-package org.apache.poi.examples.util;
-
-import java.io.File;
-import java.io.IOException;
-
-import org.apache.poi.util.TempFile;
-
-public class TempFileUtils {
- private TempFileUtils() {
- }
-
- public static void checkTempFiles() throws IOException {
- String tmpDir = System.getProperty(TempFile.JAVA_IO_TMPDIR) + "/poifiles";
- File tempDir = new File(tmpDir);
- if(tempDir.exists()) {
- String[] tempFiles = tempDir.list();
- if(tempFiles != null && tempFiles.length > 0) {
- System.out.println("found files in poi temp dir " + tempDir.getAbsolutePath());
- for(String filename : tempFiles) {
- System.out.println("file: " + filename);
- }
- }
- } else {
- System.out.println("unable to find poi temp dir");
- }
- }
-}
diff --git a/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java b/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java
deleted file mode 100644
index 1a0ade2af..000000000
--- a/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java
+++ /dev/null
@@ -1,499 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.hpsf.examples;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.UnsupportedEncodingException;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.poi.hpsf.HPSFRuntimeException;
-import org.apache.poi.hpsf.MarkUnsupportedException;
-import org.apache.poi.hpsf.MutablePropertySet;
-import org.apache.poi.hpsf.NoPropertySetStreamException;
-import org.apache.poi.hpsf.PropertySet;
-import org.apache.poi.hpsf.PropertySetFactory;
-import org.apache.poi.hpsf.Util;
-import org.apache.poi.hpsf.WritingNotSupportedException;
-import org.apache.poi.poifs.eventfilesystem.POIFSReader;
-import org.apache.poi.poifs.eventfilesystem.POIFSReaderEvent;
-import org.apache.poi.poifs.eventfilesystem.POIFSReaderListener;
-import org.apache.poi.poifs.filesystem.DirectoryEntry;
-import org.apache.poi.poifs.filesystem.DocumentEntry;
-import org.apache.poi.poifs.filesystem.DocumentInputStream;
-import org.apache.poi.poifs.filesystem.Entry;
-import org.apache.poi.poifs.filesystem.POIFSDocumentPath;
-import org.apache.poi.poifs.filesystem.POIFSFileSystem;
-import org.apache.poi.util.TempFile;
-
-/**
- *
- *
- *
- *
- * @param args Command-line arguments.
- * @exception MarkUnsupportedException if a POI document stream does not
- * support the mark() operation.
- * @exception NoPropertySetStreamException if the application tries to
- * create a property set from a POI document stream that is not a property
- * set stream.
- * @exception IOException if any I/O exception occurs.
- * @exception UnsupportedEncodingException if a character encoding is not
- * supported.
- */
- public static void main(final String[] args)
- throws NoPropertySetStreamException, MarkUnsupportedException,
- UnsupportedEncodingException, IOException
- {
- String originalFileName = null;
- String copyFileName = null;
-
- /* Check the command-line arguments. */
- if (args.length == 1) {
- originalFileName = args[0];
- File f = TempFile.createTempFile("CopyOfPOIFileSystem-", ".ole2");
- f.deleteOnExit();
- copyFileName = f.getAbsolutePath();
- } else if (args.length == 2) {
- originalFileName = args[0];
- copyFileName = args[1];
- } else {
- System.err.println("Usage: " + CopyCompare.class.getName() +
- "originPOIFS [copyPOIFS]");
- System.exit(1);
- }
-
- /* Read the origin POIFS using the eventing API. The real work is done
- * in the class CopyFile which is registered here as a POIFSReader. */
- final POIFSReader r = new POIFSReader();
- final CopyFile cf = new CopyFile(copyFileName);
- r.registerListener(cf);
- FileInputStream fis = new FileInputStream(originalFileName);
- r.read(fis);
- fis.close();
-
- /* Write the new POIFS to disk. */
- cf.close();
-
- /* Read all documents from the original POI file system and compare them
- * with the equivalent document from the copy. */
- final POIFSFileSystem opfs = new POIFSFileSystem(new File(originalFileName));
- final POIFSFileSystem cpfs = new POIFSFileSystem(new File(copyFileName));
-
- final DirectoryEntry oRoot = opfs.getRoot();
- final DirectoryEntry cRoot = cpfs.getRoot();
- final StringBuffer messages = new StringBuffer();
- if (equal(oRoot, cRoot, messages)) {
- System.out.println("Equal");
- } else {
- System.out.println("Not equal: " + messages.toString());
- }
- cpfs.close();
- opfs.close();
- }
-
-
-
- /**
- * true
if the directories are equal, else
- * false
.
- * @exception MarkUnsupportedException if a POI document stream does not
- * support the mark() operation.
- * @exception NoPropertySetStreamException if the application tries to
- * create a property set from a POI document stream that is not a property
- * set stream.
- * @throws UnsupportedEncodingException
- * @exception IOException if any I/O exception occurs.
- */
- private static boolean equal(final DirectoryEntry d1,
- final DirectoryEntry d2,
- final StringBuffer msg)
- throws NoPropertySetStreamException, MarkUnsupportedException,
- UnsupportedEncodingException, IOException
- {
- boolean equal = true;
- /* Iterate over d1 and compare each entry with its counterpart in d2. */
- for (final Entry e1 : d1) {
- final String n1 = e1.getName();
- Entry e2 = null;
- try {
- e2 = d2.getEntry(n1);
- } catch (FileNotFoundException ex) {
- msg.append("Document \"" + e1 + "\" exists, document \"" +
- e2 + "\" does not.\n");
- equal = false;
- break;
- }
-
- if (e1.isDirectoryEntry() && e2.isDirectoryEntry()) {
- equal = equal((DirectoryEntry) e1, (DirectoryEntry) e2, msg);
- } else if (e1.isDocumentEntry() && e2.isDocumentEntry()) {
- equal = equal((DocumentEntry) e1, (DocumentEntry) e2, msg);
- } else {
- msg.append("One of \"" + e1 + "\" and \"" + e2 + "\" is a " +
- "document while the other one is a directory.\n");
- equal = false;
- }
- }
-
- /* Iterate over d2 just to make sure that there are no entries in d2
- * that are not in d1. */
- for (final Entry e2 : d2) {
- final String n2 = e2.getName();
- Entry e1 = null;
- try {
- e1 = d1.getEntry(n2);
- } catch (FileNotFoundException ex) {
- msg.append("Document \"" + e2 + "\" exitsts, document \"" +
- e1 + "\" does not.\n");
- equal = false;
- break;
- }
- }
- return equal;
- }
-
-
-
- /**
- * true
if the documents are equal, else
- * false
.
- * @exception MarkUnsupportedException if a POI document stream does not
- * support the mark() operation.
- * @exception NoPropertySetStreamException if the application tries to
- * create a property set from a POI document stream that is not a property
- * set stream.
- * @throws UnsupportedEncodingException
- * @exception IOException if any I/O exception occurs.
- */
- private static boolean equal(final DocumentEntry d1, final DocumentEntry d2,
- final StringBuffer msg)
- throws NoPropertySetStreamException, MarkUnsupportedException,
- UnsupportedEncodingException, IOException
- {
- final DocumentInputStream dis1 = new DocumentInputStream(d1);
- final DocumentInputStream dis2 = new DocumentInputStream(d2);
- try {
- if (PropertySet.isPropertySetStream(dis1) &&
- PropertySet.isPropertySetStream(dis2)) {
- final PropertySet ps1 = PropertySetFactory.create(dis1);
- final PropertySet ps2 = PropertySetFactory.create(dis2);
- if (!ps1.equals(ps2)) {
- msg.append("Property sets are not equal.\n");
- return false;
- }
- } else {
- int i1, i2;
- do {
- i1 = dis1.read();
- i2 = dis2.read();
- if (i1 != i2) {
- msg.append("Documents are not equal.\n");
- return false;
- }
- } while (i1 > -1);
- }
- } finally {
- dis2.close();
- dis1.close();
- }
- return true;
- }
-
-
-
- /**
- *
- *
- *
- *
- *
- *
- *
- *
- * given 2 arguments where the second argument is the word "write" and the
- * first is the filename - writes out a sample (test) spreadsheet
- * see {@link HSSFReadWrite#testCreateSampleSheet(String)}.
- *
- * given 2 arguments where the first is an input filename and the second
- * an output filename (not write), attempts to fully read in the
- * spreadsheet and fully write it out.
- *
- * given 3 arguments where the first is an input filename and the second an
- * output filename (not write) and the third is "modify1", attempts to read in the
- * spreadsheet, deletes rows 0-24, 74-99. Changes cell at row 39, col 3 to
- * "MODIFIED CELL" then writes it out. Hence this is "modify test 1". If you
- * take the output from the write test, you'll have a valid scenario.
- */
- public static void main(String[] args) {
- if (args.length < 1) {
- System.err.println("At least one argument expected");
- return;
- }
-
- String fileName = args[0];
- try {
- if (args.length < 2) {
-
- HSSFWorkbook wb = HSSFReadWrite.readFile(fileName);
-
- try {
- System.out.println("Data dump:\n");
-
- for (int k = 0; k < wb.getNumberOfSheets(); k++) {
- HSSFSheet sheet = wb.getSheetAt(k);
- int rows = sheet.getPhysicalNumberOfRows();
- System.out.println("Sheet " + k + " \"" + wb.getSheetName(k) + "\" has " + rows
- + " row(s).");
- for (int r = 0; r < rows; r++) {
- HSSFRow row = sheet.getRow(r);
- if (row == null) {
- continue;
- }
-
- System.out.println("\nROW " + row.getRowNum() + " has " + row.getPhysicalNumberOfCells() + " cell(s).");
- for (int c = 0; c < row.getLastCellNum(); c++) {
- HSSFCell cell = row.getCell(c);
- String value;
-
- if(cell != null) {
- switch (cell.getCellTypeEnum()) {
-
- case FORMULA:
- value = "FORMULA value=" + cell.getCellFormula();
- break;
-
- case NUMERIC:
- value = "NUMERIC value=" + cell.getNumericCellValue();
- break;
-
- case STRING:
- value = "STRING value=" + cell.getStringCellValue();
- break;
-
- case BLANK:
- value = "
- * Partly based on the code snippets from - * org.apache.poi.ss.examples.ConditionalFormats - *
- */ -public class DrawingBorders { - - public static void main(String[] args) throws IOException { - Workbook wb; - - if (args.length > 0 && args[0].equals("-xls")) { - wb = new HSSFWorkbook(); - } else { - wb = new XSSFWorkbook(); - } - - // add a sheet, and put some values into it - Sheet sh1 = wb.createSheet("Sheet1"); - Row r = sh1.createRow(0); - Cell c = r.createCell(1); - c.setCellValue("All Borders Medium Width"); - r = sh1.createRow(4); - c = r.createCell(1); - c.setCellValue("Medium Outside / Thin Inside Borders"); - r = sh1.createRow(8); - c = r.createCell(1); - c.setCellValue("Colored Borders"); - - // draw borders (three 3x3 grids) - PropertyTemplate pt = new PropertyTemplate(); - // #1) these borders will all be medium in default color - pt.drawBorders(new CellRangeAddress(1, 3, 1, 3), - BorderStyle.MEDIUM, BorderExtent.ALL); - // #2) these cells will have medium outside borders and thin inside borders - pt.drawBorders(new CellRangeAddress(5, 7, 1, 3), - BorderStyle.MEDIUM, BorderExtent.OUTSIDE); - pt.drawBorders(new CellRangeAddress(5, 7, 1, 3), BorderStyle.THIN, - BorderExtent.INSIDE); - // #3) these cells will all be medium weight with different colors for the - // outside, inside horizontal, and inside vertical borders. The center - // cell will have no borders. - pt.drawBorders(new CellRangeAddress(9, 11, 1, 3), - BorderStyle.MEDIUM, IndexedColors.RED.getIndex(), - BorderExtent.OUTSIDE); - pt.drawBorders(new CellRangeAddress(9, 11, 1, 3), - BorderStyle.MEDIUM, IndexedColors.BLUE.getIndex(), - BorderExtent.INSIDE_VERTICAL); - pt.drawBorders(new CellRangeAddress(9, 11, 1, 3), - BorderStyle.MEDIUM, IndexedColors.GREEN.getIndex(), - BorderExtent.INSIDE_HORIZONTAL); - pt.drawBorders(new CellRangeAddress(10, 10, 2, 2), - BorderStyle.NONE, - BorderExtent.ALL); - - // apply borders to sheet - pt.applyBorders(sh1); - - // add another sheet and apply the borders to it - Sheet sh2 = wb.createSheet("Sheet2"); - pt.applyBorders(sh2); - - // Write the output to a file - String file = "db-poi.xls"; - if (wb instanceof XSSFWorkbook) - file += "x"; - FileOutputStream out = new FileOutputStream(file); - wb.write(out); - out.close(); - wb.close(); - System.out.println("Generated: " + file); - } - -} diff --git a/src/examples/src/org/apache/poi/ss/examples/ExcelComparator.java b/src/examples/src/org/apache/poi/ss/examples/ExcelComparator.java deleted file mode 100644 index 645e798a0..000000000 --- a/src/examples/src/org/apache/poi/ss/examples/ExcelComparator.java +++ /dev/null @@ -1,614 +0,0 @@ -/* ==================================================================== - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -==================================================================== */ -package org.apache.poi.ss.examples; - -import java.io.File; -import java.util.ArrayList; -import java.util.Date; -import java.util.Iterator; -import java.util.List; -import java.util.Locale; - -import org.apache.poi.ss.usermodel.BorderStyle; -import org.apache.poi.ss.usermodel.Cell; -import org.apache.poi.ss.usermodel.CellType; -import org.apache.poi.ss.usermodel.Color; -import org.apache.poi.ss.usermodel.DateUtil; -import org.apache.poi.ss.usermodel.Row; -import org.apache.poi.ss.usermodel.Sheet; -import org.apache.poi.ss.usermodel.Workbook; -import org.apache.poi.ss.usermodel.WorkbookFactory; -import org.apache.poi.ss.util.CellReference; -import org.apache.poi.xssf.usermodel.XSSFCell; -import org.apache.poi.xssf.usermodel.XSSFCellStyle; -import org.apache.poi.xssf.usermodel.XSSFColor; - -/** - * Utility to compare Excel File Contents cell by cell for all sheets. - * - *This utility will be used to compare Excel File Contents cell by cell for all sheets programmatically.
- * - *Below are the list of Attribute comparison supported in this version.
- * - *(Some of the above attribute comparison only work for *.xlsx format currently. In future it can be enhanced.)
- * - *Usage:
- * - *- * {@code - * Workbook wb1 = WorkbookFactory.create(new File("workBook1.xls")); - * Workbook wb2 = WorkbookFactory.create(new File("workBook2.xls")); - * List- */ -public class ExcelComparator { - - private static final String CELL_DATA_DOES_NOT_MATCH = "Cell Data does not Match ::"; - private static final String CELL_FONT_ATTRIBUTES_DOES_NOT_MATCH = "Cell Font Attributes does not Match ::"; - - private static class Locator { - Workbook workbook; - Sheet sheet; - Row row; - Cell cell; - } - - ListlistOfDifferences = ExcelComparator.compare(wb1, wb2); - * for (String differences : listOfDifferences) - * System.out.println(differences); - * System.out.println("DifferenceFound = "+ excelFileDifference.isDifferenceFound); - * } - *
- * ___________________________________________ - * | | | | | | - * | A | B | C | D | E | - * ___|_______|_______|_______|_______|_______| - * | | | | | | - * 1 | 1 | 2 | 3 | 4 | 5 | - * ___|_______|_______|_______|_______|_______| - * | | | | | | - * 2 | | | | | | - * ___|_______|_______|_______|_______|_______| - * | | | | | | - * 3 | | A | | B | | - * ___|_______|_______|_______|_______|_______| - * | | | | | | - * 4 | | | | | Z | - * ___|_______|_______|_______|_______|_______| - * | | | | | | - * 5 | 1,400 | | 250 | | | - * ___|_______|_______|_______|_______|_______| - * - *- * - * Then, the resulting CSV file will contain the following lines (records); - *
- * 1,2,3,4,5 - * ,,,, - * ,A,,B, - * ,,,,Z - * "1,400",,250,, - *
- * Typically, the comma is used to separate each of the fields that, together, - * constitute a single record or line within the CSV file. This is not however - * a hard and fast rule and so this class allows the user to determine which - * character is used as the field separator and assumes the comma if none other - * is specified. - *
- * If a field contains the separator then it will be escaped. If the file should - * obey Excel's CSV formatting rules, then the field will be surrounded with - * speech marks whilst if it should obey UNIX conventions, each occurrence of - * the separator will be preceded by the backslash character. - *
- * If a field contains an end of line (EOL) character then it too will be - * escaped. If the file should obey Excel's CSV formatting rules then the field - * will again be surrounded by speech marks. On the other hand, if the file - * should follow UNIX conventions then a single backslash will precede the - * EOL character. There is no single applicable standard for UNIX and some - * appications replace the CR with \r and the LF with \n but this class will - * not do so. - *
- * If the field contains double quotes then that character will be escaped. It - * seems as though UNIX does not define a standard for this whilst Excel does. - * Should the CSV file have to obey Excel's formmating rules then the speech - * mark character will be escaped with a second set of speech marks. Finally, an - * enclosing set of speah marks will also surround the entire field. Thus, if - * the following line of text appeared in a cell - "Hello" he said - it would - * look like this when converted into a field within a CSV file - """Hello"" he - * said". - *
- * Finally, it is worth noting that talk of CSV 'standards' is really slightly - * missleading as there is no such thing. It may well be that the code in this - * class has to be modified to produce files to suit a specific application - * or requirement. - *
- * @author Mark B - * @version 1.00 9th April 2010 - * 1.10 13th April 2010 - Added support for processing all Excel - * workbooks in a folder along with the ability - * to specify a field separator character. - * 2.00 14th April 2010 - Added support for embedded characters; the - * field separator, EOL and double quotes or - * speech marks. In addition, gave the client - * the ability to select how these are handled, - * either obeying Excel's or UNIX formatting - * conventions. - */ -public class ToCSV { - - private Workbook workbook = null; - private ArrayListThis provides examples of how to evaluate formulas in excel
- * files using Apache POI, along with how to handle errors whilst
- * doing so.
- */
-public class CheckFunctionsSupported {
- public static void main(String[] args) throws Exception {
- if (args.length < 1) {
- System.err.println("Use:");
- System.err.println(" CheckFunctionsSupported
- */
-public class LoadPasswordProtectedXlsxStreaming {
-
- public static void main(String[] args) throws Exception {
- if(args.length != 2) {
- throw new IllegalArgumentException("Expected 2 params: filename and password");
- }
- TempFileUtils.checkTempFiles();
- String filename = args[0];
- String password = args[1];
- FileInputStream fis = new FileInputStream(filename);
- try {
- InputStream unencryptedStream = EncryptionUtils.decrypt(fis, password);
- try {
- printSheetCount(unencryptedStream);
- } finally {
- IOUtils.closeQuietly(unencryptedStream);
- }
- } finally {
- IOUtils.closeQuietly(fis);
- }
- TempFileUtils.checkTempFiles();
- }
-
- public static void printSheetCount(final InputStream inputStream) throws Exception {
- AesZipFileZipEntrySource source = AesZipFileZipEntrySource.createZipEntrySource(inputStream);
- try {
- OPCPackage pkg = OPCPackage.open(source);
- try {
- XSSFReader reader = new XSSFReader(pkg);
- SheetIterator iter = (SheetIterator)reader.getSheetsData();
- int count = 0;
- while(iter.hasNext()) {
- iter.next();
- count++;
- }
- System.out.println("sheet count: " + count);
- } finally {
- IOUtils.closeQuietly(pkg);
- }
- } finally {
- IOUtils.closeQuietly(source);
- }
- }
-}
diff --git a/src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java b/src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java
deleted file mode 100644
index 31b5e859f..000000000
--- a/src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-package org.apache.poi.xssf.streaming.examples;
-
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-
-import org.apache.poi.xssf.eventusermodel.ReadOnlySharedStringsTable;
-import org.apache.poi.xssf.eventusermodel.XSSFSheetXMLHandler;
-import org.apache.poi.xssf.eventusermodel.XSSFSheetXMLHandler.SheetContentsHandler;
-import org.apache.poi.xssf.usermodel.XSSFComment;
-import org.apache.poi.xssf.usermodel.XSSFSheet;
-import org.apache.poi.xssf.usermodel.XSSFWorkbook;
-import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTSheet;
-import org.xml.sax.SAXException;
-
-/**
- * This demonstrates how a hybrid approach to workbook read can be taken, using
- * a mix of traditional XSSF and streaming one particular worksheet (perhaps one
- * which is too big for the ordinary DOM parse).
- */
-public class HybridStreaming {
-
- private static final String SHEET_TO_STREAM = "large sheet";
-
- public static void main(String[] args) throws IOException, SAXException {
- InputStream sourceBytes = new FileInputStream("workbook.xlsx");
- XSSFWorkbook workbook = new XSSFWorkbook(sourceBytes) {
- /** Avoid DOM parse of large sheet */
- @Override
- public void parseSheet(java.util.Map
- */
-public class SavePasswordProtectedXlsx {
-
- public static void main(String[] args) throws Exception {
- if(args.length != 2) {
- throw new IllegalArgumentException("Expected 2 params: filename and password");
- }
- TempFileUtils.checkTempFiles();
- String filename = args[0];
- String password = args[1];
- SXSSFWorkbookWithCustomZipEntrySource wb = new SXSSFWorkbookWithCustomZipEntrySource();
- try {
- for(int i = 0; i < 10; i++) {
- SXSSFSheet sheet = wb.createSheet("Sheet" + i);
- for(int r = 0; r < 1000; r++) {
- SXSSFRow row = sheet.createRow(r);
- for(int c = 0; c < 100; c++) {
- SXSSFCell cell = row.createCell(c);
- cell.setCellValue("abcd");
- }
- }
- }
- EncryptedTempData tempData = new EncryptedTempData();
- try {
- wb.write(tempData.getOutputStream());
- save(tempData.getInputStream(), filename, password);
- System.out.println("Saved " + filename);
- } finally {
- tempData.dispose();
- }
- } finally {
- wb.close();
- wb.dispose();
- }
- TempFileUtils.checkTempFiles();
- }
-
- public static void save(final InputStream inputStream, final String filename, final String pwd)
- throws InvalidFormatException, IOException, GeneralSecurityException {
- POIFSFileSystem fs = null;
- FileOutputStream fos = null;
- OPCPackage opc = null;
- try {
- fs = new POIFSFileSystem();
- EncryptionInfo info = new EncryptionInfo(EncryptionMode.agile);
- Encryptor enc = Encryptor.getInstance(info);
- enc.confirmPassword(pwd);
- opc = OPCPackage.open(inputStream);
- fos = new FileOutputStream(filename);
- opc.save(enc.getDataStream(fs));
- fs.writeFilesystem(fos);
- } finally {
- IOUtils.closeQuietly(fos);
- IOUtils.closeQuietly(opc);
- IOUtils.closeQuietly(fs);
- IOUtils.closeQuietly(inputStream);
- }
- }
-
-}
diff --git a/src/examples/src/org/apache/poi/xssf/usermodel/examples/AligningCells.java b/src/examples/src/org/apache/poi/xssf/usermodel/examples/AligningCells.java
deleted file mode 100644
index 0bb002fb3..000000000
--- a/src/examples/src/org/apache/poi/xssf/usermodel/examples/AligningCells.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/* ====================================================================
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-==================================================================== */
-package org.apache.poi.xssf.usermodel.examples;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.poi.ss.usermodel.CellStyle;
-import org.apache.poi.ss.usermodel.CreationHelper;
-import org.apache.poi.ss.usermodel.HorizontalAlignment;
-import org.apache.poi.ss.usermodel.VerticalAlignment;
-import org.apache.poi.xssf.usermodel.XSSFCell;
-import org.apache.poi.xssf.usermodel.XSSFCellStyle;
-import org.apache.poi.xssf.usermodel.XSSFRow;
-import org.apache.poi.xssf.usermodel.XSSFSheet;
-import org.apache.poi.xssf.usermodel.XSSFWorkbook;
-import org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTRowImpl;
-
-/**
- * Shows how various alignment options work.
- *
- * Modified by Cristian Petrula, Romania on May 26, 2010
- * New method was added centerAcrossSelection to center a column content over
- * one selection using {@link HorizontalAlignment#CENTER_SELECTION}
- * To create this method example was change for XSSF only and the previous
- * AligningCells.java example has been moved into the SS examples folder.
- */
-public class AligningCells {
-
- public static void main(String[] args) throws IOException {
- XSSFWorkbook wb = new XSSFWorkbook();
-
- XSSFSheet sheet = wb.createSheet();
- XSSFRow row = sheet.createRow(2);
- row.setHeightInPoints(30);
- for (int i = 0; i < 8; i++) {
- //column width is set in units of 1/256th of a character width
- sheet.setColumnWidth(i, 256 * 15);
- }
-
- createCell(wb, row, 0, HorizontalAlignment.CENTER, VerticalAlignment.BOTTOM);
- createCell(wb, row, 1, HorizontalAlignment.CENTER_SELECTION, VerticalAlignment.BOTTOM);
- createCell(wb, row, 2, HorizontalAlignment.FILL, VerticalAlignment.CENTER);
- createCell(wb, row, 3, HorizontalAlignment.GENERAL, VerticalAlignment.CENTER);
- createCell(wb, row, 4, HorizontalAlignment.JUSTIFY, VerticalAlignment.JUSTIFY);
- createCell(wb, row, 5, HorizontalAlignment.LEFT, VerticalAlignment.TOP);
- createCell(wb, row, 6, HorizontalAlignment.RIGHT, VerticalAlignment.TOP);
-
- //center text over B4, C4, D4
- row = sheet.createRow(3);
- centerAcrossSelection(wb, row, 1, 3, VerticalAlignment.CENTER);
-
- // Write the output to a file
- OutputStream fileOut = new FileOutputStream("xssf-align.xlsx");
- wb.write(fileOut);
- fileOut.close();
-
- wb.close();
- }
-
- /**
- * Creates a cell and aligns it a certain way.
- *
- * @param wb the workbook
- * @param row the row to create the cell in
- * @param column the column number to create the cell in
- * @param halign the horizontal alignment for the cell.
- */
- private static void createCell(XSSFWorkbook wb, XSSFRow row, int column,
- HorizontalAlignment halign, VerticalAlignment valign) {
- CreationHelper ch = wb.getCreationHelper();
- XSSFCell cell = row.createCell(column);
- cell.setCellValue(ch.createRichTextString("Align It"));
- CellStyle cellStyle = wb.createCellStyle();
- cellStyle.setAlignment(halign);
- cellStyle.setVerticalAlignment(valign);
- cell.setCellStyle(cellStyle);
- }
-
- /**
- * Center a text over multiple columns using ALIGN_CENTER_SELECTION
- *
- * @param wb the workbook
- * @param row the row to create the cell in
- * @param start_column the column number to create the cell in and where the selection starts
- * @param end_column the column number where the selection ends
- * @param valign the horizontal alignment for the cell.
- */
- private static void centerAcrossSelection(XSSFWorkbook wb, XSSFRow row,
- int start_column, int end_column, VerticalAlignment valign) {
- CreationHelper ch = wb.getCreationHelper();
-
- // Create cell style with ALIGN_CENTER_SELECTION
- XSSFCellStyle cellStyle = wb.createCellStyle();
- cellStyle.setAlignment(HorizontalAlignment.CENTER_SELECTION);
- cellStyle.setVerticalAlignment(valign);
-
- // Create cells over the selected area
- for (int i = start_column; i <= end_column; i++) {
- XSSFCell cell = row.createCell(i);
- cell.setCellStyle(cellStyle);
- }
-
- // Set value to the first cell
- XSSFCell cell = row.getCell(start_column);
- cell.setCellValue(ch.createRichTextString("Align It"));
-
- // Make the selection
- CTRowImpl ctRow = (CTRowImpl) row.getCTRow();
-
- // Add object with format start_coll:end_coll. For example 1:3 will span from
- // cell 1 to cell 3, where the column index starts with 0
- //
- // You can add multiple spans for one row
- Object span = start_column + ":" + end_column;
-
- List
- * See
- * http://poi.apache.org/spreadsheet/how-to.html#sxssf.
- *
- * If you really want to use this approach, which is also the one that SXSSF
- * does for you, it works as follows:
- *
- * 1. create a template workbook, create sheets and global objects such as cell styles, number formats, etc.
- * 2. create an application that streams data in a text file
- * 3. Substitute the sheet in the template with the generated data
- *
- *
- * Since 3.8 POI provides a low-memory footprint SXSSF API, which implements
- * ths "BigGridDemo" strategy. SXSSF is an API-compatible streaming extension
- * of XSSF to be used when very large spreadsheets have to be produced, and
- * heap space is limited. SXSSF achieves its low memory footprint by limiting
- * access to the rows that are within a sliding window, while XSSF gives access
- * to all rows in the document. Older rows that are no longer in the window
- * become inaccessible, as they are written to the disk.
- *
- * Excel comment is a kind of a text shape,
- * so inserting a comment is very similar to placing a text box in a worksheet
- *
- */
-public class LoadPasswordProtectedXlsx {
-
- public static void main(String[] args) throws Exception {
- if(args.length != 2) {
- throw new IllegalArgumentException("Expected 2 params: filename and password");
- }
- TempFileUtils.checkTempFiles();
- String filename = args[0];
- String password = args[1];
- FileInputStream fis = new FileInputStream(filename);
- try {
- InputStream unencryptedStream = EncryptionUtils.decrypt(fis, password);
- try {
- printSheetCount(unencryptedStream);
- } finally {
- IOUtils.closeQuietly(unencryptedStream);
- }
- } finally {
- IOUtils.closeQuietly(fis);
- }
- TempFileUtils.checkTempFiles();
- }
-
- public static void printSheetCount(final InputStream inputStream) throws Exception {
- AesZipFileZipEntrySource source = AesZipFileZipEntrySource.createZipEntrySource(inputStream);
- try {
- OPCPackage pkg = OPCPackage.open(source);
- try {
- XSSFWorkbook workbook = new XSSFWorkbook(pkg);
- try {
- System.out.println("sheet count: " + workbook.getNumberOfSheets());
- } finally {
- IOUtils.closeQuietly(workbook);
- }
- } finally {
- IOUtils.closeQuietly(pkg);
- }
- } finally {
- IOUtils.closeQuietly(source);
- }
- }
-
-}
diff --git a/src/examples/src/org/apache/poi/xssf/usermodel/examples/MergingCells.java b/src/examples/src/org/apache/poi/xssf/usermodel/examples/MergingCells.java
deleted file mode 100644
index b6bca2e8d..000000000
--- a/src/examples/src/org/apache/poi/xssf/usermodel/examples/MergingCells.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.xssf.usermodel.examples;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import org.apache.poi.ss.usermodel.Cell;
-import org.apache.poi.ss.usermodel.Row;
-import org.apache.poi.ss.usermodel.Sheet;
-import org.apache.poi.ss.usermodel.Workbook;
-import org.apache.poi.ss.util.CellRangeAddress;
-import org.apache.poi.xssf.usermodel.XSSFRichTextString;
-import org.apache.poi.xssf.usermodel.XSSFWorkbook;
-
-/**
- * An example of how to merge regions of cells.
- */
-public class MergingCells {
- public static void main(String[] args) throws IOException {
- Workbook wb = new XSSFWorkbook(); //or new HSSFWorkbook();
- Sheet sheet = wb.createSheet("new sheet");
-
- Row row = sheet.createRow((short) 1);
- Cell cell = row.createCell((short) 1);
- cell.setCellValue(new XSSFRichTextString("This is a test of merging"));
-
- sheet.addMergedRegion(new CellRangeAddress(1, 1, 1, 2));
-
- // Write the output to a file
- FileOutputStream fileOut = new FileOutputStream("merging_cells.xlsx");
- wb.write(fileOut);
- fileOut.close();
- wb.close();
- }
-}
diff --git a/src/examples/src/org/apache/poi/xssf/usermodel/examples/NewLinesInCells.java b/src/examples/src/org/apache/poi/xssf/usermodel/examples/NewLinesInCells.java
deleted file mode 100644
index 35d26918c..000000000
--- a/src/examples/src/org/apache/poi/xssf/usermodel/examples/NewLinesInCells.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-package org.apache.poi.xssf.usermodel.examples;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import org.apache.poi.ss.usermodel.Cell;
-import org.apache.poi.ss.usermodel.CellStyle;
-import org.apache.poi.ss.usermodel.Row;
-import org.apache.poi.ss.usermodel.Sheet;
-import org.apache.poi.ss.usermodel.Workbook;
-import org.apache.poi.xssf.usermodel.XSSFWorkbook;
-
-/**
- * How to use newlines in cells
- */
-public class NewLinesInCells {
-
- public static void main(String[]args) throws IOException {
- Workbook wb = new XSSFWorkbook(); //or new HSSFWorkbook();
- Sheet sheet = wb.createSheet();
-
- Row row = sheet.createRow(2);
- Cell cell = row.createCell(2);
- cell.setCellValue("Use \n with word wrap on to create a new line");
-
- //to enable newlines you need set a cell styles with wrap=true
- CellStyle cs = wb.createCellStyle();
- cs.setWrapText(true);
- cell.setCellStyle(cs);
-
- //increase row height to accomodate two lines of text
- row.setHeightInPoints((2*sheet.getDefaultRowHeightInPoints()));
-
- //adjust column width to fit the content
- sheet.autoSizeColumn(2);
-
- FileOutputStream fileOut = new FileOutputStream("ooxml-newlines.xlsx");
- wb.write(fileOut);
- fileOut.close();
- wb.close();
- }
-
-}
diff --git a/src/examples/src/org/apache/poi/xssf/usermodel/examples/Outlining.java b/src/examples/src/org/apache/poi/xssf/usermodel/examples/Outlining.java
deleted file mode 100644
index f859c9eb5..000000000
--- a/src/examples/src/org/apache/poi/xssf/usermodel/examples/Outlining.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.xssf.usermodel.examples;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-
-import org.apache.poi.ss.usermodel.Sheet;
-import org.apache.poi.ss.usermodel.Workbook;
-import org.apache.poi.xssf.usermodel.XSSFWorkbook;
-
-public class Outlining {
-
- public static void main(String[] args) throws IOException {
- Outlining o=new Outlining();
- o.groupRowColumn();
- o.collapseExpandRowColumn();
- }
-
-
- private void groupRowColumn() throws IOException {
- Workbook wb = new XSSFWorkbook();
- Sheet sheet1 = wb.createSheet("new sheet");
-
- sheet1.groupRow( 5, 14 );
- sheet1.groupRow( 7, 14 );
- sheet1.groupRow( 16, 19 );
-
- sheet1.groupColumn( (short)4, (short)7 );
- sheet1.groupColumn( (short)9, (short)12 );
- sheet1.groupColumn( (short)10, (short)11 );
-
- OutputStream fileOut = new FileOutputStream("outlining.xlsx");
- try {
- wb.write(fileOut);
- } finally {
- fileOut.close();
- wb.close();
- }
- }
-
- private void collapseExpandRowColumn() throws IOException {
- Workbook wb2 = new XSSFWorkbook();
- Sheet sheet2 = wb2.createSheet("new sheet");
- sheet2.groupRow( 5, 14 );
- sheet2.groupRow( 7, 14 );
- sheet2.groupRow( 16, 19 );
-
- sheet2.groupColumn( (short)4, (short)7 );
- sheet2.groupColumn( (short)9, (short)12 );
- sheet2.groupColumn( (short)10, (short)11 );
-
-
- sheet2.setRowGroupCollapsed( 7, true );
- //sheet1.setRowGroupCollapsed(7,false);
-
- sheet2.setColumnGroupCollapsed( (short)4, true );
- sheet2.setColumnGroupCollapsed( (short)4, false );
-
- OutputStream fileOut = new FileOutputStream("outlining_collapsed.xlsx");
- try {
- wb2.write(fileOut);
- } finally {
- fileOut.close();
- wb2.close();
- }
- }
-}
diff --git a/src/examples/src/org/apache/poi/xssf/usermodel/examples/ScatterChart.java b/src/examples/src/org/apache/poi/xssf/usermodel/examples/ScatterChart.java
deleted file mode 100644
index 8b02eba30..000000000
--- a/src/examples/src/org/apache/poi/xssf/usermodel/examples/ScatterChart.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * ====================================================================
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ====================================================================
- */
-
-package org.apache.poi.xssf.usermodel.examples;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import org.apache.poi.ss.usermodel.Cell;
-import org.apache.poi.ss.usermodel.Chart;
-import org.apache.poi.ss.usermodel.ClientAnchor;
-import org.apache.poi.ss.usermodel.Drawing;
-import org.apache.poi.ss.usermodel.Row;
-import org.apache.poi.ss.usermodel.Sheet;
-import org.apache.poi.ss.usermodel.Workbook;
-import org.apache.poi.ss.usermodel.charts.AxisCrosses;
-import org.apache.poi.ss.usermodel.charts.AxisPosition;
-import org.apache.poi.ss.usermodel.charts.ChartDataSource;
-import org.apache.poi.ss.usermodel.charts.ChartLegend;
-import org.apache.poi.ss.usermodel.charts.DataSources;
-import org.apache.poi.ss.usermodel.charts.LegendPosition;
-import org.apache.poi.ss.usermodel.charts.ScatterChartData;
-import org.apache.poi.ss.usermodel.charts.ValueAxis;
-import org.apache.poi.ss.util.CellRangeAddress;
-import org.apache.poi.xssf.usermodel.XSSFWorkbook;
-
-/**
- * Illustrates how to create a simple scatter chart.
- */
-public class ScatterChart {
-
- public static void main(String[] args) throws IOException {
- Workbook wb = new XSSFWorkbook();
- Sheet sheet = wb.createSheet("Sheet 1");
- final int NUM_OF_ROWS = 3;
- final int NUM_OF_COLUMNS = 10;
-
- // Create a row and put some cells in it. Rows are 0 based.
- Row row;
- Cell cell;
- for (int rowIndex = 0; rowIndex < NUM_OF_ROWS; rowIndex++) {
- row = sheet.createRow((short) rowIndex);
- for (int colIndex = 0; colIndex < NUM_OF_COLUMNS; colIndex++) {
- cell = row.createCell((short) colIndex);
- cell.setCellValue(colIndex * (rowIndex + 1));
- }
- }
-
- Drawing> drawing = sheet.createDrawingPatriarch();
- ClientAnchor anchor = drawing.createAnchor(0, 0, 0, 0, 0, 5, 10, 15);
-
- Chart chart = drawing.createChart(anchor);
- ChartLegend legend = chart.getOrCreateLegend();
- legend.setPosition(LegendPosition.TOP_RIGHT);
-
- ScatterChartData data = chart.getChartDataFactory().createScatterChartData();
-
- ValueAxis bottomAxis = chart.getChartAxisFactory().createValueAxis(AxisPosition.BOTTOM);
- ValueAxis leftAxis = chart.getChartAxisFactory().createValueAxis(AxisPosition.LEFT);
- leftAxis.setCrosses(AxisCrosses.AUTO_ZERO);
-
- ChartDataSource
- *
- * This code was successfully tested with the following file from the POI test collection:
- * http://svn.apache.org/repos/asf/poi/trunk/test-data/document/EmbeddedDocument.docx
- */
-public class UpdateEmbeddedDoc {
-
- private XWPFDocument doc = null;
- private File docFile = null;
-
- private static final int SHEET_NUM = 0;
- private static final int ROW_NUM = 0;
- private static final int CELL_NUM = 0;
- private static final double NEW_VALUE = 100.98D;
- private static final String BINARY_EXTENSION = "xls";
- private static final String OPENXML_EXTENSION = "xlsx";
-
- /**
- * Create a new instance of the UpdateEmbeddedDoc class using the following
- * parameters;
- *
- * @param filename An instance of the String class that encapsulates the name
- * of and path to a WordprocessingML Word document that contains an
- * embedded binary Excel workbook.
- * @throws java.io.FileNotFoundException Thrown if the file cannot be found
- * on the underlying file system.
- * @throws java.io.IOException Thrown if a problem occurs in the underlying
- * file system.
- */
- public UpdateEmbeddedDoc(String filename) throws FileNotFoundException, IOException {
- this.docFile = new File(filename);
- FileInputStream fis = null;
- if (!this.docFile.exists()) {
- throw new FileNotFoundException("The Word dcoument " + filename + " does not exist.");
- }
- try {
- // Open the Word document file and instantiate the XWPFDocument
- // class.
- fis = new FileInputStream(this.docFile);
- this.doc = new XWPFDocument(fis);
- } finally {
- IOUtils.closeQuietly(fis);
- }
- }
-
- /**
- * Called to update the embedded Excel workbook. As the format and structire
- * of the workbook are known in advance, all this code attempts to do is
- * write a new value into the first cell on the first row of the first
- * worksheet. Prior to executing this method, that cell will contain the
- * value 1.
- *
- * @throws org.apache.poi.openxml4j.exceptions.OpenXML4JException
- * Rather
- * than use the specific classes (HSSF/XSSF) to handle the embedded
- * workbook this method uses those defeined in the SS stream. As
- * a result, it might be the case that a SpreadsheetML file is
- * opened for processing, throwing this exception if that file is
- * invalid.
- * @throws java.io.IOException Thrown if a problem occurs in the underlying
- * file system.
- */
- public void updateEmbeddedDoc() throws OpenXML4JException, IOException {
- List
- * Its purpose is to provide a way to manipulate a workbook in the course
- * of an ExcelAnt task. The idea being to model a way for test writers to
- * simulate the behaviors of the workbook.
- *
- * Suppose, for example, you have a workbook that has a worksheet that
- * reacts to values entered or selected by the user. It's possible in
- * Excel to change other cells based on this but this isn't easily possible
- * in POI. In ExcelAnt we handle this using the Handler, which is a Java
- * class you write to manipulate the workbook.
- *
- * In order to use this tag you must write a class that implements the
- *
- * For example, suppose that in Excel when you update a cell the workbook
- * does some calculations and updates other cells based on that change. In
- * ExcelAnt you would set the value of the cell then write your own handler
- * then call that from your Ant task after the set task.
- *
- * @author Jon Svede ( jon [at] loquatic [dot] com )
- * @author Brian Bush ( brian [dot] bush [at] nrel [dot] gov )
- *
- */
-public interface IExcelAntWorkbookHandler {
- public void setWorkbook( Workbook workbook ) ;
-
- public void execute() ;
-}
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntEvaluationResult.java b/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntEvaluationResult.java
deleted file mode 100644
index 4eecd4fae..000000000
--- a/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntEvaluationResult.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.ss.excelant.util;
-
-/**
- * A simple class that encapsulates information about a cell evaluation
- * from POI.
- *
- * @author Jon Svede (jon [at] loquatic [dot] com)
- * @author Brian Bush (brian [dot] bush [at] nrel [dot] gov)
- *
- */
-public class ExcelAntEvaluationResult {
-
- /**
- * This boolean flag is used to determine if the evaluation completed
- * without error. This alone doesn't ensure that the evaluation was
- * successful.
- */
- private boolean evaluationCompletedWithError ;
-
- /**
- * This boolean flag is used to determine if the result was within
- * the specified precision.
- */
- private boolean didPass ;
-
- /**
- * This is the actual value returned from the evaluation.
- */
- private double returnValue ;
-
- /**
- * Any error message String values that need to be returned.
- */
- private String errorMessage ;
-
- /**
- * Stores the absolute value of the delta for this evaluation.
- */
- private double actualDelta ;
-
- /**
- * This stores the fully qualified cell name (sheetName!cellId).
- */
- private String cellName ;
-
-
-
- public ExcelAntEvaluationResult(boolean completedWithError,
- boolean passed,
- double retValue,
- String errMessage,
- double delta,
- String cellId) {
-
- evaluationCompletedWithError = completedWithError;
- didPass = passed;
- returnValue = retValue;
- errorMessage = errMessage;
- actualDelta = delta ;
- cellName = cellId ;
- }
-
- public double getReturnValue() {
- return returnValue;
- }
-
- public String getErrorMessage() {
- return errorMessage;
- }
-
- public boolean didTestPass() {
- return didPass ;
- }
-
- public boolean evaluationCompleteWithError() {
- return evaluationCompletedWithError ;
- }
-
- public double getDelta() {
- return actualDelta ;
- }
-
- public String getCellName() {
- return cellName ;
- }
-
- @Override
- public String toString() {
- return "ExcelAntEvaluationResult [evaluationCompletedWithError="
- + evaluationCompletedWithError + ", didPass=" + didPass
- + ", returnValue=" + returnValue + ", errorMessage="
- + errorMessage + ", actualDelta=" + actualDelta + ", cellName="
- + cellName + "]";
- }
-}
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtil.java b/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtil.java
deleted file mode 100644
index dcb30a84c..000000000
--- a/src/excelant/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtil.java
+++ /dev/null
@@ -1,386 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.ss.excelant.util;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.poi.hssf.usermodel.HSSFFormulaEvaluator;
-import org.apache.poi.hssf.usermodel.HSSFWorkbook;
-import org.apache.poi.ss.formula.functions.FreeRefFunction;
-import org.apache.poi.ss.formula.udf.AggregatingUDFFinder;
-import org.apache.poi.ss.formula.udf.DefaultUDFFinder;
-import org.apache.poi.ss.formula.udf.UDFFinder;
-import org.apache.poi.ss.usermodel.Cell;
-import org.apache.poi.ss.usermodel.CellValue;
-import org.apache.poi.ss.usermodel.FormulaError;
-import org.apache.poi.ss.usermodel.FormulaEvaluator;
-import org.apache.poi.ss.usermodel.Row;
-import org.apache.poi.ss.usermodel.Sheet;
-import org.apache.poi.ss.usermodel.Workbook;
-import org.apache.poi.ss.usermodel.WorkbookFactory;
-import org.apache.poi.ss.util.CellReference;
-import org.apache.poi.xssf.usermodel.XSSFFormulaEvaluator;
-import org.apache.poi.xssf.usermodel.XSSFWorkbook;
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-import org.apache.tools.ant.taskdefs.Typedef;
-
-/**
- * A general utility class that abstracts the POI details of loading the
- * workbook, accessing and updating cells.
- *
- * @author Jon Svede (jon [at] loquatic [dot] com)
- * @author Brian Bush (brian [dot] bush [at] nrel [dot] gov)
- *
- */
-public class ExcelAntWorkbookUtil extends Typedef {
-
- private String excelFileName;
-
- private Workbook workbook;
-
- private final Map Executes an XSL transformation. This process transforms an XML input
- * file into a text output file controlled by an XSLT specification. Note 1 - will fail for many file formats if the POI Scratchpad jar is
- * not present on the runtime classpath Note 2 - for text extractor creation across all formats, use
- * {@link org.apache.poi.extractor.ExtractorFactory} contained within
- * the OOXML jar. Note 3 - rather than using this, for most cases you would be better
- * off switching to Apache Tika instead!
- *
- * In case a {@code FONT_HANDLER} is register, {@code FONT_FALLBACK} and {@code FONT_MAP} are ignored
- */
- DrawableHint FONT_HANDLER = new DrawableHint(7);
-
- /**
- * Key for a font fallback map of type {@code Map
- * The resulting arc begins at
- * The center of the arc is the center of the rectangle whose origin
- * is (x, y) and whose size is specified by the
- *
- * The resulting arc covers an area
- *
- * The angles are specified relative to the non-square extents of
- * the bounding rectangle such that 45 degrees always falls on the
- * line from the center of the ellipse to the upper right corner of
- * the bounding rectangle. As a result, if the bounding rectangle is
- * noticeably longer in one axis than the other, the angles to the
- * start and end of the arc segment will be skewed farther along the
- * longer axis of the bounds.
- * @param x the x coordinate of the
- * upper-left corner of the arc to be filled.
- * @param y the y coordinate of the
- * upper-left corner of the arc to be filled.
- * @param width the width of the arc to be filled.
- * @param height the height of the arc to be filled.
- * @param startAngle the beginning angle.
- * @param arcAngle the angular extent of the arc,
- * relative to the start angle.
- * @see java.awt.Graphics#drawArc
- */
- public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle){
- Arc2D arc = new Arc2D.Double(x, y, width, height, startAngle, arcAngle, Arc2D.PIE);
- fill(arc);
- }
-
- /**
- * Draws the outline of a circular or elliptical arc
- * covering the specified rectangle.
- *
- * The resulting arc begins at
- * The center of the arc is the center of the rectangle whose origin
- * is (x, y) and whose size is specified by the
- *
- * The resulting arc covers an area
- *
- * The angles are specified relative to the non-square extents of
- * the bounding rectangle such that 45 degrees always falls on the
- * line from the center of the ellipse to the upper right corner of
- * the bounding rectangle. As a result, if the bounding rectangle is
- * noticeably longer in one axis than the other, the angles to the
- * start and end of the arc segment will be skewed farther along the
- * longer axis of the bounds.
- * @param x the x coordinate of the
- * upper-left corner of the arc to be drawn.
- * @param y the y coordinate of the
- * upper-left corner of the arc to be drawn.
- * @param width the width of the arc to be drawn.
- * @param height the height of the arc to be drawn.
- * @param startAngle the beginning angle.
- * @param arcAngle the angular extent of the arc,
- * relative to the start angle.
- * @see java.awt.Graphics#fillArc
- */
- public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) {
- Arc2D arc = new Arc2D.Double(x, y, width, height, startAngle, arcAngle, Arc2D.OPEN);
- draw(arc);
- }
-
-
- /**
- * Draws a sequence of connected lines defined by
- * arrays of x and y coordinates.
- * Each pair of (x, y) coordinates defines a point.
- * The figure is not closed if the first point
- * differs from the last point.
- * @param xPoints an array of x points
- * @param yPoints an array of y points
- * @param nPoints the total number of points
- * @see java.awt.Graphics#drawPolygon(int[], int[], int)
- * @since JDK1.1
- */
- public void drawPolyline(int[] xPoints, int[] yPoints,
- int nPoints){
- if(nPoints > 0){
- GeneralPath path = new GeneralPath();
- path.moveTo(xPoints[0], yPoints[0]);
- for(int i=1; i
- * The oval covers an area that is
- *
- * This operation is equivalent to filling a rectangle of the
- * width and height of the specified image with the given color and then
- * drawing the image on top of it, but possibly more efficient.
- *
- * This method returns immediately in all cases, even if the
- * complete image has not yet been loaded, and it has not been dithered
- * and converted for the current output device.
- *
- * If the image has not yet been completely loaded, then
- *
- * The image is drawn inside the specified rectangle of this
- * graphics context's coordinate space, and is scaled if
- * necessary. Transparent pixels are drawn in the specified
- * background color.
- * This operation is equivalent to filling a rectangle of the
- * width and height of the specified image with the given color and then
- * drawing the image on top of it, but possibly more efficient.
- *
- * This method returns immediately in all cases, even if the
- * entire image has not yet been scaled, dithered, and converted
- * for the current output device.
- * If the current output representation is not yet complete then
- *
- * A scaled version of an image will not necessarily be
- * available immediately just because an unscaled version of the
- * image has been constructed for this output device. Each size of
- * the image may be cached separately and generated from the original
- * data in a separate image production sequence.
- * @param img the specified image to be drawn.
- * @param x the x coordinate.
- * @param y the y coordinate.
- * @param width the width of the rectangle.
- * @param height the height of the rectangle.
- * @param bgcolor the background color to paint under the
- * non-opaque portions of the image.
- * @param observer object to be notified as more of
- * the image is converted.
- * @see java.awt.Image
- * @see java.awt.image.ImageObserver
- * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- */
- @NotImplemented
- public boolean drawImage(Image img, int x, int y,
- int width, int height,
- Color bgcolor,
- ImageObserver observer){
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
-
- return false;
- }
-
-
- /**
- * Draws as much of the specified area of the specified image as is
- * currently available, scaling it on the fly to fit inside the
- * specified area of the destination drawable surface. Transparent pixels
- * do not affect whatever pixels are already there.
- *
- * This method returns immediately in all cases, even if the
- * image area to be drawn has not yet been scaled, dithered, and converted
- * for the current output device.
- * If the current output representation is not yet complete then
- *
- * This method always uses the unscaled version of the image
- * to render the scaled rectangle and performs the required
- * scaling on the fly. It does not use a cached, scaled version
- * of the image for this operation. Scaling of the image from source
- * to destination is performed such that the first coordinate
- * of the source rectangle is mapped to the first coordinate of
- * the destination rectangle, and the second source coordinate is
- * mapped to the second destination coordinate. The subimage is
- * scaled and flipped as needed to preserve those mappings.
- * @param img the specified image to be drawn
- * @param dx1 the x coordinate of the first corner of the
- * destination rectangle.
- * @param dy1 the y coordinate of the first corner of the
- * destination rectangle.
- * @param dx2 the x coordinate of the second corner of the
- * destination rectangle.
- * @param dy2 the y coordinate of the second corner of the
- * destination rectangle.
- * @param sx1 the x coordinate of the first corner of the
- * source rectangle.
- * @param sy1 the y coordinate of the first corner of the
- * source rectangle.
- * @param sx2 the x coordinate of the second corner of the
- * source rectangle.
- * @param sy2 the y coordinate of the second corner of the
- * source rectangle.
- * @param observer object to be notified as more of the image is
- * scaled and converted.
- * @see java.awt.Image
- * @see java.awt.image.ImageObserver
- * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- * @since JDK1.1
- */
- @NotImplemented
- public boolean drawImage(Image img,
- 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");
- }
- return false;
- }
-
- /**
- * Draws as much of the specified area of the specified image as is
- * currently available, scaling it on the fly to fit inside the
- * specified area of the destination drawable surface.
- *
- * Transparent pixels are drawn in the specified background color.
- * This operation is equivalent to filling a rectangle of the
- * width and height of the specified image with the given color and then
- * drawing the image on top of it, but possibly more efficient.
- *
- * This method returns immediately in all cases, even if the
- * image area to be drawn has not yet been scaled, dithered, and converted
- * for the current output device.
- * If the current output representation is not yet complete then
- *
- * This method always uses the unscaled version of the image
- * to render the scaled rectangle and performs the required
- * scaling on the fly. It does not use a cached, scaled version
- * of the image for this operation. Scaling of the image from source
- * to destination is performed such that the first coordinate
- * of the source rectangle is mapped to the first coordinate of
- * the destination rectangle, and the second source coordinate is
- * mapped to the second destination coordinate. The subimage is
- * scaled and flipped as needed to preserve those mappings.
- * @param img the specified image to be drawn
- * @param dx1 the x coordinate of the first corner of the
- * destination rectangle.
- * @param dy1 the y coordinate of the first corner of the
- * destination rectangle.
- * @param dx2 the x coordinate of the second corner of the
- * destination rectangle.
- * @param dy2 the y coordinate of the second corner of the
- * destination rectangle.
- * @param sx1 the x coordinate of the first corner of the
- * source rectangle.
- * @param sy1 the y coordinate of the first corner of the
- * source rectangle.
- * @param sx2 the x coordinate of the second corner of the
- * source rectangle.
- * @param sy2 the y coordinate of the second corner of the
- * source rectangle.
- * @param bgcolor the background color to paint under the
- * non-opaque portions of the image.
- * @param observer object to be notified as more of the image is
- * scaled and converted.
- * @see java.awt.Image
- * @see java.awt.image.ImageObserver
- * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- * @since JDK1.1
- */
- @NotImplemented
- public boolean drawImage(Image img,
- int dx1, int dy1, int dx2, int dy2,
- int sx1, int sy1, int sx2, int sy2,
- Color bgcolor,
- ImageObserver observer){
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- return false;
- }
-
- /**
- * Draws as much of the specified image as is currently available.
- * The image is drawn with its top-left corner at
- * (x, y) in this graphics context's coordinate
- * space. Transparent pixels in the image do not affect whatever
- * pixels are already there.
- *
- * This method returns immediately in all cases, even if the
- * complete image has not yet been loaded, and it has not been dithered
- * and converted for the current output device.
- *
- * If the image has completely loaded and its pixels are
- * no longer being changed, then
- *
- * When a Java program runs, a large number of
- * Graphics objects which are provided as arguments to the
- *
- * This method draws the polygon defined by
- * The area inside the polygon is defined using an
- * even-odd fill rule, also known as the alternating rule.
- * @param xPoints a an array of
- * This method draws the polygon defined by
- * Beginning with Java 1.1, the background color
- * of offscreen images may be system dependent. Applications should
- * use If this
- * The image is drawn inside the specified rectangle of this
- * graphics context's coordinate space, and is scaled if
- * necessary. Transparent pixels do not affect whatever pixels
- * are already there.
- *
- * This method returns immediately in all cases, even if the
- * entire image has not yet been scaled, dithered, and converted
- * for the current output device.
- * If the current output representation is not yet complete, then
- *
- * A scaled version of an image will not necessarily be
- * available immediately just because an unscaled version of the
- * image has been constructed for this output device. Each size of
- * the image may be cached separately and generated from the original
- * data in a separate image production sequence.
- * @param img the specified image to be drawn. This method does
- * nothing if
- * When drawing operations are performed, pixels which are the
- * current color are changed to the specified color, and vice versa.
- *
- * Pixels that are of colors other than those two colors are changed
- * in an unpredictable but reversible manner; if the same figure is
- * drawn twice, then all pixels are restored to their original values.
- * @param c1 the XOR alternation color
- */
- @NotImplemented
- public void setXORMode(Color c1) {
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- }
-
- /**
- * Sets the paint mode of this graphics context to overwrite the
- * destination with this graphics context's current color.
- * This sets the logical pixel operation function to the paint or
- * overwrite mode. All subsequent rendering operations will
- * overwrite the destination with the current color.
- */
- @NotImplemented
- public void setPaintMode() {
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- }
-
- /**
- * Renders a
- * {@link RenderableImage},
- * applying a transform from image space into user space before drawing.
- * The transformation from user space into device space is done with
- * the current
- * Rendering hints set on the Java class for CT_AdjPoint2D complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_AdjustHandleList complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link CTXYAdjustHandle }
- * {@link CTPolarAdjustHandle }
- *
- *
- */
- public List Java class for CT_Angle complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_Color complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_ColorMRU complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link CTPresetColor }
- * {@link CTSystemColor }
- * {@link CTHslColor }
- * {@link CTSRgbColor }
- * {@link CTScRgbColor }
- * {@link CTSchemeColor }
- *
- *
- */
- public List Java class for CT_ComplementTransform complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_Connection complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_ConnectionSite complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_ConnectionSiteList complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link CTConnectionSite }
- *
- *
- */
- public List Java class for CT_CustomGeometry2D complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_EmbeddedWAVAudioFile complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_FixedPercentage complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_GammaTransform complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_GeomGuide complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_GeomGuideList complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link CTGeomGuide }
- *
- *
- */
- public List Java class for CT_GeomRect complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_GrayscaleTransform complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_GroupTransform2D complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_HslColor complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- *
- *
- */
- public List Java class for CT_Hyperlink complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_InverseGammaTransform complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_InverseTransform complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_OfficeArtExtension complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_OfficeArtExtensionList complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link CTOfficeArtExtension }
- *
- *
- */
- public List Java class for CT_Path2D complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link CTPath2DLineTo }
- * {@link CTPath2DClose }
- * {@link CTPath2DCubicBezierTo }
- * {@link CTPath2DQuadBezierTo }
- * {@link CTPath2DArcTo }
- * {@link CTPath2DMoveTo }
- *
- *
- */
- public List Java class for CT_Path2DArcTo complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_Path2DClose complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_Path2DCubicBezierTo complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link CTAdjPoint2D }
- *
- *
- */
- public List Java class for CT_Path2DLineTo complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_Path2DList complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link CTPath2D }
- *
- *
- */
- public List Java class for CT_Path2DMoveTo complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_Path2DQuadBezierTo complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link CTAdjPoint2D }
- *
- *
- */
- public List Java class for CT_Percentage complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_Point2D complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_Point3D complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_PolarAdjustHandle complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_PositiveFixedAngle complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_PositiveFixedPercentage complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_PositivePercentage complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_PositiveSize2D complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_PresetColor complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- *
- *
- */
- public List Java class for CT_PresetGeometry2D complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_PresetTextShape complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_Ratio complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_RelativeRect complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_SRgbColor complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- *
- *
- */
- public List Java class for CT_ScRgbColor complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- *
- *
- */
- public List Java class for CT_Scale2D complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_SchemeColor complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- *
- *
- */
- public List Java class for CT_SphereCoords complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_SystemColor complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- *
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a
- * For example, to add a new item, do as follows:
- *
- * Objects of the following type(s) are allowed in the list
- * {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTAngle }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
- * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
- *
- *
- */
- public List Java class for CT_Transform2D complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_Vector3D complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * Java class for CT_XYAdjustHandle complex type.
- *
- * The following schema fragment specifies the expected content contained within this class.
- *
- * An ObjectFactory allows you to programatically
- * construct new instances of the Java representation
- * for XML content. The Java representation of XML
- * content can consist of schema derived interfaces
- * and classes representing the binding of schema
- * type definitions, element declarations and model
- * groups. Factory methods for each of these are
- * provided in this class.
- *
- */
-@XmlRegistry
-public class ObjectFactory {
-
- private final static QName _CTSRgbColorAlpha_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "alpha");
- private final static QName _CTSRgbColorLum_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "lum");
- private final static QName _CTSRgbColorGamma_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "gamma");
- private final static QName _CTSRgbColorInvGamma_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "invGamma");
- private final static QName _CTSRgbColorRedOff_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "redOff");
- private final static QName _CTSRgbColorAlphaMod_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "alphaMod");
- private final static QName _CTSRgbColorAlphaOff_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "alphaOff");
- private final static QName _CTSRgbColorGreenOff_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "greenOff");
- private final static QName _CTSRgbColorRedMod_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "redMod");
- private final static QName _CTSRgbColorHue_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "hue");
- private final static QName _CTSRgbColorSatOff_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "satOff");
- private final static QName _CTSRgbColorGreenMod_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "greenMod");
- private final static QName _CTSRgbColorSat_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "sat");
- private final static QName _CTSRgbColorBlue_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "blue");
- private final static QName _CTSRgbColorRed_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "red");
- private final static QName _CTSRgbColorSatMod_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "satMod");
- private final static QName _CTSRgbColorHueOff_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "hueOff");
- private final static QName _CTSRgbColorBlueMod_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "blueMod");
- private final static QName _CTSRgbColorShade_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "shade");
- private final static QName _CTSRgbColorLumMod_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "lumMod");
- private final static QName _CTSRgbColorInv_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "inv");
- private final static QName _CTSRgbColorLumOff_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "lumOff");
- private final static QName _CTSRgbColorTint_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "tint");
- private final static QName _CTSRgbColorGreen_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "green");
- private final static QName _CTSRgbColorComp_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "comp");
- private final static QName _CTSRgbColorBlueOff_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "blueOff");
- private final static QName _CTSRgbColorHueMod_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "hueMod");
- private final static QName _CTSRgbColorGray_QNAME = new QName("http://schemas.openxmlformats.org/drawingml/2006/main", "gray");
-
- /**
- * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.poi.sl.draw.binding
- *
- */
- public ObjectFactory() {
- }
-
- /**
- * Create an instance of {@link CTPositiveSize2D }
- *
- */
- public CTPositiveSize2D createCTPositiveSize2D() {
- return new CTPositiveSize2D();
- }
-
- /**
- * Create an instance of {@link CTSphereCoords }
- *
- */
- public CTSphereCoords createCTSphereCoords() {
- return new CTSphereCoords();
- }
-
- /**
- * Create an instance of {@link CTPositivePercentage }
- *
- */
- public CTPositivePercentage createCTPositivePercentage() {
- return new CTPositivePercentage();
- }
-
- /**
- * Create an instance of {@link CTAdjPoint2D }
- *
- */
- public CTAdjPoint2D createCTAdjPoint2D() {
- return new CTAdjPoint2D();
- }
-
- /**
- * Create an instance of {@link CTPath2DCubicBezierTo }
- *
- */
- public CTPath2DCubicBezierTo createCTPath2DCubicBezierTo() {
- return new CTPath2DCubicBezierTo();
- }
-
- /**
- * Create an instance of {@link CTEmbeddedWAVAudioFile }
- *
- */
- public CTEmbeddedWAVAudioFile createCTEmbeddedWAVAudioFile() {
- return new CTEmbeddedWAVAudioFile();
- }
-
- /**
- * Create an instance of {@link CTPresetGeometry2D }
- *
- */
- public CTPresetGeometry2D createCTPresetGeometry2D() {
- return new CTPresetGeometry2D();
- }
-
- /**
- * Create an instance of {@link CTSchemeColor }
- *
- */
- public CTSchemeColor createCTSchemeColor() {
- return new CTSchemeColor();
- }
-
- /**
- * Create an instance of {@link CTInverseTransform }
- *
- */
- public CTInverseTransform createCTInverseTransform() {
- return new CTInverseTransform();
- }
-
- /**
- * Create an instance of {@link CTScRgbColor }
- *
- */
- public CTScRgbColor createCTScRgbColor() {
- return new CTScRgbColor();
- }
-
- /**
- * Create an instance of {@link CTPositiveFixedAngle }
- *
- */
- public CTPositiveFixedAngle createCTPositiveFixedAngle() {
- return new CTPositiveFixedAngle();
- }
-
- /**
- * Create an instance of {@link CTInverseGammaTransform }
- *
- */
- public CTInverseGammaTransform createCTInverseGammaTransform() {
- return new CTInverseGammaTransform();
- }
-
- /**
- * Create an instance of {@link CTColorMRU }
- *
- */
- public CTColorMRU createCTColorMRU() {
- return new CTColorMRU();
- }
-
- /**
- * Create an instance of {@link CTPath2DArcTo }
- *
- */
- public CTPath2DArcTo createCTPath2DArcTo() {
- return new CTPath2DArcTo();
- }
-
- /**
- * Create an instance of {@link CTSystemColor }
- *
- */
- public CTSystemColor createCTSystemColor() {
- return new CTSystemColor();
- }
-
- /**
- * Create an instance of {@link CTGroupTransform2D }
- *
- */
- public CTGroupTransform2D createCTGroupTransform2D() {
- return new CTGroupTransform2D();
- }
-
- /**
- * Create an instance of {@link CTPoint2D }
- *
- */
- public CTPoint2D createCTPoint2D() {
- return new CTPoint2D();
- }
-
- /**
- * Create an instance of {@link CTGeomRect }
- *
- */
- public CTGeomRect createCTGeomRect() {
- return new CTGeomRect();
- }
-
- /**
- * Create an instance of {@link CTScale2D }
- *
- */
- public CTScale2D createCTScale2D() {
- return new CTScale2D();
- }
-
- /**
- * Create an instance of {@link CTGeomGuide }
- *
- */
- public CTGeomGuide createCTGeomGuide() {
- return new CTGeomGuide();
- }
-
- /**
- * Create an instance of {@link CTXYAdjustHandle }
- *
- */
- public CTXYAdjustHandle createCTXYAdjustHandle() {
- return new CTXYAdjustHandle();
- }
-
- /**
- * Create an instance of {@link CTCustomGeometry2D }
- *
- */
- public CTCustomGeometry2D createCTCustomGeometry2D() {
- return new CTCustomGeometry2D();
- }
-
- /**
- * Create an instance of {@link CTOfficeArtExtension }
- *
- */
- public CTOfficeArtExtension createCTOfficeArtExtension() {
- return new CTOfficeArtExtension();
- }
-
- /**
- * Create an instance of {@link CTGrayscaleTransform }
- *
- */
- public CTGrayscaleTransform createCTGrayscaleTransform() {
- return new CTGrayscaleTransform();
- }
-
- /**
- * Create an instance of {@link CTPath2DClose }
- *
- */
- public CTPath2DClose createCTPath2DClose() {
- return new CTPath2DClose();
- }
-
- /**
- * Create an instance of {@link CTComplementTransform }
- *
- */
- public CTComplementTransform createCTComplementTransform() {
- return new CTComplementTransform();
- }
-
- /**
- * Create an instance of {@link CTPoint3D }
- *
- */
- public CTPoint3D createCTPoint3D() {
- return new CTPoint3D();
- }
-
- /**
- * Create an instance of {@link CTPositiveFixedPercentage }
- *
- */
- public CTPositiveFixedPercentage createCTPositiveFixedPercentage() {
- return new CTPositiveFixedPercentage();
- }
-
- /**
- * Create an instance of {@link CTPath2D }
- *
- */
- public CTPath2D createCTPath2D() {
- return new CTPath2D();
- }
-
- /**
- * Create an instance of {@link CTAdjustHandleList }
- *
- */
- public CTAdjustHandleList createCTAdjustHandleList() {
- return new CTAdjustHandleList();
- }
-
- /**
- * Create an instance of {@link CTConnectionSiteList }
- *
- */
- public CTConnectionSiteList createCTConnectionSiteList() {
- return new CTConnectionSiteList();
- }
-
- /**
- * Create an instance of {@link CTPresetTextShape }
- *
- */
- public CTPresetTextShape createCTPresetTextShape() {
- return new CTPresetTextShape();
- }
-
- /**
- * Create an instance of {@link CTSRgbColor }
- *
- */
- public CTSRgbColor createCTSRgbColor() {
- return new CTSRgbColor();
- }
-
- /**
- * Create an instance of {@link CTPath2DMoveTo }
- *
- */
- public CTPath2DMoveTo createCTPath2DMoveTo() {
- return new CTPath2DMoveTo();
- }
-
- /**
- * Create an instance of {@link CTRelativeRect }
- *
- */
- public CTRelativeRect createCTRelativeRect() {
- return new CTRelativeRect();
- }
-
- /**
- * Create an instance of {@link CTPath2DList }
- *
- */
- public CTPath2DList createCTPath2DList() {
- return new CTPath2DList();
- }
-
- /**
- * Create an instance of {@link CTPolarAdjustHandle }
- *
- */
- public CTPolarAdjustHandle createCTPolarAdjustHandle() {
- return new CTPolarAdjustHandle();
- }
-
- /**
- * Create an instance of {@link CTPercentage }
- *
- */
- public CTPercentage createCTPercentage() {
- return new CTPercentage();
- }
-
- /**
- * Create an instance of {@link CTHslColor }
- *
- */
- public CTHslColor createCTHslColor() {
- return new CTHslColor();
- }
-
- /**
- * Create an instance of {@link CTRatio }
- *
- */
- public CTRatio createCTRatio() {
- return new CTRatio();
- }
-
- /**
- * Create an instance of {@link CTGeomGuideList }
- *
- */
- public CTGeomGuideList createCTGeomGuideList() {
- return new CTGeomGuideList();
- }
-
- /**
- * Create an instance of {@link CTTransform2D }
- *
- */
- public CTTransform2D createCTTransform2D() {
- return new CTTransform2D();
- }
-
- /**
- * Create an instance of {@link CTGammaTransform }
- *
- */
- public CTGammaTransform createCTGammaTransform() {
- return new CTGammaTransform();
- }
-
- /**
- * Create an instance of {@link CTPath2DQuadBezierTo }
- *
- */
- public CTPath2DQuadBezierTo createCTPath2DQuadBezierTo() {
- return new CTPath2DQuadBezierTo();
- }
-
- /**
- * Create an instance of {@link CTAngle }
- *
- */
- public CTAngle createCTAngle() {
- return new CTAngle();
- }
-
- /**
- * Create an instance of {@link CTConnectionSite }
- *
- */
- public CTConnectionSite createCTConnectionSite() {
- return new CTConnectionSite();
- }
-
- /**
- * Create an instance of {@link CTHyperlink }
- *
- */
- public CTHyperlink createCTHyperlink() {
- return new CTHyperlink();
- }
-
- /**
- * Create an instance of {@link CTFixedPercentage }
- *
- */
- public CTFixedPercentage createCTFixedPercentage() {
- return new CTFixedPercentage();
- }
-
- /**
- * Create an instance of {@link CTPath2DLineTo }
- *
- */
- public CTPath2DLineTo createCTPath2DLineTo() {
- return new CTPath2DLineTo();
- }
-
- /**
- * Create an instance of {@link CTColor }
- *
- */
- public CTColor createCTColor() {
- return new CTColor();
- }
-
- /**
- * Create an instance of {@link CTPresetColor }
- *
- */
- public CTPresetColor createCTPresetColor() {
- return new CTPresetColor();
- }
-
- /**
- * Create an instance of {@link CTVector3D }
- *
- */
- public CTVector3D createCTVector3D() {
- return new CTVector3D();
- }
-
- /**
- * Create an instance of {@link CTOfficeArtExtensionList }
- *
- */
- public CTOfficeArtExtensionList createCTOfficeArtExtensionList() {
- return new CTOfficeArtExtensionList();
- }
-
- /**
- * Create an instance of {@link CTConnection }
- *
- */
- public CTConnection createCTConnection() {
- return new CTConnection();
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", name = "alpha", scope = CTSRgbColor.class)
- public JAXBElement%n", DEFAULTS_CLASS);
- printCols(sheet);
- printSheetContent(sheet);
- out.format("
%n");
- }
-
- private void printCols(Sheet sheet) {
- out.format("%n", COL_HEAD_CLASS);
- out.format(" %n");
- out.format("%n");
- }
-
- private void printSheetContent(Sheet sheet) {
- printColumnHeads();
-
- out.format("%n");
- Iterator◊ %n", COL_HEAD_CLASS);
- //noinspection UnusedDeclaration
- StringBuilder colName = new StringBuilder();
- for (int i = firstColumn; i < endColumn; i++) {
- colName.setLength(0);
- int cnum = i;
- do {
- colName.insert(0, (char) ('A' + cnum % 26));
- cnum /= 26;
- } while (cnum > 0);
- out.format(" %s %n", COL_HEAD_CLASS, colName);
- }
- out.format(" %n");
- out.format(" %n");
- }
- out.format("%d %n", ROW_HEAD_CLASS,
- row.getRowNum() + 1);
- for (int i = firstColumn; i < endColumn; i++) {
- String content = " ";
- String attrs = "";
- CellStyle style = null;
- if (i >= row.getFirstCellNum() && i < row.getLastCellNum()) {
- Cell cell = row.getCell(i);
- if (cell != null) {
- style = cell.getCellStyle();
- attrs = tagStyle(cell, style);
- //Set the value that is rendered for the cell
- //also applies the format
- CellFormat cf = CellFormat.getInstance(
- style.getDataFormatString());
- CellFormatResult result = cf.apply(cell);
- content = result.text;
- if (content.equals("")) {
- content = " ";
- }
- }
- }
- out.format(" %s %n", styleName(style),
- attrs, content);
- }
- out.format("
- *
AesZipFileZipEntrySource
is used to ensure that temp files are encrypted.
- *
- *
SXSSFWorkbookWithCustomZipEntrySource
extends SXSSFWorkbook to ensure temp files are encrypted.
- *
- * Usage:
- * CalendarDemo
- *
- * @author Yegor Kozlov
- */
-public class CalendarDemo {
-
- private static final String[] days = {
- "Sunday", "Monday", "Tuesday",
- "Wednesday", "Thursday", "Friday", "Saturday"};
-
- private static final String[] months = {
- "January", "February", "March","April", "May", "June","July", "August",
- "September","October", "November", "December"};
-
- public static void main(String[] args) throws Exception {
-
- Calendar calendar = Calendar.getInstance();
- if(args.length > 0) calendar.set(Calendar.YEAR, Integer.parseInt(args[0]));
-
- int year = calendar.get(Calendar.YEAR);
-
- XSSFWorkbook wb = new XSSFWorkbook();
- Map
- *
AesZipFileZipEntrySource
is used to ensure that temp files are encrypted.
- * IExcelAntWorkbookHandler
interface. After writing the
- * class you should package it and it's dependencies into a jar file to
- * add as library in your Ant build file.
- *
- * @author Jon Svede ( jon [at] loquatic [dot] com )
- * @author Brian Bush ( brian [dot] bush [at] nrel [dot] gov )
- *
- */
-public class ExcelAntHandlerTask extends Task {
-
- private String className ;
-
- private ExcelAntWorkbookUtil wbUtil ;
-
- public void setClassName( String cName ) {
- className = cName ;
- }
-
- protected void setEAWorkbookUtil( ExcelAntWorkbookUtil wkbkUtil ) {
- wbUtil = wkbkUtil ;
- }
-
- @Override
- public void execute() throws BuildException {
- log( "handling the workbook with class " + className, Project.MSG_INFO ) ;
- try {
- Class> clazz = Class.forName( className ) ;
- Object handlerObj = clazz.newInstance() ;
- if( handlerObj instanceof IExcelAntWorkbookHandler ) {
- IExcelAntWorkbookHandler iHandler = (IExcelAntWorkbookHandler)handlerObj ;
- iHandler.setWorkbook( wbUtil.getWorkbook() ) ;
- iHandler.execute() ;
- }
- } catch( Exception e ) {
- throw new BuildException( e.getMessage(), e ) ;
- }
- }
- }
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntPrecision.java b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntPrecision.java
deleted file mode 100644
index 0739ef583..000000000
--- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntPrecision.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.ss.excelant;
-
-import org.apache.tools.ant.taskdefs.Typedef;
-
-/**
- *
- * @author Jon Svede ( jon [at] loquatic [dot] com )
- * @author Brian Bush ( brian [dot] bush [at] nrel [dot] gov )
- *
- */
-public class ExcelAntPrecision extends Typedef {
-
- private double value ;
-
- public void setValue( double precision ) {
- value = precision ;
- }
-
- public double getValue() {
- return value ;
- }
-}
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSet.java b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSet.java
deleted file mode 100644
index e62f0623d..000000000
--- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSet.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.ss.excelant;
-
-import org.apache.poi.ss.excelant.util.ExcelAntWorkbookUtil;
-import org.apache.tools.ant.Task;
-
-/**
- *
- * @author Jon Svede ( jon [at] loquatic [dot] com )
- * @author Brian Bush ( brian [dot] bush [at] nrel [dot] gov )
- *
- */
-public abstract class ExcelAntSet extends Task {
-
- protected String cellStr ;
-
- protected ExcelAntWorkbookUtil wbUtil ;
-
- public void setCell( String cellName ) {
- cellStr = cellName ;
- }
-
- public String getCell() {
- return cellStr ;
- }
-
-
- public void setWorkbookUtil( ExcelAntWorkbookUtil wb ) {
- wbUtil = wb ;
- }
-
-}
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetDoubleCell.java b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetDoubleCell.java
deleted file mode 100644
index 2451a61e6..000000000
--- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetDoubleCell.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.ss.excelant;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-
-/**
- * Class for use in an Ant build script that sets the value of an Excel
- * sheet cell using the cell id ('Sheet Name'!cellId).
- *
- * @author Jon Svede ( jon [at] loquatic [dot] com )
- * @author Brian Bush ( brian [dot] bush [at] nrel [dot] gov )
- *
- */
-public class ExcelAntSetDoubleCell extends ExcelAntSet {
- private double cellValue;
-
- public ExcelAntSetDoubleCell() {}
-
- /**
- * Set the value of the specified cell as the double passed in.
- * @param value The double-value that should be set when this task is executed.
- */
- public void setValue( double value ) {
- cellValue = value ;
- }
-
- /**
- * Return the cell value as a double.
- * @return The double-value of the cell as populated via setValue(), null
- * if the value was not set yet.
- */
- public double getCellValue() {
- return cellValue;
- }
-
- @Override
- public void execute() throws BuildException {
- wbUtil.setDoubleValue(cellStr, cellValue ) ;
-
- log( "set cell " + cellStr + " to value " + cellValue + " as double.", Project.MSG_DEBUG ) ;
- }
-}
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetFormulaCell.java b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetFormulaCell.java
deleted file mode 100644
index 8dc599b10..000000000
--- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetFormulaCell.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.ss.excelant;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-
-/**
- * Class for use in an Ant build script that sets the formula of an Excel
- * sheet cell using the cell id ('Sheet Name'!cellId).
- *
- * @author Jon Svede ( jon [at] loquatic [dot] com )
- * @author Brian Bush ( brian [dot] bush [at] nrel [dot] gov )
- *
- */
-public class ExcelAntSetFormulaCell extends ExcelAntSet {
-
-
- private String cellValue ;
-
- public ExcelAntSetFormulaCell() {}
-
- public void setValue( String value ) {
- cellValue = value ;
- }
-
- protected String getCellValue() {
- return cellValue;
- }
-
- @Override
- public void execute() throws BuildException {
-
- wbUtil.setFormulaValue( cellStr, cellValue ) ;
-
- log( "set cell " + cellStr + " to formula " + cellValue, Project.MSG_DEBUG ) ;
- }
-}
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetStringCell.java b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetStringCell.java
deleted file mode 100644
index e1ab047fb..000000000
--- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntSetStringCell.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.ss.excelant;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-
-/**
- * Class for use in an Ant build script that sets the value of an Excel
- * sheet cell using the cell id ('Sheet Name'!cellId).
- *
- * @author Jon Svede ( jon [at] loquatic [dot] com )
- * @author Brian Bush ( brian [dot] bush [at] nrel [dot] gov )
- *
- */
-public class ExcelAntSetStringCell extends ExcelAntSet {
- private String stringValue ;
-
- public ExcelAntSetStringCell() {}
-
- /**
- * Set the value of the cell to the String passed in.
- * @param value The string-value that should be set when this task is executed.
- */
- public void setValue(String value ) {
- stringValue = value ;
- }
-
- /**
- * Return the value that will be set into the cell.
- * @return The string-value of the cell as populated via setValue(), null
- * if the value was not set yet.
- */
- public String getCellValue() {
- return stringValue;
- }
-
- @Override
- public void execute() throws BuildException {
- wbUtil.setStringValue(cellStr, stringValue ) ;
-
- log( "set cell " + cellStr + " to value " + stringValue + " as String.", Project.MSG_DEBUG ) ;
- }
-}
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java
deleted file mode 100644
index e9bb072e5..000000000
--- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntTask.java
+++ /dev/null
@@ -1,155 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.ss.excelant;
-
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.LinkedList;
-import java.util.Locale;
-
-import org.apache.poi.ss.excelant.util.ExcelAntWorkbookUtil;
-import org.apache.poi.ss.excelant.util.ExcelAntWorkbookUtilFactory;
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-import org.apache.tools.ant.Task;
-
-/**
- * Ant task class for testing Excel workbook cells.
- */
-public class ExcelAntTask extends Task {
-
- public static final String VERSION = "0.5.0" ;
-
- private String excelFileName ;
-
- private boolean failOnError = false ;
-
- private ExcelAntWorkbookUtil workbookUtil ;
-
- private ExcelAntPrecision precision ;
-
- private LinkedListsheet
displays the specified shape.
- *
- * Subclasses can override it and skip certain shapes from drawings,
- * for instance, slide masters and layouts don't display placeholders
- */
- protected boolean canDraw(Graphics2D graphics, Shape,?> shape){
- return true;
- }
-}
diff --git a/src/java/org/apache/poi/sl/draw/DrawSimpleShape.java b/src/java/org/apache/poi/sl/draw/DrawSimpleShape.java
deleted file mode 100644
index ed52a6c9e..000000000
--- a/src/java/org/apache/poi/sl/draw/DrawSimpleShape.java
+++ /dev/null
@@ -1,446 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw;
-
-import java.awt.BasicStroke;
-import java.awt.Color;
-import java.awt.Graphics2D;
-import java.awt.Paint;
-import java.awt.geom.AffineTransform;
-import java.awt.geom.Ellipse2D;
-import java.awt.geom.Path2D;
-import java.awt.geom.Rectangle2D;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.Unmarshaller;
-import javax.xml.stream.EventFilter;
-import javax.xml.stream.XMLEventReader;
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.events.StartElement;
-import javax.xml.stream.events.XMLEvent;
-
-import org.apache.poi.sl.draw.binding.CTCustomGeometry2D;
-import org.apache.poi.sl.draw.geom.Context;
-import org.apache.poi.sl.draw.geom.CustomGeometry;
-import org.apache.poi.sl.draw.geom.Outline;
-import org.apache.poi.sl.draw.geom.Path;
-import org.apache.poi.sl.usermodel.LineDecoration;
-import org.apache.poi.sl.usermodel.LineDecoration.DecorationShape;
-import org.apache.poi.sl.usermodel.LineDecoration.DecorationSize;
-import org.apache.poi.sl.usermodel.PaintStyle.SolidPaint;
-import org.apache.poi.sl.usermodel.Shadow;
-import org.apache.poi.sl.usermodel.SimpleShape;
-import org.apache.poi.util.IOUtils;
-import org.apache.poi.util.Units;
-
-
-public class DrawSimpleShape extends DrawShape {
-
- private static final double DECO_SIZE_POW = 1.5d;
-
- public DrawSimpleShape(SimpleShape,?> shape) {
- super(shape);
- }
-
- @Override
- public void draw(Graphics2D graphics) {
- DrawPaint drawPaint = DrawFactory.getInstance(graphics).getPaint(getShape());
- Paint fill = drawPaint.getPaint(graphics, getShape().getFillStyle().getPaint());
- Paint line = drawPaint.getPaint(graphics, getShape().getStrokeStyle().getPaint());
- BasicStroke stroke = getStroke(); // the stroke applies both to the shadow and the shape
- graphics.setStroke(stroke);
-
- Collection
- *
- *
- * and then pass this class to your instance of java.awt.Graphics2D:
- *
- *
- * public class MyImageRendener implements ImageRendener {
- * InputStream data;
- *
- * public boolean drawImage(Graphics2D graphics,Rectangle2D anchor,Insets clip) {
- * // draw image
- * DataInputStream is = new DataInputStream(data);
- * org.apache.batik.transcoder.wmf.tosvg.WMFRecordStore wmfStore =
- * new org.apache.batik.transcoder.wmf.tosvg.WMFRecordStore();
- * try {
- * wmfStore.read(is);
- * } catch (IOException e){
- * return;
- * }
- *
- * float scale = (float)anchor.width/wmfStore.getWidthPixels();
- *
- * org.apache.batik.transcoder.wmf.tosvg.WMFPainter painter =
- * new org.apache.batik.transcoder.wmf.tosvg.WMFPainter(wmfStore, 0, 0, scale);
- * graphics.translate(anchor.x, anchor.y);
- * painter.paint(graphics);
- * }
- *
- * public void loadImage(InputStream data, String contentType) throws IOException {
- * if ("image/wmf".equals(contentType)) {
- * this.data = data;
- * // use Apache Batik to handle WMF
- * } else {
- * super.loadImage(data,contentType);
- * }
- * }
- * }
- *
- *
- *
- */
-public interface ImageRenderer {
- /**
- * Load and buffer the image
- *
- * @param data the raw image stream
- * @param contentType the content type
- */
- void loadImage(InputStream data, String contentType) throws IOException;
-
- /**
- * Load and buffer the image
- *
- * @param data the raw image bytes
- * @param contentType the content type
- */
- void loadImage(byte data[], String contentType) throws IOException;
-
- /**
- * @return the dimension of the buffered image
- */
- Dimension getDimension();
-
- /**
- * @param alpha the alpha [0..1] to be added to the image (possibly already containing an alpha channel)
- */
- void setAlpha(double alpha);
-
- /**
- * @return the image as buffered image
- */
- BufferedImage getImage();
-
- /**
- * @param dim the dimension in pixels of the returned image
- * @return the image as buffered image
- *
- * @since POI 3.15-beta2
- */
- BufferedImage getImage(Dimension dim);
-
- /**
- * Render picture data into the supplied graphics
- *
- * @return true if the picture data was successfully rendered
- */
- boolean drawImage(Graphics2D graphics, Rectangle2D anchor);
-
- /**
- * Render picture data into the supplied graphics
- *
- * @return true if the picture data was successfully rendered
- */
- boolean drawImage(Graphics2D graphics, Rectangle2D anchor, Insets clip);
-}
\ No newline at end of file
diff --git a/src/java/org/apache/poi/sl/draw/PathGradientPaint.java b/src/java/org/apache/poi/sl/draw/PathGradientPaint.java
deleted file mode 100644
index d4a2a5fa5..000000000
--- a/src/java/org/apache/poi/sl/draw/PathGradientPaint.java
+++ /dev/null
@@ -1,188 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw;
-
-import java.awt.*;
-import java.awt.MultipleGradientPaint.ColorSpaceType;
-import java.awt.MultipleGradientPaint.CycleMethod;
-import java.awt.geom.*;
-import java.awt.image.*;
-
-class PathGradientPaint implements Paint {
-
- // http://asserttrue.blogspot.de/2010/01/how-to-iimplement-custom-paint-in-50.html
- protected final Color colors[];
- protected final float fractions[];
- protected final int capStyle;
- protected final int joinStyle;
- protected final int transparency;
-
-
- public PathGradientPaint(Color colors[], float fractions[]) {
- this(colors,fractions,BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND);
- }
-
- public PathGradientPaint(Color colors[], float fractions[], int capStyle, int joinStyle) {
- this.colors = colors.clone();
- this.fractions = fractions.clone();
- this.capStyle = capStyle;
- this.joinStyle = joinStyle;
-
- // determine transparency
- boolean opaque = true;
- for (Color c : colors) {
- if (c != null) {
- opaque = opaque && (c.getAlpha() == 0xff);
- }
- }
- this.transparency = opaque ? OPAQUE : TRANSLUCENT;
- }
-
- public PaintContext createContext(ColorModel cm,
- Rectangle deviceBounds,
- Rectangle2D userBounds,
- AffineTransform transform,
- RenderingHints hints) {
- return new PathGradientContext(cm, deviceBounds, userBounds, transform, hints);
- }
-
- public int getTransparency() {
- return transparency;
- }
-
- class PathGradientContext implements PaintContext {
- protected final Rectangle deviceBounds;
- protected final Rectangle2D userBounds;
- protected final AffineTransform xform;
- protected final RenderingHints hints;
-
- /**
- * for POI: the shape will be only known when the subclasses determines the concrete implementation
- * in the draw/-content method, so we need to postpone the setting/creation as long as possible
- **/
- protected final Shape shape;
- protected final PaintContext pCtx;
- protected final int gradientSteps;
- WritableRaster raster;
-
- public PathGradientContext(
- ColorModel cm
- , Rectangle deviceBounds
- , Rectangle2D userBounds
- , AffineTransform xform
- , RenderingHints hints
- ) {
- shape = (Shape)hints.get(Drawable.GRADIENT_SHAPE);
- if (shape == null) {
- throw new IllegalPathStateException("PathGradientPaint needs a shape to be set via the rendering hint Drawable.GRADIANT_SHAPE.");
- }
-
- this.deviceBounds = deviceBounds;
- this.userBounds = userBounds;
- this.xform = xform;
- this.hints = hints;
-
- gradientSteps = getGradientSteps(shape);
-
- Point2D start = new Point2D.Double(0, 0);
- Point2D end = new Point2D.Double(gradientSteps, 0);
- LinearGradientPaint gradientPaint = new LinearGradientPaint(start, end, fractions, colors, CycleMethod.NO_CYCLE, ColorSpaceType.SRGB, new AffineTransform());
-
- Rectangle bounds = new Rectangle(0, 0, gradientSteps, 1);
- pCtx = gradientPaint.createContext(cm, bounds, bounds, new AffineTransform(), hints);
- }
-
- public void dispose() {}
-
- public ColorModel getColorModel() {
- return pCtx.getColorModel();
- }
-
- public Raster getRaster(int xOffset, int yOffset, int w, int h) {
- ColorModel cm = getColorModel();
- if (raster == null) createRaster();
-
- // TODO: eventually use caching here
- WritableRaster childRaster = cm.createCompatibleWritableRaster(w, h);
- Rectangle2D childRect = new Rectangle2D.Double(xOffset, yOffset, w, h);
- if (!childRect.intersects(deviceBounds)) {
- // usually doesn't happen ...
- return childRaster;
- }
-
- Rectangle2D destRect = new Rectangle2D.Double();
- Rectangle2D.intersect(childRect, deviceBounds, destRect);
- int dx = (int)(destRect.getX()-deviceBounds.getX());
- int dy = (int)(destRect.getY()-deviceBounds.getY());
- int dw = (int)destRect.getWidth();
- int dh = (int)destRect.getHeight();
- Object data = raster.getDataElements(dx, dy, dw, dh, null);
- dx = (int)(destRect.getX()-childRect.getX());
- dy = (int)(destRect.getY()-childRect.getY());
- childRaster.setDataElements(dx, dy, dw, dh, data);
-
- return childRaster;
- }
-
- protected int getGradientSteps(Shape gradientShape) {
- Rectangle rect = gradientShape.getBounds();
- int lower = 1;
- int upper = (int)(Math.max(rect.getWidth(),rect.getHeight())/2.0);
- while (lower < upper-1) {
- int mid = lower + (upper - lower) / 2;
- BasicStroke bs = new BasicStroke(mid, capStyle, joinStyle);
- Area area = new Area(bs.createStrokedShape(gradientShape));
- if (area.isSingular()) {
- upper = mid;
- } else {
- lower = mid;
- }
- }
- return upper;
- }
-
-
-
- protected void createRaster() {
- ColorModel cm = getColorModel();
- raster = cm.createCompatibleWritableRaster((int)deviceBounds.getWidth(), (int)deviceBounds.getHeight());
- BufferedImage img = new BufferedImage(cm, raster, false, null);
- Graphics2D graphics = img.createGraphics();
- graphics.setRenderingHints(hints);
- graphics.translate(-deviceBounds.getX(), -deviceBounds.getY());
- graphics.transform(xform);
-
- Raster img2 = pCtx.getRaster(0, 0, gradientSteps, 1);
- int rgb[] = new int[cm.getNumComponents()];
-
- for (int i = gradientSteps-1; i>=0; i--) {
- img2.getPixel(i, 0, rgb);
- Color c = new Color(rgb[0],rgb[1],rgb[2]);
- if (rgb.length == 4) {
- // it doesn't work to use just a color with transparency ...
- graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC, rgb[3]/255.0f));
- }
- graphics.setStroke(new BasicStroke(i+1, capStyle, joinStyle));
- graphics.setColor(c);
- graphics.draw(shape);
- }
-
- graphics.dispose();
- }
- }
-}
diff --git a/src/java/org/apache/poi/sl/draw/SLGraphics.java b/src/java/org/apache/poi/sl/draw/SLGraphics.java
deleted file mode 100644
index c9b70cfba..000000000
--- a/src/java/org/apache/poi/sl/draw/SLGraphics.java
+++ /dev/null
@@ -1,1846 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw;
-
-
-import java.awt.BasicStroke;
-import java.awt.Color;
-import java.awt.Composite;
-import java.awt.Font;
-import java.awt.FontMetrics;
-import java.awt.Graphics;
-import java.awt.Graphics2D;
-import java.awt.GraphicsConfiguration;
-import java.awt.GraphicsEnvironment;
-import java.awt.Image;
-import java.awt.Paint;
-import java.awt.Rectangle;
-import java.awt.RenderingHints;
-import java.awt.Shape;
-import java.awt.Stroke;
-import java.awt.Toolkit;
-import java.awt.font.FontRenderContext;
-import java.awt.font.GlyphVector;
-import java.awt.font.TextLayout;
-import java.awt.geom.AffineTransform;
-import java.awt.geom.Arc2D;
-import java.awt.geom.Ellipse2D;
-import java.awt.geom.GeneralPath;
-import java.awt.geom.Line2D;
-import java.awt.geom.Path2D;
-import java.awt.geom.RoundRectangle2D;
-import java.awt.image.BufferedImage;
-import java.awt.image.BufferedImageOp;
-import java.awt.image.ImageObserver;
-import java.awt.image.RenderedImage;
-import java.awt.image.renderable.RenderableImage;
-import java.text.AttributedCharacterIterator;
-import java.util.Map;
-
-import org.apache.poi.sl.usermodel.FreeformShape;
-import org.apache.poi.sl.usermodel.GroupShape;
-import org.apache.poi.sl.usermodel.Insets2D;
-import org.apache.poi.sl.usermodel.SimpleShape;
-import org.apache.poi.sl.usermodel.StrokeStyle;
-import org.apache.poi.sl.usermodel.TextBox;
-import org.apache.poi.sl.usermodel.TextRun;
-import org.apache.poi.sl.usermodel.VerticalAlignment;
-import org.apache.poi.util.NotImplemented;
-import org.apache.poi.util.POILogFactory;
-import org.apache.poi.util.POILogger;
-import org.apache.poi.util.SuppressForbidden;
-
-/**
- * Translates Graphics2D calls into PowerPoint.
- *
- * @author Yegor Kozlov
- */
-public final class SLGraphics extends Graphics2D implements Cloneable {
-
- protected POILogger log = POILogFactory.getLogger(this.getClass());
-
- //The ppt object to write into.
- private GroupShape,?> _group;
-
- private AffineTransform _transform;
- private Stroke _stroke;
- private Paint _paint;
- private Font _font;
- private Color _foreground;
- private Color _background;
- private RenderingHints _hints;
-
- /**
- * Construct Java Graphics object which translates graphic calls in ppt drawing layer.
- *
- * @param group The shape group to write the graphics calls into.
- */
- public SLGraphics(GroupShape,?> group){
- this._group = group;
-
- _transform = new AffineTransform();
- _stroke = new BasicStroke();
- _paint = Color.black;
- _font = new Font("Arial", Font.PLAIN, 12);
- _background = Color.black;
- _foreground = Color.white;
- _hints = new RenderingHints(null);
- }
-
- /**
- * @return the shape group being used for drawing
- */
- public GroupShape,?> getShapeGroup(){
- return _group;
- }
-
- /**
- * Gets the current font.
- * @return this graphics context's current font.
- * @see java.awt.Font
- * @see java.awt.Graphics#setFont(Font)
- */
- public Font getFont(){
- return _font;
- }
-
- /**
- * Sets this graphics context's font to the specified font.
- * All subsequent text operations using this graphics context
- * use this font.
- * @param font the font.
- * @see java.awt.Graphics#getFont
- * @see java.awt.Graphics#drawString(java.lang.String, int, int)
- * @see java.awt.Graphics#drawBytes(byte[], int, int, int, int)
- * @see java.awt.Graphics#drawChars(char[], int, int, int, int)
- */
- public void setFont(Font font){
- this._font = font;
- }
-
- /**
- * Gets this graphics context's current color.
- * @return this graphics context's current color.
- * @see java.awt.Color
- * @see java.awt.Graphics#setColor
- */
- public Color getColor(){
- return _foreground;
- }
-
- /**
- * Sets this graphics context's current color to the specified
- * color. All subsequent graphics operations using this graphics
- * context use this specified color.
- * @param c the new rendering color.
- * @see java.awt.Color
- * @see java.awt.Graphics#getColor
- */
- public void setColor(Color c) {
- setPaint(c);
- }
-
- /**
- * Returns the current
- * graphics.setRenderingHint(Drawable.IMAGE_RENDERER, new MyImageRendener());
- *
- * Stroke
in the
- * Graphics2D
context.
- * @return the current Graphics2D
Stroke
,
- * which defines the line style.
- * @see #setStroke
- */
- public Stroke getStroke(){
- return _stroke;
- }
-
- /**
- * Sets the Stroke
for the Graphics2D
context.
- * @param s the Stroke
object to be used to stroke a
- * Shape
during the rendering process
- */
- public void setStroke(Stroke s){
- this._stroke = s;
- }
-
- /**
- * Returns the current Paint
of the
- * Graphics2D
context.
- * @return the current Graphics2D
Paint
,
- * which defines a color or pattern.
- * @see #setPaint
- * @see java.awt.Graphics#setColor
- */
- public Paint getPaint(){
- return _paint;
- }
-
- /**
- * Sets the Paint
attribute for the
- * Graphics2D
context. Calling this method
- * with a null
Paint
object does
- * not have any effect on the current Paint
attribute
- * of this Graphics2D
.
- * @param paint the Paint
object to be used to generate
- * color during the rendering process, or null
- * @see java.awt.Graphics#setColor
- */
- public void setPaint(Paint paint){
- if(paint == null) return;
-
- this._paint = paint;
- if (paint instanceof Color) _foreground = (Color)paint;
- }
-
- /**
- * Returns a copy of the current Transform
in the
- * Graphics2D
context.
- * @return the current AffineTransform
in the
- * Graphics2D
context.
- * @see #_transform
- * @see #setTransform
- */
- public AffineTransform getTransform(){
- return new AffineTransform(_transform);
- }
-
- /**
- * Sets the Transform
in the Graphics2D
- * context.
- * @param Tx the AffineTransform
object to be used in the
- * rendering process
- * @see #_transform
- * @see AffineTransform
- */
- public void setTransform(AffineTransform Tx) {
- _transform = new AffineTransform(Tx);
- }
-
- /**
- * Strokes the outline of a Shape
using the settings of the
- * current Graphics2D
context. The rendering attributes
- * applied include the Clip
, Transform
,
- * Paint
, Composite
and
- * Stroke
attributes.
- * @param shape the Shape
to be rendered
- * @see #setStroke
- * @see #setPaint
- * @see java.awt.Graphics#setColor
- * @see #_transform
- * @see #setTransform
- * @see #clip
- * @see #setClip
- * @see #setComposite
- */
- public void draw(Shape shape){
- Path2D.Double path = new Path2D.Double(_transform.createTransformedShape(shape));
- FreeformShape,?> p = _group.createFreeform();
- p.setPath(path);
- p.setFillColor(null);
- applyStroke(p);
- if (_paint instanceof Color) {
- p.setStrokeStyle((Color)_paint);
- }
- }
-
- /**
- * Renders the text specified by the specified String
,
- * using the current text attribute state in the Graphics2D
context.
- * The baseline of the first character is at position
- * (x, y) in the User Space.
- * The rendering attributes applied include the Clip
,
- * Transform
, Paint
, Font
and
- * Composite
attributes. For characters in script systems
- * such as Hebrew and Arabic, the glyphs can be rendered from right to
- * left, in which case the coordinate supplied is the location of the
- * leftmost character on the baseline.
- * @param s the String
to be rendered
- * @param x the x coordinate of the location where the
- * String
should be rendered
- * @param y the y coordinate of the location where the
- * String
should be rendered
- * @throws NullPointerException if str
is
- * null
- * @see #setPaint
- * @see java.awt.Graphics#setColor
- * @see java.awt.Graphics#setFont
- * @see #setTransform
- * @see #setComposite
- * @see #setClip
- */
- public void drawString(String s, float x, float y) {
- TextBox,?> txt = _group.createTextBox();
-
- TextRun rt = txt.getTextParagraphs().get(0).getTextRuns().get(0);
- rt.setFontSize((double)_font.getSize());
- rt.setFontFamily(_font.getFamily());
-
- if (getColor() != null) rt.setFontColor(DrawPaint.createSolidPaint(getColor()));
- if (_font.isBold()) rt.setBold(true);
- if (_font.isItalic()) rt.setItalic(true);
-
- txt.setText(s);
-
- txt.setInsets(new Insets2D(0,0,0,0));
- txt.setWordWrap(false);
- txt.setHorizontalCentered(false);
- txt.setVerticalAlignment(VerticalAlignment.MIDDLE);
-
-
- TextLayout layout = new TextLayout(s, _font, getFontRenderContext());
- float ascent = layout.getAscent();
-
- float width = (float) Math.floor(layout.getAdvance());
- /**
- * Even if top and bottom margins are set to 0 PowerPoint
- * always sets extra space between the text and its bounding box.
- *
- * The approximation height = ascent*2 works good enough in most cases
- */
- float height = ascent * 2;
-
- /*
- In powerpoint anchor of a shape is its top left corner.
- Java graphics sets string coordinates by the baseline of the first character
- so we need to shift up by the height of the textbox
- */
- y -= height / 2 + ascent / 2;
-
- /*
- In powerpoint anchor of a shape is its top left corner.
- Java graphics sets string coordinates by the baseline of the first character
- so we need to shift down by the height of the textbox
- */
- txt.setAnchor(new Rectangle((int)x, (int)y, (int)width, (int)height));
- }
-
- /**
- * Fills the interior of a Shape
using the settings of the
- * Graphics2D
context. The rendering attributes applied
- * include the Clip
, Transform
,
- * Paint
, and Composite
.
- * @param shape the Shape
to be filled
- * @see #setPaint
- * @see java.awt.Graphics#setColor
- * @see #_transform
- * @see #setTransform
- * @see #setComposite
- * @see #clip
- * @see #setClip
- */
- public void fill(Shape shape){
- Path2D.Double path = new Path2D.Double(_transform.createTransformedShape(shape));
- FreeformShape,?> p = _group.createFreeform();
- p.setPath(path);
- applyPaint(p);
- p.setStrokeStyle(); //Fills must be "No Line"
- }
-
- /**
- * Translates the origin of the graphics context to the point
- * (x, y) in the current coordinate system.
- * Modifies this graphics context so that its new origin corresponds
- * to the point (x, y) in this graphics context's
- * original coordinate system. All coordinates used in subsequent
- * rendering operations on this graphics context will be relative
- * to this new origin.
- * @param x the x coordinate.
- * @param y the y coordinate.
- */
- public void translate(int x, int y){
- _transform.translate(x, y);
- }
-
- /**
- * Intersects the current Clip
with the interior of the
- * specified Shape
and sets the Clip
to the
- * resulting intersection. The specified Shape
is
- * transformed with the current Graphics2D
- * Transform
before being intersected with the current
- * Clip
. This method is used to make the current
- * Clip
smaller.
- * To make the Clip
larger, use setClip
.
- * The user clip modified by this method is independent of the
- * clipping associated with device bounds and visibility. If no clip has
- * previously been set, or if the clip has been cleared using
- * {@link java.awt.Graphics#setClip(Shape) setClip} with a
- * null
argument, the specified Shape
becomes
- * the new user clip.
- * @param s the Shape
to be intersected with the current
- * Clip
. If s
is null
,
- * this method clears the current Clip
.
- */
- @NotImplemented
- public void clip(Shape s){
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- }
-
- /**
- * Gets the current clipping area.
- * This method returns the user clip, which is independent of the
- * clipping associated with device bounds and window visibility.
- * If no clip has previously been set, or if the clip has been
- * cleared using setClip(null)
, this method returns
- * null
.
- * @return a Shape
object representing the
- * current clipping area, or null
if
- * no clip is set.
- * @see java.awt.Graphics#getClipBounds()
- * @see java.awt.Graphics#clipRect
- * @see java.awt.Graphics#setClip(int, int, int, int)
- * @see java.awt.Graphics#setClip(Shape)
- * @since JDK1.1
- */
- @NotImplemented
- public Shape getClip(){
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- return null;
- }
-
- /**
- * Concatenates the current Graphics2D
- * Transform
with a scaling transformation
- * Subsequent rendering is resized according to the specified scaling
- * factors relative to the previous scaling.
- * This is equivalent to calling transform(S)
, where S is an
- * AffineTransform
represented by the following matrix:
- *
- * [ sx 0 0 ]
- * [ 0 sy 0 ]
- * [ 0 0 1 ]
- *
- * @param sx the amount by which X coordinates in subsequent
- * rendering operations are multiplied relative to previous
- * rendering operations.
- * @param sy the amount by which Y coordinates in subsequent
- * rendering operations are multiplied relative to previous
- * rendering operations.
- */
- public void scale(double sx, double sy){
- _transform.scale(sx, sy);
- }
-
- /**
- * Draws an outlined round-cornered rectangle using this graphics
- * context's current color. The left and right edges of the rectangle
- * are at x
and x + width
,
- * respectively. The top and bottom edges of the rectangle are at
- * y
and y + height
.
- * @param x the x coordinate of the rectangle to be drawn.
- * @param y the y coordinate of the rectangle to be drawn.
- * @param width the width of the rectangle to be drawn.
- * @param height the height of the rectangle to be drawn.
- * @param arcWidth the horizontal diameter of the arc
- * at the four corners.
- * @param arcHeight the vertical diameter of the arc
- * at the four corners.
- * @see java.awt.Graphics#fillRoundRect
- */
- public void drawRoundRect(int x, int y, int width, int height,
- int arcWidth, int arcHeight){
- RoundRectangle2D rect = new RoundRectangle2D.Double(x, y, width, height, arcWidth, arcHeight);
- draw(rect);
- }
-
- /**
- * Draws the text given by the specified string, using this
- * graphics context's current font and color. The baseline of the
- * first character is at position (x, y) in this
- * graphics context's coordinate system.
- * @param str the string to be drawn.
- * @param x the x coordinate.
- * @param y the y coordinate.
- * @see java.awt.Graphics#drawBytes
- * @see java.awt.Graphics#drawChars
- */
- public void drawString(String str, int x, int y){
- drawString(str, (float)x, (float)y);
- }
-
- /**
- * Fills an oval bounded by the specified rectangle with the
- * current color.
- * @param x the x coordinate of the upper left corner
- * of the oval to be filled.
- * @param y the y coordinate of the upper left corner
- * of the oval to be filled.
- * @param width the width of the oval to be filled.
- * @param height the height of the oval to be filled.
- * @see java.awt.Graphics#drawOval
- */
- public void fillOval(int x, int y, int width, int height){
- Ellipse2D oval = new Ellipse2D.Double(x, y, width, height);
- fill(oval);
- }
-
- /**
- * Fills the specified rounded corner rectangle with the current color.
- * The left and right edges of the rectangle
- * are at x
and x + width - 1
,
- * respectively. The top and bottom edges of the rectangle are at
- * y
and y + height - 1
.
- * @param x the x coordinate of the rectangle to be filled.
- * @param y the y coordinate of the rectangle to be filled.
- * @param width the width of the rectangle to be filled.
- * @param height the height of the rectangle to be filled.
- * @param arcWidth the horizontal diameter
- * of the arc at the four corners.
- * @param arcHeight the vertical diameter
- * of the arc at the four corners.
- * @see java.awt.Graphics#drawRoundRect
- */
- public void fillRoundRect(int x, int y, int width, int height,
- int arcWidth, int arcHeight){
-
- RoundRectangle2D rect = new RoundRectangle2D.Double(x, y, width, height, arcWidth, arcHeight);
- fill(rect);
- }
-
- /**
- * Fills a circular or elliptical arc covering the specified rectangle.
- * startAngle
and extends
- * for arcAngle
degrees.
- * Angles are interpreted such that 0 degrees
- * is at the 3 o'clock position.
- * A positive value indicates a counter-clockwise rotation
- * while a negative value indicates a clockwise rotation.
- * width
and height
arguments.
- * width + 1
pixels wide
- * by height + 1
pixels tall.
- * startAngle
and extends
- * for arcAngle
degrees, using the current color.
- * Angles are interpreted such that 0 degrees
- * is at the 3 o'clock position.
- * A positive value indicates a counter-clockwise rotation
- * while a negative value indicates a clockwise rotation.
- * width
and height
arguments.
- * width + 1
pixels wide
- * by height + 1
pixels tall.
- * y
,
- * width
, and height
arguments.
- * width + 1
pixels wide
- * and height + 1
pixels tall.
- * @param x the x coordinate of the upper left
- * corner of the oval to be drawn.
- * @param y the y coordinate of the upper left
- * corner of the oval to be drawn.
- * @param width the width of the oval to be drawn.
- * @param height the height of the oval to be drawn.
- * @see java.awt.Graphics#fillOval
- */
- public void drawOval(int x, int y, int width, int height){
- Ellipse2D oval = new Ellipse2D.Double(x, y, width, height);
- draw(oval);
- }
-
- /**
- * Draws as much of the specified image as is currently available.
- * The image is drawn with its top-left corner at
- * (x, y) in this graphics context's coordinate
- * space. Transparent pixels are drawn in the specified
- * background color.
- * drawImage
returns false
. As more of
- * the image becomes available, the process that draws the image notifies
- * the specified image observer.
- * @param img the specified image to be drawn.
- * @param x the x coordinate.
- * @param y the y coordinate.
- * @param bgcolor the background color to paint under the
- * non-opaque portions of the image.
- * @param observer object to be notified as more of
- * the image is converted.
- * @see java.awt.Image
- * @see java.awt.image.ImageObserver
- * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- */
- @NotImplemented
- public boolean drawImage(Image img, int x, int y,
- Color bgcolor,
- ImageObserver observer){
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
-
- return false;
- }
-
- /**
- * Draws as much of the specified image as has already been scaled
- * to fit inside the specified rectangle.
- * drawImage
returns false
. As more of
- * the image becomes available, the process that draws the image notifies
- * the specified image observer.
- * drawImage
returns false
. As more of
- * the image becomes available, the process that draws the image notifies
- * the specified image observer.
- * drawImage
returns false
. As more of
- * the image becomes available, the process that draws the image notifies
- * the specified image observer.
- * drawImage
returns true
.
- * Otherwise, drawImage
returns false
- * and as more of
- * the image becomes available
- * or it is time to draw another frame of animation,
- * the process that loads the image notifies
- * the specified image observer.
- * @param img the specified image to be drawn. This method does
- * nothing if img
is null.
- * @param x the x coordinate.
- * @param y the y coordinate.
- * @param observer object to be notified as more of
- * the image is converted.
- * @return false
if the image pixels are still changing;
- * true
otherwise.
- * @see java.awt.Image
- * @see java.awt.image.ImageObserver
- * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- */
- @NotImplemented
- public boolean drawImage(Image img, int x, int y,
- ImageObserver observer) {
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- return false;
- }
-
- /**
- * Disposes of this graphics context and releases
- * any system resources that it is using.
- * A Graphics
object cannot be used after
- * dispose
has been called.
- * Graphics
- * objects can be created within a short time frame.
- * Although the finalization process of the garbage collector
- * also disposes of the same system resources, it is preferable
- * to manually free the associated resources by calling this
- * method rather than to rely on a finalization process which
- * may not run to completion for a long period of time.
- * paint
and update
methods
- * of components are automatically released by the system when
- * those methods return. For efficiency, programmers should
- * call dispose
when finished using
- * a Graphics
object only if it was created
- * directly from a component or another Graphics
object.
- * @see java.awt.Graphics#finalize
- * @see java.awt.Component#paint
- * @see java.awt.Component#update
- * @see java.awt.Component#getGraphics
- * @see java.awt.Graphics#create
- */
- public void dispose() {
- }
-
- /**
- * Draws a line, using the current color, between the points
- * (x1, y1)
and (x2, y2)
- * in this graphics context's coordinate system.
- * @param x1 the first point's x coordinate.
- * @param y1 the first point's y coordinate.
- * @param x2 the second point's x coordinate.
- * @param y2 the second point's y coordinate.
- */
- public void drawLine(int x1, int y1, int x2, int y2){
- Line2D line = new Line2D.Double(x1, y1, x2, y2);
- draw(line);
- }
-
- /**
- * Fills a closed polygon defined by
- * arrays of x and y coordinates.
- * nPoint
line
- * segments, where the first nPoint - 1
- * line segments are line segments from
- * (xPoints[i - 1], yPoints[i - 1])
- * to (xPoints[i], yPoints[i])
, for
- * 1 ≤ i ≤ nPoints
.
- * The figure is automatically closed by drawing a line connecting
- * the final point to the first point, if those points are different.
- * x
coordinates.
- * @param yPoints a an array of y
coordinates.
- * @param nPoints a the total number of points.
- * @see java.awt.Graphics#drawPolygon(int[], int[], int)
- */
- public void fillPolygon(int[] xPoints, int[] yPoints,
- int nPoints){
- java.awt.Polygon polygon = new java.awt.Polygon(xPoints, yPoints, nPoints);
- fill(polygon);
- }
-
- /**
- * Fills the specified rectangle.
- * The left and right edges of the rectangle are at
- * x
and x + width - 1
.
- * The top and bottom edges are at
- * y
and y + height - 1
.
- * The resulting rectangle covers an area
- * width
pixels wide by
- * height
pixels tall.
- * The rectangle is filled using the graphics context's current color.
- * @param x the x coordinate
- * of the rectangle to be filled.
- * @param y the y coordinate
- * of the rectangle to be filled.
- * @param width the width of the rectangle to be filled.
- * @param height the height of the rectangle to be filled.
- * @see java.awt.Graphics#clearRect
- * @see java.awt.Graphics#drawRect
- */
- public void fillRect(int x, int y, int width, int height){
- Rectangle rect = new Rectangle(x, y, width, height);
- fill(rect);
- }
-
- /**
- * Draws the outline of the specified rectangle.
- * The left and right edges of the rectangle are at
- * x
and x + width
.
- * The top and bottom edges are at
- * y
and y + height
.
- * The rectangle is drawn using the graphics context's current color.
- * @param x the x coordinate
- * of the rectangle to be drawn.
- * @param y the y coordinate
- * of the rectangle to be drawn.
- * @param width the width of the rectangle to be drawn.
- * @param height the height of the rectangle to be drawn.
- * @see java.awt.Graphics#fillRect
- * @see java.awt.Graphics#clearRect
- */
- public void drawRect(int x, int y, int width, int height) {
- Rectangle rect = new Rectangle(x, y, width, height);
- draw(rect);
- }
-
- /**
- * Draws a closed polygon defined by
- * arrays of x and y coordinates.
- * Each pair of (x, y) coordinates defines a point.
- * nPoint
line
- * segments, where the first nPoint - 1
- * line segments are line segments from
- * (xPoints[i - 1], yPoints[i - 1])
- * to (xPoints[i], yPoints[i])
, for
- * 1 ≤ i ≤ nPoints
.
- * The figure is automatically closed by drawing a line connecting
- * the final point to the first point, if those points are different.
- * @param xPoints a an array of x
coordinates.
- * @param yPoints a an array of y
coordinates.
- * @param nPoints a the total number of points.
- * @see java.awt.Graphics#fillPolygon(int[],int[],int)
- * @see java.awt.Graphics#drawPolyline
- */
- public void drawPolygon(int[] xPoints, int[] yPoints,
- int nPoints){
- java.awt.Polygon polygon = new java.awt.Polygon(xPoints, yPoints, nPoints);
- draw(polygon);
- }
-
- /**
- * Intersects the current clip with the specified rectangle.
- * The resulting clipping area is the intersection of the current
- * clipping area and the specified rectangle. If there is no
- * current clipping area, either because the clip has never been
- * set, or the clip has been cleared using setClip(null)
,
- * the specified rectangle becomes the new clip.
- * This method sets the user clip, which is independent of the
- * clipping associated with device bounds and window visibility.
- * This method can only be used to make the current clip smaller.
- * To set the current clip larger, use any of the setClip methods.
- * Rendering operations have no effect outside of the clipping area.
- * @param x the x coordinate of the rectangle to intersect the clip with
- * @param y the y coordinate of the rectangle to intersect the clip with
- * @param width the width of the rectangle to intersect the clip with
- * @param height the height of the rectangle to intersect the clip with
- * @see #setClip(int, int, int, int)
- * @see #setClip(Shape)
- */
- public void clipRect(int x, int y, int width, int height){
- clip(new Rectangle(x, y, width, height));
- }
-
- /**
- * Sets the current clipping area to an arbitrary clip shape.
- * Not all objects that implement the Shape
- * interface can be used to set the clip. The only
- * Shape
objects that are guaranteed to be
- * supported are Shape
objects that are
- * obtained via the getClip
method and via
- * Rectangle
objects. This method sets the
- * user clip, which is independent of the clipping associated
- * with device bounds and window visibility.
- * @param clip the Shape
to use to set the clip
- * @see java.awt.Graphics#getClip()
- * @see java.awt.Graphics#clipRect
- * @see java.awt.Graphics#setClip(int, int, int, int)
- * @since JDK1.1
- */
- @NotImplemented
- public void setClip(Shape clip) {
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- }
-
- /**
- * Returns the bounding rectangle of the current clipping area.
- * This method refers to the user clip, which is independent of the
- * clipping associated with device bounds and window visibility.
- * If no clip has previously been set, or if the clip has been
- * cleared using setClip(null)
, this method returns
- * null
.
- * The coordinates in the rectangle are relative to the coordinate
- * system origin of this graphics context.
- * @return the bounding rectangle of the current clipping area,
- * or null
if no clip is set.
- * @see java.awt.Graphics#getClip
- * @see java.awt.Graphics#clipRect
- * @see java.awt.Graphics#setClip(int, int, int, int)
- * @see java.awt.Graphics#setClip(Shape)
- * @since JDK1.1
- */
- public Rectangle getClipBounds(){
- Shape c = getClip();
- if (c==null) {
- return null;
- }
- return c.getBounds();
- }
-
- /**
- * Draws the text given by the specified iterator, using this
- * graphics context's current color. The iterator has to specify a font
- * for each character. The baseline of the
- * first character is at position (x, y) in this
- * graphics context's coordinate system.
- * @param iterator the iterator whose text is to be drawn
- * @param x the x coordinate.
- * @param y the y coordinate.
- * @see java.awt.Graphics#drawBytes
- * @see java.awt.Graphics#drawChars
- */
- public void drawString(AttributedCharacterIterator iterator,
- int x, int y){
- drawString(iterator, (float)x, (float)y);
- }
-
- /**
- * Clears the specified rectangle by filling it with the background
- * color of the current drawing surface. This operation does not
- * use the current paint mode.
- * setColor
followed by fillRect
to
- * ensure that an offscreen image is cleared to a specific color.
- * @param x the x coordinate of the rectangle to clear.
- * @param y the y coordinate of the rectangle to clear.
- * @param width the width of the rectangle to clear.
- * @param height the height of the rectangle to clear.
- * @see java.awt.Graphics#fillRect(int, int, int, int)
- * @see java.awt.Graphics#drawRect
- * @see java.awt.Graphics#setColor(java.awt.Color)
- * @see java.awt.Graphics#setPaintMode
- * @see java.awt.Graphics#setXORMode(java.awt.Color)
- */
- public void clearRect(int x, int y, int width, int height) {
- Paint paint = getPaint();
- setColor(getBackground());
- fillRect(x, y, width, height);
- setPaint(paint);
- }
-
- public void copyArea(int x, int y, int width, int height, int dx, int dy) {
- }
-
- /**
- * Sets the current clip to the rectangle specified by the given
- * coordinates. This method sets the user clip, which is
- * independent of the clipping associated with device bounds
- * and window visibility.
- * Rendering operations have no effect outside of the clipping area.
- * @param x the x coordinate of the new clip rectangle.
- * @param y the y coordinate of the new clip rectangle.
- * @param width the width of the new clip rectangle.
- * @param height the height of the new clip rectangle.
- * @see java.awt.Graphics#clipRect
- * @see java.awt.Graphics#setClip(Shape)
- * @since JDK1.1
- */
- public void setClip(int x, int y, int width, int height){
- setClip(new Rectangle(x, y, width, height));
- }
-
- /**
- * Concatenates the current Graphics2D
- * Transform
with a rotation transform.
- * Subsequent rendering is rotated by the specified radians relative
- * to the previous origin.
- * This is equivalent to calling transform(R)
, where R is an
- * AffineTransform
represented by the following matrix:
- *
- * [ cos(theta) -sin(theta) 0 ]
- * [ sin(theta) cos(theta) 0 ]
- * [ 0 0 1 ]
- *
- * Rotating with a positive angle theta rotates points on the positive
- * x axis toward the positive y axis.
- * @param theta the angle of rotation in radians
- */
- public void rotate(double theta){
- _transform.rotate(theta);
- }
-
- /**
- * Concatenates the current Graphics2D
- * Transform
with a translated rotation
- * transform. Subsequent rendering is transformed by a transform
- * which is constructed by translating to the specified location,
- * rotating by the specified radians, and translating back by the same
- * amount as the original translation. This is equivalent to the
- * following sequence of calls:
- *
- * translate(x, y);
- * rotate(theta);
- * translate(-x, -y);
- *
- * Rotating with a positive angle theta rotates points on the positive
- * x axis toward the positive y axis.
- * @param theta the angle of rotation in radians
- * @param x x coordinate of the origin of the rotation
- * @param y y coordinate of the origin of the rotation
- */
- public void rotate(double theta, double x, double y){
- _transform.rotate(theta, x, y);
- }
-
- /**
- * Concatenates the current Graphics2D
- * Transform
with a shearing transform.
- * Subsequent renderings are sheared by the specified
- * multiplier relative to the previous position.
- * This is equivalent to calling transform(SH)
, where SH
- * is an AffineTransform
represented by the following
- * matrix:
- *
- * [ 1 shx 0 ]
- * [ shy 1 0 ]
- * [ 0 0 1 ]
- *
- * @param shx the multiplier by which coordinates are shifted in
- * the positive X axis direction as a function of their Y coordinate
- * @param shy the multiplier by which coordinates are shifted in
- * the positive Y axis direction as a function of their X coordinate
- */
- public void shear(double shx, double shy){
- _transform.shear(shx, shy);
- }
-
- /**
- * Get the rendering context of the Font
within this
- * Graphics2D
context.
- * The {@link FontRenderContext}
- * encapsulates application hints such as anti-aliasing and
- * fractional metrics, as well as target device specific information
- * such as dots-per-inch. This information should be provided by the
- * application when using objects that perform typographical
- * formatting, such as Font
and
- * TextLayout
. This information should also be provided
- * by applications that perform their own layout and need accurate
- * measurements of various characteristics of glyphs such as advance
- * and line height when various rendering hints have been applied to
- * the text rendering.
- *
- * @return a reference to an instance of FontRenderContext.
- * @see java.awt.font.FontRenderContext
- * @see java.awt.Font#createGlyphVector(FontRenderContext,char[])
- * @see java.awt.font.TextLayout
- * @since JDK1.2
- */
- public FontRenderContext getFontRenderContext() {
- boolean isAntiAliased = RenderingHints.VALUE_TEXT_ANTIALIAS_ON.equals(
- getRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING));
- boolean usesFractionalMetrics = RenderingHints.VALUE_FRACTIONALMETRICS_ON.equals(
- getRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS));
-
-
- return new FontRenderContext(new AffineTransform(), isAntiAliased, usesFractionalMetrics);
- }
-
- /**
- * Composes an AffineTransform
object with the
- * Transform
in this Graphics2D
according
- * to the rule last-specified-first-applied. If the current
- * Transform
is Cx, the result of composition
- * with Tx is a new Transform
Cx'. Cx' becomes the
- * current Transform
for this Graphics2D
.
- * Transforming a point p by the updated Transform
Cx' is
- * equivalent to first transforming p by Tx and then transforming
- * the result by the original Transform
Cx. In other
- * words, Cx'(p) = Cx(Tx(p)). A copy of the Tx is made, if necessary,
- * so further modifications to Tx do not affect rendering.
- * @param Tx the AffineTransform
object to be composed with
- * the current Transform
- * @see #setTransform
- * @see AffineTransform
- */
- public void transform(AffineTransform Tx) {
- _transform.concatenate(Tx);
- }
-
- /**
- * Renders a BufferedImage
that is
- * filtered with a
- * {@link BufferedImageOp}.
- * The rendering attributes applied include the Clip
,
- * Transform
- * and Composite
attributes. This is equivalent to:
- *
- * img1 = op.filter(img, null);
- * drawImage(img1, new AffineTransform(1f,0f,0f,1f,x,y), null);
- *
- * @param img the BufferedImage
to be rendered
- * @param op the filter to be applied to the image before rendering
- * @param x the x coordinate in user space where the image is rendered
- * @param y the y coordinate in user space where the image is rendered
- * @see #_transform
- * @see #setTransform
- * @see #setComposite
- * @see #clip
- * @see #setClip(Shape)
- */
- public void drawImage(BufferedImage img,
- BufferedImageOp op,
- int x,
- int y){
- img = op.filter(img, null);
- drawImage(img, x, y, null);
- }
-
- /**
- * Sets the background color for the Graphics2D
context.
- * The background color is used for clearing a region.
- * When a Graphics2D
is constructed for a
- * Component
, the background color is
- * inherited from the Component
. Setting the background color
- * in the Graphics2D
context only affects the subsequent
- * clearRect
calls and not the background color of the
- * Component
. To change the background
- * of the Component
, use appropriate methods of
- * the Component
.
- * @param color the background color that isused in
- * subsequent calls to clearRect
- * @see #getBackground
- * @see java.awt.Graphics#clearRect
- */
- public void setBackground(Color color) {
- if(color == null)
- return;
-
- _background = color;
- }
-
- /**
- * Returns the background color used for clearing a region.
- * @return the current Graphics2D
Color
,
- * which defines the background color.
- * @see #setBackground
- */
- public Color getBackground(){
- return _background;
- }
-
- /**
- * Sets the Composite
for the Graphics2D
context.
- * The Composite
is used in all drawing methods such as
- * drawImage
, drawString
, draw
,
- * and fill
. It specifies how new pixels are to be combined
- * with the existing pixels on the graphics device during the rendering
- * process.
- * Graphics2D
context is drawing to a
- * Component
on the display screen and the
- * Composite
is a custom object rather than an
- * instance of the AlphaComposite
class, and if
- * there is a security manager, its checkPermission
- * method is called with an AWTPermission("readDisplayPixels")
- * permission.
- *
- * @param comp the Composite
object to be used for rendering
- * @throws SecurityException
- * if a custom Composite
object is being
- * used to render to the screen and a security manager
- * is set and its checkPermission
method
- * does not allow the operation.
- * @see java.awt.Graphics#setXORMode
- * @see java.awt.Graphics#setPaintMode
- * @see java.awt.AlphaComposite
- */
- @NotImplemented
- public void setComposite(Composite comp){
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- }
-
- /**
- * Returns the current Composite
in the
- * Graphics2D
context.
- * @return the current Graphics2D
Composite
,
- * which defines a compositing style.
- * @see #setComposite
- */
- @NotImplemented
- public Composite getComposite(){
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- return null;
- }
-
- /**
- * Returns the value of a single preference for the rendering algorithms.
- * Hint categories include controls for rendering quality and overall
- * time/quality trade-off in the rendering process. Refer to the
- * RenderingHints
class for definitions of some common
- * keys and values.
- * @param hintKey the key corresponding to the hint to get.
- * @return an object representing the value for the specified hint key.
- * Some of the keys and their associated values are defined in the
- * RenderingHints
class.
- * @see RenderingHints
- */
- public Object getRenderingHint(RenderingHints.Key hintKey){
- return _hints.get(hintKey);
- }
-
- /**
- * Sets the value of a single preference for the rendering algorithms.
- * Hint categories include controls for rendering quality and overall
- * time/quality trade-off in the rendering process. Refer to the
- * RenderingHints
class for definitions of some common
- * keys and values.
- * @param hintKey the key of the hint to be set.
- * @param hintValue the value indicating preferences for the specified
- * hint category.
- * @see RenderingHints
- */
- public void setRenderingHint(RenderingHints.Key hintKey, Object hintValue){
- _hints.put(hintKey, hintValue);
- }
-
-
- /**
- * Renders the text of the specified
- * {@link GlyphVector} using
- * the Graphics2D
context's rendering attributes.
- * The rendering attributes applied include the Clip
,
- * Transform
, Paint
, and
- * Composite
attributes. The GlyphVector
- * specifies individual glyphs from a {@link Font}.
- * The GlyphVector
can also contain the glyph positions.
- * This is the fastest way to render a set of characters to the
- * screen.
- *
- * @param g the GlyphVector
to be rendered
- * @param x the x position in user space where the glyphs should be
- * rendered
- * @param y the y position in user space where the glyphs should be
- * rendered
- *
- * @see java.awt.Font#createGlyphVector(FontRenderContext, char[])
- * @see java.awt.font.GlyphVector
- * @see #setPaint
- * @see java.awt.Graphics#setColor
- * @see #setTransform
- * @see #setComposite
- * @see #setClip(Shape)
- */
- public void drawGlyphVector(GlyphVector g, float x, float y) {
- Shape glyphOutline = g.getOutline(x, y);
- fill(glyphOutline);
- }
-
- /**
- * Returns the device configuration associated with this
- * Graphics2D
.
- * @return the device configuration
- */
- public GraphicsConfiguration getDeviceConfiguration() {
- return GraphicsEnvironment.getLocalGraphicsEnvironment().
- getDefaultScreenDevice().getDefaultConfiguration();
- }
-
- /**
- * Sets the values of an arbitrary number of preferences for the
- * rendering algorithms.
- * Only values for the rendering hints that are present in the
- * specified Map
object are modified.
- * All other preferences not present in the specified
- * object are left unmodified.
- * Hint categories include controls for rendering quality and
- * overall time/quality trade-off in the rendering process.
- * Refer to the RenderingHints
class for definitions of
- * some common keys and values.
- * @param hints the rendering hints to be set
- * @see RenderingHints
- */
- public void addRenderingHints(Map,?> hints){
- this._hints.putAll(hints);
- }
-
- /**
- * Concatenates the current
- * Graphics2D
Transform
- * with a translation transform.
- * Subsequent rendering is translated by the specified
- * distance relative to the previous position.
- * This is equivalent to calling transform(T), where T is an
- * AffineTransform
represented by the following matrix:
- *
- * [ 1 0 tx ]
- * [ 0 1 ty ]
- * [ 0 0 1 ]
- *
- * @param tx the distance to translate along the x-axis
- * @param ty the distance to translate along the y-axis
- */
- public void translate(double tx, double ty){
- _transform.translate(tx, ty);
- }
-
- /**
- * Renders the text of the specified iterator, using the
- * Graphics2D
context's current Paint
. The
- * iterator must specify a font
- * for each character. The baseline of the
- * first character is at position (x, y) in the
- * User Space.
- * The rendering attributes applied include the Clip
,
- * Transform
, Paint
, and
- * Composite
attributes.
- * For characters in script systems such as Hebrew and Arabic,
- * the glyphs can be rendered from right to left, in which case the
- * coordinate supplied is the location of the leftmost character
- * on the baseline.
- * @param iterator the iterator whose text is to be rendered
- * @param x the x coordinate where the iterator's text is to be
- * rendered
- * @param y the y coordinate where the iterator's text is to be
- * rendered
- * @see #setPaint
- * @see java.awt.Graphics#setColor
- * @see #setTransform
- * @see #setComposite
- * @see #setClip
- */
- @NotImplemented
- public void drawString(AttributedCharacterIterator iterator, float x, float y) {
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- }
-
- /**
- * Checks whether or not the specified Shape
intersects
- * the specified {@link Rectangle}, which is in device
- * space. If onStroke
is false, this method checks
- * whether or not the interior of the specified Shape
- * intersects the specified Rectangle
. If
- * onStroke
is true
, this method checks
- * whether or not the Stroke
of the specified
- * Shape
outline intersects the specified
- * Rectangle
.
- * The rendering attributes taken into account include the
- * Clip
, Transform
, and Stroke
- * attributes.
- * @param rect the area in device space to check for a hit
- * @param s the Shape
to check for a hit
- * @param onStroke flag used to choose between testing the
- * stroked or the filled shape. If the flag is true
, the
- * Stroke
oultine is tested. If the flag is
- * false
, the filled Shape
is tested.
- * @return true
if there is a hit; false
- * otherwise.
- * @see #setStroke
- * @see #fill(Shape)
- * @see #draw(Shape)
- * @see #_transform
- * @see #setTransform
- * @see #clip
- * @see #setClip(Shape)
- */
- public boolean hit(Rectangle rect,
- Shape s,
- boolean onStroke){
- if (onStroke) {
- s = getStroke().createStrokedShape(s);
- }
-
- s = getTransform().createTransformedShape(s);
-
- return s.intersects(rect);
- }
-
- /**
- * Gets the preferences for the rendering algorithms. Hint categories
- * include controls for rendering quality and overall time/quality
- * trade-off in the rendering process.
- * Returns all of the hint key/value pairs that were ever specified in
- * one operation. Refer to the
- * RenderingHints
class for definitions of some common
- * keys and values.
- * @return a reference to an instance of RenderingHints
- * that contains the current preferences.
- * @see RenderingHints
- */
- public RenderingHints getRenderingHints(){
- return _hints;
- }
-
- /**
- * Replaces the values of all preferences for the rendering
- * algorithms with the specified hints
.
- * The existing values for all rendering hints are discarded and
- * the new set of known hints and values are initialized from the
- * specified {@link Map} object.
- * Hint categories include controls for rendering quality and
- * overall time/quality trade-off in the rendering process.
- * Refer to the RenderingHints
class for definitions of
- * some common keys and values.
- * @param hints the rendering hints to be set
- * @see RenderingHints
- */
- public void setRenderingHints(Map,?> hints){
- this._hints = new RenderingHints(null);
- this._hints.putAll(hints);
- }
-
- /**
- * Renders an image, applying a transform from image space into user space
- * before drawing.
- * The transformation from user space into device space is done with
- * the current Transform
in the Graphics2D
.
- * The specified transformation is applied to the image before the
- * transform attribute in the Graphics2D
context is applied.
- * The rendering attributes applied include the Clip
,
- * Transform
, and Composite
attributes.
- * Note that no rendering is done if the specified transform is
- * noninvertible.
- * @param img the Image
to be rendered
- * @param xform the transformation from image space into user space
- * @param obs the {@link ImageObserver}
- * to be notified as more of the Image
- * is converted
- * @return true
if the Image
is
- * fully loaded and completely rendered;
- * false
if the Image
is still being loaded.
- * @see #_transform
- * @see #setTransform
- * @see #setComposite
- * @see #clip
- * @see #setClip(Shape)
- */
- @NotImplemented
- public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs) {
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- return false;
- }
-
- /**
- * Draws as much of the specified image as has already been scaled
- * to fit inside the specified rectangle.
- * drawImage
returns false
. As more of
- * the image becomes available, the process that loads the image notifies
- * the image observer by calling its imageUpdate
method.
- * img
is null.
- * @param x the x coordinate.
- * @param y the y coordinate.
- * @param width the width of the rectangle.
- * @param height the height of the rectangle.
- * @param observer object to be notified as more of
- * the image is converted.
- * @return false
if the image pixels are still changing;
- * true
otherwise.
- * @see java.awt.Image
- * @see java.awt.image.ImageObserver
- * @see java.awt.image.ImageObserver#imageUpdate(java.awt.Image, int, int, int, int, int)
- */
- @NotImplemented
- 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");
- }
- return false;
- }
-
- /**
- * Creates a new Graphics
object that is
- * a copy of this Graphics
object.
- * @return a new graphics context that is a copy of
- * this graphics context.
- */
- public Graphics create() {
- try {
- return (Graphics)clone();
- } catch (CloneNotSupportedException e){
- throw new RuntimeException(e);
- }
- }
-
- /**
- * Gets the font metrics for the specified font.
- * @return the font metrics for the specified font.
- * @param f the specified font
- * @see java.awt.Graphics#getFont
- * @see java.awt.FontMetrics
- * @see java.awt.Graphics#getFontMetrics()
- */
- @SuppressWarnings("deprecation")
- @SuppressForbidden
- public FontMetrics getFontMetrics(Font f) {
- return Toolkit.getDefaultToolkit().getFontMetrics(f);
- }
-
- /**
- * Sets the paint mode of this graphics context to alternate between
- * this graphics context's current color and the new specified color.
- * This specifies that logical pixel operations are performed in the
- * XOR mode, which alternates pixels between the current color and
- * a specified XOR color.
- * Transform
in the Graphics2D
.
- * The specified transformation is applied to the image before the
- * transform attribute in the Graphics2D
context is applied.
- * The rendering attributes applied include the Clip
,
- * Transform
, and Composite
attributes. Note
- * that no rendering is done if the specified transform is
- * noninvertible.
- *Graphics2D
object might
- * be used in rendering the RenderableImage
.
- * If explicit control is required over specific hints recognized by a
- * specific RenderableImage
, or if knowledge of which hints
- * are used is required, then a RenderedImage
should be
- * obtained directly from the RenderableImage
- * and rendered using
- *{@link #drawRenderedImage(RenderedImage, AffineTransform) drawRenderedImage}.
- * @param img the image to be rendered. This method does
- * nothing if img
is null.
- * @param xform the transformation from image space into user space
- * @see #_transform
- * @see #setTransform
- * @see #setComposite
- * @see #clip
- * @see #setClip
- * @see #drawRenderedImage
- */
- @NotImplemented
- public void drawRenderedImage(RenderedImage img, AffineTransform xform) {
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- }
-
- /**
- * Renders a {@link RenderedImage},
- * applying a transform from image
- * space into user space before drawing.
- * The transformation from user space into device space is done with
- * the current Transform
in the Graphics2D
.
- * The specified transformation is applied to the image before the
- * transform attribute in the Graphics2D
context is applied.
- * The rendering attributes applied include the Clip
,
- * Transform
, and Composite
attributes. Note
- * that no rendering is done if the specified transform is
- * noninvertible.
- * @param img the image to be rendered. This method does
- * nothing if img
is null.
- * @param xform the transformation from image space into user space
- * @see #_transform
- * @see #setTransform
- * @see #setComposite
- * @see #clip
- * @see #setClip
- */
- @NotImplemented
- public void drawRenderableImage(RenderableImage img, AffineTransform xform) {
- if (log.check(POILogger.WARN)) {
- log.log(POILogger.WARN, "Not implemented");
- }
- }
-
- protected void applyStroke(SimpleShape,?> shape) {
- if (_stroke instanceof BasicStroke){
- BasicStroke bs = (BasicStroke)_stroke;
- shape.setStrokeStyle((double)bs.getLineWidth());
- float[] dash = bs.getDashArray();
- if (dash != null) {
- //TODO: implement more dashing styles
- shape.setStrokeStyle(StrokeStyle.LineDash.DASH);
- }
- }
- }
-
- protected void applyPaint(SimpleShape,?> shape) {
- if (_paint instanceof Color) {
- shape.setFillColor((Color)_paint);
- }
- }
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTAdjPoint2D.java b/src/java/org/apache/poi/sl/draw/binding/CTAdjPoint2D.java
deleted file mode 100644
index 98a9b1822..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTAdjPoint2D.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_AdjPoint2D">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="x" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * <attribute name="y" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_AdjPoint2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTAdjPoint2D {
-
- @XmlAttribute(required = true)
- protected String x;
- @XmlAttribute(required = true)
- protected String y;
-
- /**
- * Gets the value of the x property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getX() {
- return x;
- }
-
- /**
- * Sets the value of the x property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setX(String value) {
- this.x = value;
- }
-
- public boolean isSetX() {
- return (this.x!= null);
- }
-
- /**
- * Gets the value of the y property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getY() {
- return y;
- }
-
- /**
- * Sets the value of the y property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setY(String value) {
- this.y = value;
- }
-
- public boolean isSetY() {
- return (this.y!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTAdjustHandleList.java b/src/java/org/apache/poi/sl/draw/binding/CTAdjustHandleList.java
deleted file mode 100644
index 0ca4ce537..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTAdjustHandleList.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_AdjustHandleList">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <choice maxOccurs="unbounded" minOccurs="0">
- * <element name="ahXY" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_XYAdjustHandle"/>
- * <element name="ahPolar" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_PolarAdjustHandle"/>
- * </choice>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_AdjustHandleList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "ahXYOrAhPolar"
-})
-public class CTAdjustHandleList {
-
- @XmlElements({
- @XmlElement(name = "ahXY", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTXYAdjustHandle.class),
- @XmlElement(name = "ahPolar", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPolarAdjustHandle.class)
- })
- protected Listset
method for the ahXYOrAhPolar property.
- *
- *
- * getAhXYOrAhPolar().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_Angle">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Angle" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Angle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTAngle {
-
- @XmlAttribute(required = true)
- protected int val;
-
- /**
- * Gets the value of the val property.
- *
- */
- public int getVal() {
- return val;
- }
-
- /**
- * Sets the value of the val property.
- *
- */
- public void setVal(int value) {
- this.val = value;
- }
-
- public boolean isSetVal() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTColor.java b/src/java/org/apache/poi/sl/draw/binding/CTColor.java
deleted file mode 100644
index aa92831fe..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTColor.java
+++ /dev/null
@@ -1,237 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_Color">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorChoice"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Color", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "scrgbClr",
- "srgbClr",
- "hslClr",
- "sysClr",
- "schemeClr",
- "prstClr"
-})
-public class CTColor {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTScRgbColor scrgbClr;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTSRgbColor srgbClr;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTHslColor hslClr;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTSystemColor sysClr;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTSchemeColor schemeClr;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTPresetColor prstClr;
-
- /**
- * Gets the value of the scrgbClr property.
- *
- * @return
- * possible object is
- * {@link CTScRgbColor }
- *
- */
- public CTScRgbColor getScrgbClr() {
- return scrgbClr;
- }
-
- /**
- * Sets the value of the scrgbClr property.
- *
- * @param value
- * allowed object is
- * {@link CTScRgbColor }
- *
- */
- public void setScrgbClr(CTScRgbColor value) {
- this.scrgbClr = value;
- }
-
- public boolean isSetScrgbClr() {
- return (this.scrgbClr!= null);
- }
-
- /**
- * Gets the value of the srgbClr property.
- *
- * @return
- * possible object is
- * {@link CTSRgbColor }
- *
- */
- public CTSRgbColor getSrgbClr() {
- return srgbClr;
- }
-
- /**
- * Sets the value of the srgbClr property.
- *
- * @param value
- * allowed object is
- * {@link CTSRgbColor }
- *
- */
- public void setSrgbClr(CTSRgbColor value) {
- this.srgbClr = value;
- }
-
- public boolean isSetSrgbClr() {
- return (this.srgbClr!= null);
- }
-
- /**
- * Gets the value of the hslClr property.
- *
- * @return
- * possible object is
- * {@link CTHslColor }
- *
- */
- public CTHslColor getHslClr() {
- return hslClr;
- }
-
- /**
- * Sets the value of the hslClr property.
- *
- * @param value
- * allowed object is
- * {@link CTHslColor }
- *
- */
- public void setHslClr(CTHslColor value) {
- this.hslClr = value;
- }
-
- public boolean isSetHslClr() {
- return (this.hslClr!= null);
- }
-
- /**
- * Gets the value of the sysClr property.
- *
- * @return
- * possible object is
- * {@link CTSystemColor }
- *
- */
- public CTSystemColor getSysClr() {
- return sysClr;
- }
-
- /**
- * Sets the value of the sysClr property.
- *
- * @param value
- * allowed object is
- * {@link CTSystemColor }
- *
- */
- public void setSysClr(CTSystemColor value) {
- this.sysClr = value;
- }
-
- public boolean isSetSysClr() {
- return (this.sysClr!= null);
- }
-
- /**
- * Gets the value of the schemeClr property.
- *
- * @return
- * possible object is
- * {@link CTSchemeColor }
- *
- */
- public CTSchemeColor getSchemeClr() {
- return schemeClr;
- }
-
- /**
- * Sets the value of the schemeClr property.
- *
- * @param value
- * allowed object is
- * {@link CTSchemeColor }
- *
- */
- public void setSchemeClr(CTSchemeColor value) {
- this.schemeClr = value;
- }
-
- public boolean isSetSchemeClr() {
- return (this.schemeClr!= null);
- }
-
- /**
- * Gets the value of the prstClr property.
- *
- * @return
- * possible object is
- * {@link CTPresetColor }
- *
- */
- public CTPresetColor getPrstClr() {
- return prstClr;
- }
-
- /**
- * Sets the value of the prstClr property.
- *
- * @param value
- * allowed object is
- * {@link CTPresetColor }
- *
- */
- public void setPrstClr(CTPresetColor value) {
- this.prstClr = value;
- }
-
- public boolean isSetPrstClr() {
- return (this.prstClr!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTColorMRU.java b/src/java/org/apache/poi/sl/draw/binding/CTColorMRU.java
deleted file mode 100644
index e0d281e28..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTColorMRU.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_ColorMRU">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorChoice" maxOccurs="10" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_ColorMRU", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "egColorChoice"
-})
-public class CTColorMRU {
-
- @XmlElements({
- @XmlElement(name = "prstClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPresetColor.class),
- @XmlElement(name = "sysClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTSystemColor.class),
- @XmlElement(name = "hslClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTHslColor.class),
- @XmlElement(name = "srgbClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTSRgbColor.class),
- @XmlElement(name = "scrgbClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTScRgbColor.class),
- @XmlElement(name = "schemeClr", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTSchemeColor.class)
- })
- protected Listset
method for the egColorChoice property.
- *
- *
- * getEGColorChoice().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_ComplementTransform">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_ComplementTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTComplementTransform {
-
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTConnection.java b/src/java/org/apache/poi/sl/draw/binding/CTConnection.java
deleted file mode 100644
index 79b924fb4..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTConnection.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlSchemaType;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_Connection">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="id" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_DrawingElementId" />
- * <attribute name="idx" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Connection", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTConnection {
-
- @XmlAttribute(required = true)
- protected long id;
- @XmlAttribute(required = true)
- @XmlSchemaType(name = "unsignedInt")
- protected long idx;
-
- /**
- * Gets the value of the id property.
- *
- */
- public long getId() {
- return id;
- }
-
- /**
- * Sets the value of the id property.
- *
- */
- public void setId(long value) {
- this.id = value;
- }
-
- public boolean isSetId() {
- return true;
- }
-
- /**
- * Gets the value of the idx property.
- *
- */
- public long getIdx() {
- return idx;
- }
-
- /**
- * Sets the value of the idx property.
- *
- */
- public void setIdx(long value) {
- this.idx = value;
- }
-
- public boolean isSetIdx() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTConnectionSite.java b/src/java/org/apache/poi/sl/draw/binding/CTConnectionSite.java
deleted file mode 100644
index 061d2a1bf..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTConnectionSite.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_ConnectionSite">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="pos" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_AdjPoint2D"/>
- * </sequence>
- * <attribute name="ang" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjAngle" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_ConnectionSite", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "pos"
-})
-public class CTConnectionSite {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true)
- protected CTAdjPoint2D pos;
- @XmlAttribute(required = true)
- protected String ang;
-
- /**
- * Gets the value of the pos property.
- *
- * @return
- * possible object is
- * {@link CTAdjPoint2D }
- *
- */
- public CTAdjPoint2D getPos() {
- return pos;
- }
-
- /**
- * Sets the value of the pos property.
- *
- * @param value
- * allowed object is
- * {@link CTAdjPoint2D }
- *
- */
- public void setPos(CTAdjPoint2D value) {
- this.pos = value;
- }
-
- public boolean isSetPos() {
- return (this.pos!= null);
- }
-
- /**
- * Gets the value of the ang property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getAng() {
- return ang;
- }
-
- /**
- * Sets the value of the ang property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setAng(String value) {
- this.ang = value;
- }
-
- public boolean isSetAng() {
- return (this.ang!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTConnectionSiteList.java b/src/java/org/apache/poi/sl/draw/binding/CTConnectionSiteList.java
deleted file mode 100644
index 0ae1ee14e..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTConnectionSiteList.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_ConnectionSiteList">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="cxn" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_ConnectionSite" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_ConnectionSiteList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "cxn"
-})
-public class CTConnectionSiteList {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected Listset
method for the cxn property.
- *
- *
- * getCxn().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_CustomGeometry2D">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="avLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GeomGuideList" minOccurs="0"/>
- * <element name="gdLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GeomGuideList" minOccurs="0"/>
- * <element name="ahLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_AdjustHandleList" minOccurs="0"/>
- * <element name="cxnLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_ConnectionSiteList" minOccurs="0"/>
- * <element name="rect" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GeomRect" minOccurs="0"/>
- * <element name="pathLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DList"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_CustomGeometry2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "avLst",
- "gdLst",
- "ahLst",
- "cxnLst",
- "rect",
- "pathLst"
-})
-public class CTCustomGeometry2D {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTGeomGuideList avLst;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTGeomGuideList gdLst;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTAdjustHandleList ahLst;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTConnectionSiteList cxnLst;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTGeomRect rect;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true)
- protected CTPath2DList pathLst;
-
- /**
- * Gets the value of the avLst property.
- *
- * @return
- * possible object is
- * {@link CTGeomGuideList }
- *
- */
- public CTGeomGuideList getAvLst() {
- return avLst;
- }
-
- /**
- * Sets the value of the avLst property.
- *
- * @param value
- * allowed object is
- * {@link CTGeomGuideList }
- *
- */
- public void setAvLst(CTGeomGuideList value) {
- this.avLst = value;
- }
-
- public boolean isSetAvLst() {
- return (this.avLst!= null);
- }
-
- /**
- * Gets the value of the gdLst property.
- *
- * @return
- * possible object is
- * {@link CTGeomGuideList }
- *
- */
- public CTGeomGuideList getGdLst() {
- return gdLst;
- }
-
- /**
- * Sets the value of the gdLst property.
- *
- * @param value
- * allowed object is
- * {@link CTGeomGuideList }
- *
- */
- public void setGdLst(CTGeomGuideList value) {
- this.gdLst = value;
- }
-
- public boolean isSetGdLst() {
- return (this.gdLst!= null);
- }
-
- /**
- * Gets the value of the ahLst property.
- *
- * @return
- * possible object is
- * {@link CTAdjustHandleList }
- *
- */
- public CTAdjustHandleList getAhLst() {
- return ahLst;
- }
-
- /**
- * Sets the value of the ahLst property.
- *
- * @param value
- * allowed object is
- * {@link CTAdjustHandleList }
- *
- */
- public void setAhLst(CTAdjustHandleList value) {
- this.ahLst = value;
- }
-
- public boolean isSetAhLst() {
- return (this.ahLst!= null);
- }
-
- /**
- * Gets the value of the cxnLst property.
- *
- * @return
- * possible object is
- * {@link CTConnectionSiteList }
- *
- */
- public CTConnectionSiteList getCxnLst() {
- return cxnLst;
- }
-
- /**
- * Sets the value of the cxnLst property.
- *
- * @param value
- * allowed object is
- * {@link CTConnectionSiteList }
- *
- */
- public void setCxnLst(CTConnectionSiteList value) {
- this.cxnLst = value;
- }
-
- public boolean isSetCxnLst() {
- return (this.cxnLst!= null);
- }
-
- /**
- * Gets the value of the rect property.
- *
- * @return
- * possible object is
- * {@link CTGeomRect }
- *
- */
- public CTGeomRect getRect() {
- return rect;
- }
-
- /**
- * Sets the value of the rect property.
- *
- * @param value
- * allowed object is
- * {@link CTGeomRect }
- *
- */
- public void setRect(CTGeomRect value) {
- this.rect = value;
- }
-
- public boolean isSetRect() {
- return (this.rect!= null);
- }
-
- /**
- * Gets the value of the pathLst property.
- *
- * @return
- * possible object is
- * {@link CTPath2DList }
- *
- */
- public CTPath2DList getPathLst() {
- return pathLst;
- }
-
- /**
- * Sets the value of the pathLst property.
- *
- * @param value
- * allowed object is
- * {@link CTPath2DList }
- *
- */
- public void setPathLst(CTPath2DList value) {
- this.pathLst = value;
- }
-
- public boolean isSetPathLst() {
- return (this.pathLst!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTEmbeddedWAVAudioFile.java b/src/java/org/apache/poi/sl/draw/binding/CTEmbeddedWAVAudioFile.java
deleted file mode 100644
index 84a4f70ec..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTEmbeddedWAVAudioFile.java
+++ /dev/null
@@ -1,152 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_EmbeddedWAVAudioFile">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}embed use="required""/>
- * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
- * <attribute name="builtIn" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_EmbeddedWAVAudioFile", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTEmbeddedWAVAudioFile {
-
- @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true)
- protected String embed;
- @XmlAttribute
- protected String name;
- @XmlAttribute
- protected Boolean builtIn;
-
- /**
- * Embedded Audio File Relationship ID
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getEmbed() {
- return embed;
- }
-
- /**
- * Sets the value of the embed property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setEmbed(String value) {
- this.embed = value;
- }
-
- public boolean isSetEmbed() {
- return (this.embed!= null);
- }
-
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getName() {
- if (name == null) {
- return "";
- } else {
- return name;
- }
- }
-
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
-
- public boolean isSetName() {
- return (this.name!= null);
- }
-
- /**
- * Gets the value of the builtIn property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isBuiltIn() {
- if (builtIn == null) {
- return false;
- } else {
- return builtIn;
- }
- }
-
- /**
- * Sets the value of the builtIn property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setBuiltIn(boolean value) {
- this.builtIn = value;
- }
-
- public boolean isSetBuiltIn() {
- return (this.builtIn!= null);
- }
-
- public void unsetBuiltIn() {
- this.builtIn = null;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTFixedPercentage.java b/src/java/org/apache/poi/sl/draw/binding/CTFixedPercentage.java
deleted file mode 100644
index 676c7a876..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTFixedPercentage.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_FixedPercentage">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_FixedPercentage" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_FixedPercentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTFixedPercentage {
-
- @XmlAttribute(required = true)
- protected int val;
-
- /**
- * Gets the value of the val property.
- *
- */
- public int getVal() {
- return val;
- }
-
- /**
- * Sets the value of the val property.
- *
- */
- public void setVal(int value) {
- this.val = value;
- }
-
- public boolean isSetVal() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTGammaTransform.java b/src/java/org/apache/poi/sl/draw/binding/CTGammaTransform.java
deleted file mode 100644
index d397b1d5d..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTGammaTransform.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_GammaTransform">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_GammaTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTGammaTransform {
-
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTGeomGuide.java b/src/java/org/apache/poi/sl/draw/binding/CTGeomGuide.java
deleted file mode 100644
index c24935600..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTGeomGuide.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-
-/**
- *
- * <complexType name="CT_GeomGuide">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_GeomGuideName" />
- * <attribute name="fmla" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_GeomGuideFormula" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_GeomGuide", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTGeomGuide {
-
- @XmlAttribute(required = true)
- @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
- protected String name;
- @XmlAttribute(required = true)
- protected String fmla;
-
- /**
- * Gets the value of the name property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getName() {
- return name;
- }
-
- /**
- * Sets the value of the name property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setName(String value) {
- this.name = value;
- }
-
- public boolean isSetName() {
- return (this.name!= null);
- }
-
- /**
- * Gets the value of the fmla property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getFmla() {
- return fmla;
- }
-
- /**
- * Sets the value of the fmla property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setFmla(String value) {
- this.fmla = value;
- }
-
- public boolean isSetFmla() {
- return (this.fmla!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTGeomGuideList.java b/src/java/org/apache/poi/sl/draw/binding/CTGeomGuideList.java
deleted file mode 100644
index 96886d49b..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTGeomGuideList.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_GeomGuideList">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="gd" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GeomGuide" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_GeomGuideList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "gd"
-})
-public class CTGeomGuideList {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected Listset
method for the gd property.
- *
- *
- * getGd().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_GeomRect">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="l" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * <attribute name="t" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * <attribute name="b" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_GeomRect", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTGeomRect {
-
- @XmlAttribute(required = true)
- protected String l;
- @XmlAttribute(required = true)
- protected String t;
- @XmlAttribute(required = true)
- protected String r;
- @XmlAttribute(required = true)
- protected String b;
-
- /**
- * Gets the value of the l property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getL() {
- return l;
- }
-
- /**
- * Sets the value of the l property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setL(String value) {
- this.l = value;
- }
-
- public boolean isSetL() {
- return (this.l!= null);
- }
-
- /**
- * Gets the value of the t property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getT() {
- return t;
- }
-
- /**
- * Sets the value of the t property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setT(String value) {
- this.t = value;
- }
-
- public boolean isSetT() {
- return (this.t!= null);
- }
-
- /**
- * Gets the value of the r property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getR() {
- return r;
- }
-
- /**
- * Sets the value of the r property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setR(String value) {
- this.r = value;
- }
-
- public boolean isSetR() {
- return (this.r!= null);
- }
-
- /**
- * Gets the value of the b property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getB() {
- return b;
- }
-
- /**
- * Sets the value of the b property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setB(String value) {
- this.b = value;
- }
-
- public boolean isSetB() {
- return (this.b!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTGrayscaleTransform.java b/src/java/org/apache/poi/sl/draw/binding/CTGrayscaleTransform.java
deleted file mode 100644
index a1359273e..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTGrayscaleTransform.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_GrayscaleTransform">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_GrayscaleTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTGrayscaleTransform {
-
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTGroupTransform2D.java b/src/java/org/apache/poi/sl/draw/binding/CTGroupTransform2D.java
deleted file mode 100644
index 2dafafc88..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTGroupTransform2D.java
+++ /dev/null
@@ -1,296 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_GroupTransform2D">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="off" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Point2D" minOccurs="0"/>
- * <element name="ext" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_PositiveSize2D" minOccurs="0"/>
- * <element name="chOff" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Point2D" minOccurs="0"/>
- * <element name="chExt" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_PositiveSize2D" minOccurs="0"/>
- * </sequence>
- * <attribute name="rot" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Angle" default="0" />
- * <attribute name="flipH" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- * <attribute name="flipV" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_GroupTransform2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "off",
- "ext",
- "chOff",
- "chExt"
-})
-public class CTGroupTransform2D {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTPoint2D off;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTPositiveSize2D ext;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTPoint2D chOff;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTPositiveSize2D chExt;
- @XmlAttribute
- protected Integer rot;
- @XmlAttribute
- protected Boolean flipH;
- @XmlAttribute
- protected Boolean flipV;
-
- /**
- * Gets the value of the off property.
- *
- * @return
- * possible object is
- * {@link CTPoint2D }
- *
- */
- public CTPoint2D getOff() {
- return off;
- }
-
- /**
- * Sets the value of the off property.
- *
- * @param value
- * allowed object is
- * {@link CTPoint2D }
- *
- */
- public void setOff(CTPoint2D value) {
- this.off = value;
- }
-
- public boolean isSetOff() {
- return (this.off!= null);
- }
-
- /**
- * Gets the value of the ext property.
- *
- * @return
- * possible object is
- * {@link CTPositiveSize2D }
- *
- */
- public CTPositiveSize2D getExt() {
- return ext;
- }
-
- /**
- * Sets the value of the ext property.
- *
- * @param value
- * allowed object is
- * {@link CTPositiveSize2D }
- *
- */
- public void setExt(CTPositiveSize2D value) {
- this.ext = value;
- }
-
- public boolean isSetExt() {
- return (this.ext!= null);
- }
-
- /**
- * Gets the value of the chOff property.
- *
- * @return
- * possible object is
- * {@link CTPoint2D }
- *
- */
- public CTPoint2D getChOff() {
- return chOff;
- }
-
- /**
- * Sets the value of the chOff property.
- *
- * @param value
- * allowed object is
- * {@link CTPoint2D }
- *
- */
- public void setChOff(CTPoint2D value) {
- this.chOff = value;
- }
-
- public boolean isSetChOff() {
- return (this.chOff!= null);
- }
-
- /**
- * Gets the value of the chExt property.
- *
- * @return
- * possible object is
- * {@link CTPositiveSize2D }
- *
- */
- public CTPositiveSize2D getChExt() {
- return chExt;
- }
-
- /**
- * Sets the value of the chExt property.
- *
- * @param value
- * allowed object is
- * {@link CTPositiveSize2D }
- *
- */
- public void setChExt(CTPositiveSize2D value) {
- this.chExt = value;
- }
-
- public boolean isSetChExt() {
- return (this.chExt!= null);
- }
-
- /**
- * Gets the value of the rot property.
- *
- * @return
- * possible object is
- * {@link Integer }
- *
- */
- public int getRot() {
- if (rot == null) {
- return 0;
- } else {
- return rot;
- }
- }
-
- /**
- * Sets the value of the rot property.
- *
- * @param value
- * allowed object is
- * {@link Integer }
- *
- */
- public void setRot(int value) {
- this.rot = value;
- }
-
- public boolean isSetRot() {
- return (this.rot!= null);
- }
-
- public void unsetRot() {
- this.rot = null;
- }
-
- /**
- * Gets the value of the flipH property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isFlipH() {
- if (flipH == null) {
- return false;
- } else {
- return flipH;
- }
- }
-
- /**
- * Sets the value of the flipH property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setFlipH(boolean value) {
- this.flipH = value;
- }
-
- public boolean isSetFlipH() {
- return (this.flipH!= null);
- }
-
- public void unsetFlipH() {
- this.flipH = null;
- }
-
- /**
- * Gets the value of the flipV property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isFlipV() {
- if (flipV == null) {
- return false;
- } else {
- return flipV;
- }
- }
-
- /**
- * Sets the value of the flipV property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setFlipV(boolean value) {
- this.flipV = value;
- }
-
- public boolean isSetFlipV() {
- return (this.flipV!= null);
- }
-
- public void unsetFlipV() {
- this.flipV = null;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTHslColor.java b/src/java/org/apache/poi/sl/draw/binding/CTHslColor.java
deleted file mode 100644
index 3d9f37607..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTHslColor.java
+++ /dev/null
@@ -1,221 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElementRef;
-import javax.xml.bind.annotation.XmlElementRefs;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_HslColor">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorTransform" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * <attribute name="hue" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveFixedAngle" />
- * <attribute name="sat" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" />
- * <attribute name="lum" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_HslColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "egColorTransform"
-})
-public class CTHslColor {
-
- @XmlElementRefs({
- @XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class)
- })
- protected Listset
method for the egColorTransform property.
- *
- *
- * getEGColorTransform().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_Hyperlink">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="snd" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_EmbeddedWAVAudioFile" minOccurs="0"/>
- * <element name="extLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_OfficeArtExtensionList" minOccurs="0"/>
- * </sequence>
- * <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
- * <attribute name="invalidUrl" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
- * <attribute name="action" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
- * <attribute name="tgtFrame" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
- * <attribute name="tooltip" type="{http://www.w3.org/2001/XMLSchema}string" default="" />
- * <attribute name="history" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- * <attribute name="highlightClick" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- * <attribute name="endSnd" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Hyperlink", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "snd",
- "extLst"
-})
-public class CTHyperlink {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTEmbeddedWAVAudioFile snd;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTOfficeArtExtensionList extLst;
- @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships")
- protected String id;
- @XmlAttribute
- protected String invalidUrl;
- @XmlAttribute
- protected String action;
- @XmlAttribute
- protected String tgtFrame;
- @XmlAttribute
- protected String tooltip;
- @XmlAttribute
- protected Boolean history;
- @XmlAttribute
- protected Boolean highlightClick;
- @XmlAttribute
- protected Boolean endSnd;
-
- /**
- * Gets the value of the snd property.
- *
- * @return
- * possible object is
- * {@link CTEmbeddedWAVAudioFile }
- *
- */
- public CTEmbeddedWAVAudioFile getSnd() {
- return snd;
- }
-
- /**
- * Sets the value of the snd property.
- *
- * @param value
- * allowed object is
- * {@link CTEmbeddedWAVAudioFile }
- *
- */
- public void setSnd(CTEmbeddedWAVAudioFile value) {
- this.snd = value;
- }
-
- public boolean isSetSnd() {
- return (this.snd!= null);
- }
-
- /**
- * Gets the value of the extLst property.
- *
- * @return
- * possible object is
- * {@link CTOfficeArtExtensionList }
- *
- */
- public CTOfficeArtExtensionList getExtLst() {
- return extLst;
- }
-
- /**
- * Sets the value of the extLst property.
- *
- * @param value
- * allowed object is
- * {@link CTOfficeArtExtensionList }
- *
- */
- public void setExtLst(CTOfficeArtExtensionList value) {
- this.extLst = value;
- }
-
- public boolean isSetExtLst() {
- return (this.extLst!= null);
- }
-
- /**
- * Drawing Object Hyperlink Target
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getId() {
- return id;
- }
-
- /**
- * Sets the value of the id property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setId(String value) {
- this.id = value;
- }
-
- public boolean isSetId() {
- return (this.id!= null);
- }
-
- /**
- * Gets the value of the invalidUrl property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getInvalidUrl() {
- if (invalidUrl == null) {
- return "";
- } else {
- return invalidUrl;
- }
- }
-
- /**
- * Sets the value of the invalidUrl property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setInvalidUrl(String value) {
- this.invalidUrl = value;
- }
-
- public boolean isSetInvalidUrl() {
- return (this.invalidUrl!= null);
- }
-
- /**
- * Gets the value of the action property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getAction() {
- if (action == null) {
- return "";
- } else {
- return action;
- }
- }
-
- /**
- * Sets the value of the action property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setAction(String value) {
- this.action = value;
- }
-
- public boolean isSetAction() {
- return (this.action!= null);
- }
-
- /**
- * Gets the value of the tgtFrame property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getTgtFrame() {
- if (tgtFrame == null) {
- return "";
- } else {
- return tgtFrame;
- }
- }
-
- /**
- * Sets the value of the tgtFrame property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setTgtFrame(String value) {
- this.tgtFrame = value;
- }
-
- public boolean isSetTgtFrame() {
- return (this.tgtFrame!= null);
- }
-
- /**
- * Gets the value of the tooltip property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getTooltip() {
- if (tooltip == null) {
- return "";
- } else {
- return tooltip;
- }
- }
-
- /**
- * Sets the value of the tooltip property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setTooltip(String value) {
- this.tooltip = value;
- }
-
- public boolean isSetTooltip() {
- return (this.tooltip!= null);
- }
-
- /**
- * Gets the value of the history property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isHistory() {
- if (history == null) {
- return true;
- } else {
- return history;
- }
- }
-
- /**
- * Sets the value of the history property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setHistory(boolean value) {
- this.history = value;
- }
-
- public boolean isSetHistory() {
- return (this.history!= null);
- }
-
- public void unsetHistory() {
- this.history = null;
- }
-
- /**
- * Gets the value of the highlightClick property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isHighlightClick() {
- if (highlightClick == null) {
- return false;
- } else {
- return highlightClick;
- }
- }
-
- /**
- * Sets the value of the highlightClick property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setHighlightClick(boolean value) {
- this.highlightClick = value;
- }
-
- public boolean isSetHighlightClick() {
- return (this.highlightClick!= null);
- }
-
- public void unsetHighlightClick() {
- this.highlightClick = null;
- }
-
- /**
- * Gets the value of the endSnd property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isEndSnd() {
- if (endSnd == null) {
- return false;
- } else {
- return endSnd;
- }
- }
-
- /**
- * Sets the value of the endSnd property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setEndSnd(boolean value) {
- this.endSnd = value;
- }
-
- public boolean isSetEndSnd() {
- return (this.endSnd!= null);
- }
-
- public void unsetEndSnd() {
- this.endSnd = null;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTInverseGammaTransform.java b/src/java/org/apache/poi/sl/draw/binding/CTInverseGammaTransform.java
deleted file mode 100644
index 32c9c7a6d..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTInverseGammaTransform.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_InverseGammaTransform">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_InverseGammaTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTInverseGammaTransform {
-
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTInverseTransform.java b/src/java/org/apache/poi/sl/draw/binding/CTInverseTransform.java
deleted file mode 100644
index a4bbc8f88..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTInverseTransform.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_InverseTransform">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_InverseTransform", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTInverseTransform {
-
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTOfficeArtExtension.java b/src/java/org/apache/poi/sl/draw/binding/CTOfficeArtExtension.java
deleted file mode 100644
index 6b65ddd6c..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTOfficeArtExtension.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAnyElement;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlSchemaType;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-import org.w3c.dom.Element;
-
-
-/**
- *
- * <complexType name="CT_OfficeArtExtension">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <any processContents='lax'/>
- * </sequence>
- * <attribute name="uri" type="{http://www.w3.org/2001/XMLSchema}token" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_OfficeArtExtension", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "any"
-})
-public class CTOfficeArtExtension {
-
- @XmlAnyElement(lax = true)
- protected Object any;
- @XmlAttribute
- @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
- @XmlSchemaType(name = "token")
- protected String uri;
-
- /**
- * Gets the value of the any property.
- *
- * @return
- * possible object is
- * {@link Object }
- * {@link Element }
- *
- */
- public Object getAny() {
- return any;
- }
-
- /**
- * Sets the value of the any property.
- *
- * @param value
- * allowed object is
- * {@link Object }
- * {@link Element }
- *
- */
- public void setAny(Object value) {
- this.any = value;
- }
-
- public boolean isSetAny() {
- return (this.any!= null);
- }
-
- /**
- * Gets the value of the uri property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getUri() {
- return uri;
- }
-
- /**
- * Sets the value of the uri property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setUri(String value) {
- this.uri = value;
- }
-
- public boolean isSetUri() {
- return (this.uri!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTOfficeArtExtensionList.java b/src/java/org/apache/poi/sl/draw/binding/CTOfficeArtExtensionList.java
deleted file mode 100644
index 4dd5021ad..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTOfficeArtExtensionList.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_OfficeArtExtensionList">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_OfficeArtExtensionList"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_OfficeArtExtensionList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "ext"
-})
-public class CTOfficeArtExtensionList {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected Listset
method for the ext property.
- *
- *
- * getExt().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_Path2D">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <choice maxOccurs="unbounded" minOccurs="0">
- * <element name="close" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DClose"/>
- * <element name="moveTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DMoveTo"/>
- * <element name="lnTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DLineTo"/>
- * <element name="arcTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DArcTo"/>
- * <element name="quadBezTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DQuadBezierTo"/>
- * <element name="cubicBezTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DCubicBezierTo"/>
- * </choice>
- * <attribute name="w" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="0" />
- * <attribute name="h" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="0" />
- * <attribute name="fill" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PathFillMode" default="norm" />
- * <attribute name="stroke" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- * <attribute name="extrusionOk" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Path2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "closeOrMoveToOrLnTo"
-})
-public class CTPath2D {
-
- @XmlElements({
- @XmlElement(name = "lnTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DLineTo.class),
- @XmlElement(name = "close", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DClose.class),
- @XmlElement(name = "cubicBezTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DCubicBezierTo.class),
- @XmlElement(name = "quadBezTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DQuadBezierTo.class),
- @XmlElement(name = "arcTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DArcTo.class),
- @XmlElement(name = "moveTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = CTPath2DMoveTo.class)
- })
- protected Listset
method for the closeOrMoveToOrLnTo property.
- *
- *
- * getCloseOrMoveToOrLnTo().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_Path2DArcTo">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="wR" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * <attribute name="hR" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * <attribute name="stAng" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjAngle" />
- * <attribute name="swAng" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjAngle" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Path2DArcTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTPath2DArcTo {
-
- @XmlAttribute(name = "wR", required = true)
- protected String wr;
- @XmlAttribute(name = "hR", required = true)
- protected String hr;
- @XmlAttribute(required = true)
- protected String stAng;
- @XmlAttribute(required = true)
- protected String swAng;
-
- /**
- * Gets the value of the wr property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getWR() {
- return wr;
- }
-
- /**
- * Sets the value of the wr property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setWR(String value) {
- this.wr = value;
- }
-
- public boolean isSetWR() {
- return (this.wr!= null);
- }
-
- /**
- * Gets the value of the hr property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getHR() {
- return hr;
- }
-
- /**
- * Sets the value of the hr property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setHR(String value) {
- this.hr = value;
- }
-
- public boolean isSetHR() {
- return (this.hr!= null);
- }
-
- /**
- * Gets the value of the stAng property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getStAng() {
- return stAng;
- }
-
- /**
- * Sets the value of the stAng property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setStAng(String value) {
- this.stAng = value;
- }
-
- public boolean isSetStAng() {
- return (this.stAng!= null);
- }
-
- /**
- * Gets the value of the swAng property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getSwAng() {
- return swAng;
- }
-
- /**
- * Sets the value of the swAng property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setSwAng(String value) {
- this.swAng = value;
- }
-
- public boolean isSetSwAng() {
- return (this.swAng!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPath2DClose.java b/src/java/org/apache/poi/sl/draw/binding/CTPath2DClose.java
deleted file mode 100644
index ca9dfebdf..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPath2DClose.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_Path2DClose">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Path2DClose", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTPath2DClose {
-
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPath2DCubicBezierTo.java b/src/java/org/apache/poi/sl/draw/binding/CTPath2DCubicBezierTo.java
deleted file mode 100644
index b6042366f..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPath2DCubicBezierTo.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_Path2DCubicBezierTo">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="pt" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_AdjPoint2D" maxOccurs="3" minOccurs="3"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Path2DCubicBezierTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "pt"
-})
-public class CTPath2DCubicBezierTo {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true)
- protected Listset
method for the pt property.
- *
- *
- * getPt().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_Path2DLineTo">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="pt" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_AdjPoint2D"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Path2DLineTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "pt"
-})
-public class CTPath2DLineTo {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true)
- protected CTAdjPoint2D pt;
-
- /**
- * Gets the value of the pt property.
- *
- * @return
- * possible object is
- * {@link CTAdjPoint2D }
- *
- */
- public CTAdjPoint2D getPt() {
- return pt;
- }
-
- /**
- * Sets the value of the pt property.
- *
- * @param value
- * allowed object is
- * {@link CTAdjPoint2D }
- *
- */
- public void setPt(CTAdjPoint2D value) {
- this.pt = value;
- }
-
- public boolean isSetPt() {
- return (this.pt!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPath2DList.java b/src/java/org/apache/poi/sl/draw/binding/CTPath2DList.java
deleted file mode 100644
index 4abc906eb..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPath2DList.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_Path2DList">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="path" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2D" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Path2DList", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "path"
-})
-public class CTPath2DList {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected Listset
method for the path property.
- *
- *
- * getPath().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_Path2DMoveTo">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="pt" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_AdjPoint2D"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Path2DMoveTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "pt"
-})
-public class CTPath2DMoveTo {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true)
- protected CTAdjPoint2D pt;
-
- /**
- * Gets the value of the pt property.
- *
- * @return
- * possible object is
- * {@link CTAdjPoint2D }
- *
- */
- public CTAdjPoint2D getPt() {
- return pt;
- }
-
- /**
- * Sets the value of the pt property.
- *
- * @param value
- * allowed object is
- * {@link CTAdjPoint2D }
- *
- */
- public void setPt(CTAdjPoint2D value) {
- this.pt = value;
- }
-
- public boolean isSetPt() {
- return (this.pt!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPath2DQuadBezierTo.java b/src/java/org/apache/poi/sl/draw/binding/CTPath2DQuadBezierTo.java
deleted file mode 100644
index 06f308204..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPath2DQuadBezierTo.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_Path2DQuadBezierTo">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="pt" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_AdjPoint2D" maxOccurs="2" minOccurs="2"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Path2DQuadBezierTo", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "pt"
-})
-public class CTPath2DQuadBezierTo {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true)
- protected Listset
method for the pt property.
- *
- *
- * getPt().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_Percentage">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Percentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTPercentage {
-
- @XmlAttribute(required = true)
- protected int val;
-
- /**
- * Gets the value of the val property.
- *
- */
- public int getVal() {
- return val;
- }
-
- /**
- * Sets the value of the val property.
- *
- */
- public void setVal(int value) {
- this.val = value;
- }
-
- public boolean isSetVal() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPoint2D.java b/src/java/org/apache/poi/sl/draw/binding/CTPoint2D.java
deleted file mode 100644
index 947685ea4..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPoint2D.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_Point2D">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="x" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Coordinate" />
- * <attribute name="y" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Coordinate" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Point2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTPoint2D {
-
- @XmlAttribute(required = true)
- protected long x;
- @XmlAttribute(required = true)
- protected long y;
-
- /**
- * Gets the value of the x property.
- *
- */
- public long getX() {
- return x;
- }
-
- /**
- * Sets the value of the x property.
- *
- */
- public void setX(long value) {
- this.x = value;
- }
-
- public boolean isSetX() {
- return true;
- }
-
- /**
- * Gets the value of the y property.
- *
- */
- public long getY() {
- return y;
- }
-
- /**
- * Sets the value of the y property.
- *
- */
- public void setY(long value) {
- this.y = value;
- }
-
- public boolean isSetY() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPoint3D.java b/src/java/org/apache/poi/sl/draw/binding/CTPoint3D.java
deleted file mode 100644
index 853bcd375..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPoint3D.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_Point3D">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="x" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Coordinate" />
- * <attribute name="y" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Coordinate" />
- * <attribute name="z" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Coordinate" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Point3D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTPoint3D {
-
- @XmlAttribute(required = true)
- protected long x;
- @XmlAttribute(required = true)
- protected long y;
- @XmlAttribute(required = true)
- protected long z;
-
- /**
- * Gets the value of the x property.
- *
- */
- public long getX() {
- return x;
- }
-
- /**
- * Sets the value of the x property.
- *
- */
- public void setX(long value) {
- this.x = value;
- }
-
- public boolean isSetX() {
- return true;
- }
-
- /**
- * Gets the value of the y property.
- *
- */
- public long getY() {
- return y;
- }
-
- /**
- * Sets the value of the y property.
- *
- */
- public void setY(long value) {
- this.y = value;
- }
-
- public boolean isSetY() {
- return true;
- }
-
- /**
- * Gets the value of the z property.
- *
- */
- public long getZ() {
- return z;
- }
-
- /**
- * Sets the value of the z property.
- *
- */
- public void setZ(long value) {
- this.z = value;
- }
-
- public boolean isSetZ() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPolarAdjustHandle.java b/src/java/org/apache/poi/sl/draw/binding/CTPolarAdjustHandle.java
deleted file mode 100644
index 661fe4874..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPolarAdjustHandle.java
+++ /dev/null
@@ -1,273 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-
-/**
- *
- * <complexType name="CT_PolarAdjustHandle">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="pos" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_AdjPoint2D"/>
- * </sequence>
- * <attribute name="gdRefR" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_GeomGuideName" />
- * <attribute name="minR" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * <attribute name="maxR" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * <attribute name="gdRefAng" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_GeomGuideName" />
- * <attribute name="minAng" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjAngle" />
- * <attribute name="maxAng" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjAngle" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_PolarAdjustHandle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "pos"
-})
-public class CTPolarAdjustHandle {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true)
- protected CTAdjPoint2D pos;
- @XmlAttribute
- @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
- protected String gdRefR;
- @XmlAttribute
- protected String minR;
- @XmlAttribute
- protected String maxR;
- @XmlAttribute
- @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
- protected String gdRefAng;
- @XmlAttribute
- protected String minAng;
- @XmlAttribute
- protected String maxAng;
-
- /**
- * Gets the value of the pos property.
- *
- * @return
- * possible object is
- * {@link CTAdjPoint2D }
- *
- */
- public CTAdjPoint2D getPos() {
- return pos;
- }
-
- /**
- * Sets the value of the pos property.
- *
- * @param value
- * allowed object is
- * {@link CTAdjPoint2D }
- *
- */
- public void setPos(CTAdjPoint2D value) {
- this.pos = value;
- }
-
- public boolean isSetPos() {
- return (this.pos!= null);
- }
-
- /**
- * Gets the value of the gdRefR property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getGdRefR() {
- return gdRefR;
- }
-
- /**
- * Sets the value of the gdRefR property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setGdRefR(String value) {
- this.gdRefR = value;
- }
-
- public boolean isSetGdRefR() {
- return (this.gdRefR!= null);
- }
-
- /**
- * Gets the value of the minR property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getMinR() {
- return minR;
- }
-
- /**
- * Sets the value of the minR property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setMinR(String value) {
- this.minR = value;
- }
-
- public boolean isSetMinR() {
- return (this.minR!= null);
- }
-
- /**
- * Gets the value of the maxR property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getMaxR() {
- return maxR;
- }
-
- /**
- * Sets the value of the maxR property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setMaxR(String value) {
- this.maxR = value;
- }
-
- public boolean isSetMaxR() {
- return (this.maxR!= null);
- }
-
- /**
- * Gets the value of the gdRefAng property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getGdRefAng() {
- return gdRefAng;
- }
-
- /**
- * Sets the value of the gdRefAng property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setGdRefAng(String value) {
- this.gdRefAng = value;
- }
-
- public boolean isSetGdRefAng() {
- return (this.gdRefAng!= null);
- }
-
- /**
- * Gets the value of the minAng property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getMinAng() {
- return minAng;
- }
-
- /**
- * Sets the value of the minAng property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setMinAng(String value) {
- this.minAng = value;
- }
-
- public boolean isSetMinAng() {
- return (this.minAng!= null);
- }
-
- /**
- * Gets the value of the maxAng property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getMaxAng() {
- return maxAng;
- }
-
- /**
- * Sets the value of the maxAng property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setMaxAng(String value) {
- this.maxAng = value;
- }
-
- public boolean isSetMaxAng() {
- return (this.maxAng!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPositiveFixedAngle.java b/src/java/org/apache/poi/sl/draw/binding/CTPositiveFixedAngle.java
deleted file mode 100644
index 5c181ced0..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPositiveFixedAngle.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_PositiveFixedAngle">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveFixedAngle" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_PositiveFixedAngle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTPositiveFixedAngle {
-
- @XmlAttribute(required = true)
- protected int val;
-
- /**
- * Gets the value of the val property.
- *
- */
- public int getVal() {
- return val;
- }
-
- /**
- * Sets the value of the val property.
- *
- */
- public void setVal(int value) {
- this.val = value;
- }
-
- public boolean isSetVal() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPositiveFixedPercentage.java b/src/java/org/apache/poi/sl/draw/binding/CTPositiveFixedPercentage.java
deleted file mode 100644
index 3c60d7f1d..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPositiveFixedPercentage.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_PositiveFixedPercentage">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveFixedPercentage" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_PositiveFixedPercentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTPositiveFixedPercentage {
-
- @XmlAttribute(required = true)
- protected int val;
-
- /**
- * Gets the value of the val property.
- *
- */
- public int getVal() {
- return val;
- }
-
- /**
- * Sets the value of the val property.
- *
- */
- public void setVal(int value) {
- this.val = value;
- }
-
- public boolean isSetVal() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPositivePercentage.java b/src/java/org/apache/poi/sl/draw/binding/CTPositivePercentage.java
deleted file mode 100644
index 60961f6ac..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPositivePercentage.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_PositivePercentage">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositivePercentage" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_PositivePercentage", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTPositivePercentage {
-
- @XmlAttribute(required = true)
- protected int val;
-
- /**
- * Gets the value of the val property.
- *
- */
- public int getVal() {
- return val;
- }
-
- /**
- * Sets the value of the val property.
- *
- */
- public void setVal(int value) {
- this.val = value;
- }
-
- public boolean isSetVal() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPositiveSize2D.java b/src/java/org/apache/poi/sl/draw/binding/CTPositiveSize2D.java
deleted file mode 100644
index 7ee53eb30..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPositiveSize2D.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_PositiveSize2D">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="cx" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" />
- * <attribute name="cy" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_PositiveSize2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTPositiveSize2D {
-
- @XmlAttribute(required = true)
- protected long cx;
- @XmlAttribute(required = true)
- protected long cy;
-
- /**
- * Gets the value of the cx property.
- *
- */
- public long getCx() {
- return cx;
- }
-
- /**
- * Sets the value of the cx property.
- *
- */
- public void setCx(long value) {
- this.cx = value;
- }
-
- public boolean isSetCx() {
- return true;
- }
-
- /**
- * Gets the value of the cy property.
- *
- */
- public long getCy() {
- return cy;
- }
-
- /**
- * Sets the value of the cy property.
- *
- */
- public void setCy(long value) {
- this.cy = value;
- }
-
- public boolean isSetCy() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPresetColor.java b/src/java/org/apache/poi/sl/draw/binding/CTPresetColor.java
deleted file mode 100644
index b1bc857f5..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPresetColor.java
+++ /dev/null
@@ -1,183 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElementRef;
-import javax.xml.bind.annotation.XmlElementRefs;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_PresetColor">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorTransform" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * <attribute name="val" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PresetColorVal" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_PresetColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "egColorTransform"
-})
-public class CTPresetColor {
-
- @XmlElementRefs({
- @XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class)
- })
- protected Listset
method for the egColorTransform property.
- *
- *
- * getEGColorTransform().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_PresetGeometry2D">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="avLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GeomGuideList" minOccurs="0"/>
- * </sequence>
- * <attribute name="prst" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_ShapeType" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_PresetGeometry2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "avLst"
-})
-public class CTPresetGeometry2D {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTGeomGuideList avLst;
- @XmlAttribute(required = true)
- protected STShapeType prst;
-
- /**
- * Gets the value of the avLst property.
- *
- * @return
- * possible object is
- * {@link CTGeomGuideList }
- *
- */
- public CTGeomGuideList getAvLst() {
- return avLst;
- }
-
- /**
- * Sets the value of the avLst property.
- *
- * @param value
- * allowed object is
- * {@link CTGeomGuideList }
- *
- */
- public void setAvLst(CTGeomGuideList value) {
- this.avLst = value;
- }
-
- public boolean isSetAvLst() {
- return (this.avLst!= null);
- }
-
- /**
- * Gets the value of the prst property.
- *
- * @return
- * possible object is
- * {@link STShapeType }
- *
- */
- public STShapeType getPrst() {
- return prst;
- }
-
- /**
- * Sets the value of the prst property.
- *
- * @param value
- * allowed object is
- * {@link STShapeType }
- *
- */
- public void setPrst(STShapeType value) {
- this.prst = value;
- }
-
- public boolean isSetPrst() {
- return (this.prst!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTPresetTextShape.java b/src/java/org/apache/poi/sl/draw/binding/CTPresetTextShape.java
deleted file mode 100644
index 052a765d9..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTPresetTextShape.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_PresetTextShape">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="avLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_GeomGuideList" minOccurs="0"/>
- * </sequence>
- * <attribute name="prst" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_TextShapeType" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_PresetTextShape", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "avLst"
-})
-public class CTPresetTextShape {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTGeomGuideList avLst;
- @XmlAttribute(required = true)
- protected STTextShapeType prst;
-
- /**
- * Gets the value of the avLst property.
- *
- * @return
- * possible object is
- * {@link CTGeomGuideList }
- *
- */
- public CTGeomGuideList getAvLst() {
- return avLst;
- }
-
- /**
- * Sets the value of the avLst property.
- *
- * @param value
- * allowed object is
- * {@link CTGeomGuideList }
- *
- */
- public void setAvLst(CTGeomGuideList value) {
- this.avLst = value;
- }
-
- public boolean isSetAvLst() {
- return (this.avLst!= null);
- }
-
- /**
- * Gets the value of the prst property.
- *
- * @return
- * possible object is
- * {@link STTextShapeType }
- *
- */
- public STTextShapeType getPrst() {
- return prst;
- }
-
- /**
- * Sets the value of the prst property.
- *
- * @param value
- * allowed object is
- * {@link STTextShapeType }
- *
- */
- public void setPrst(STTextShapeType value) {
- this.prst = value;
- }
-
- public boolean isSetPrst() {
- return (this.prst!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTRatio.java b/src/java/org/apache/poi/sl/draw/binding/CTRatio.java
deleted file mode 100644
index 05df06b7a..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTRatio.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_Ratio">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="n" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
- * <attribute name="d" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Ratio", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTRatio {
-
- @XmlAttribute(required = true)
- protected long n;
- @XmlAttribute(required = true)
- protected long d;
-
- /**
- * Gets the value of the n property.
- *
- */
- public long getN() {
- return n;
- }
-
- /**
- * Sets the value of the n property.
- *
- */
- public void setN(long value) {
- this.n = value;
- }
-
- public boolean isSetN() {
- return true;
- }
-
- /**
- * Gets the value of the d property.
- *
- */
- public long getD() {
- return d;
- }
-
- /**
- * Sets the value of the d property.
- *
- */
- public void setD(long value) {
- this.d = value;
- }
-
- public boolean isSetD() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTRelativeRect.java b/src/java/org/apache/poi/sl/draw/binding/CTRelativeRect.java
deleted file mode 100644
index ed340ed2d..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTRelativeRect.java
+++ /dev/null
@@ -1,203 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_RelativeRect">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="l" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" default="0" />
- * <attribute name="t" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" default="0" />
- * <attribute name="r" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" default="0" />
- * <attribute name="b" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" default="0" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_RelativeRect", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTRelativeRect {
-
- @XmlAttribute
- protected Integer l;
- @XmlAttribute
- protected Integer t;
- @XmlAttribute
- protected Integer r;
- @XmlAttribute
- protected Integer b;
-
- /**
- * Gets the value of the l property.
- *
- * @return
- * possible object is
- * {@link Integer }
- *
- */
- public int getL() {
- if (l == null) {
- return 0;
- } else {
- return l;
- }
- }
-
- /**
- * Sets the value of the l property.
- *
- * @param value
- * allowed object is
- * {@link Integer }
- *
- */
- public void setL(int value) {
- this.l = value;
- }
-
- public boolean isSetL() {
- return (this.l!= null);
- }
-
- public void unsetL() {
- this.l = null;
- }
-
- /**
- * Gets the value of the t property.
- *
- * @return
- * possible object is
- * {@link Integer }
- *
- */
- public int getT() {
- if (t == null) {
- return 0;
- } else {
- return t;
- }
- }
-
- /**
- * Sets the value of the t property.
- *
- * @param value
- * allowed object is
- * {@link Integer }
- *
- */
- public void setT(int value) {
- this.t = value;
- }
-
- public boolean isSetT() {
- return (this.t!= null);
- }
-
- public void unsetT() {
- this.t = null;
- }
-
- /**
- * Gets the value of the r property.
- *
- * @return
- * possible object is
- * {@link Integer }
- *
- */
- public int getR() {
- if (r == null) {
- return 0;
- } else {
- return r;
- }
- }
-
- /**
- * Sets the value of the r property.
- *
- * @param value
- * allowed object is
- * {@link Integer }
- *
- */
- public void setR(int value) {
- this.r = value;
- }
-
- public boolean isSetR() {
- return (this.r!= null);
- }
-
- public void unsetR() {
- this.r = null;
- }
-
- /**
- * Gets the value of the b property.
- *
- * @return
- * possible object is
- * {@link Integer }
- *
- */
- public int getB() {
- if (b == null) {
- return 0;
- } else {
- return b;
- }
- }
-
- /**
- * Sets the value of the b property.
- *
- * @param value
- * allowed object is
- * {@link Integer }
- *
- */
- public void setB(int value) {
- this.b = value;
- }
-
- public boolean isSetB() {
- return (this.b!= null);
- }
-
- public void unsetB() {
- this.b = null;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTSRgbColor.java b/src/java/org/apache/poi/sl/draw/binding/CTSRgbColor.java
deleted file mode 100644
index be4d49b27..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTSRgbColor.java
+++ /dev/null
@@ -1,186 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElementRef;
-import javax.xml.bind.annotation.XmlElementRefs;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-
-/**
- *
- * <complexType name="CT_SRgbColor">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorTransform" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_HexBinary3" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_SRgbColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "egColorTransform"
-})
-public class CTSRgbColor {
-
- @XmlElementRefs({
- @XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class)
- })
- protected Listset
method for the egColorTransform property.
- *
- *
- * getEGColorTransform().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_ScRgbColor">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorTransform" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" />
- * <attribute name="g" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" />
- * <attribute name="b" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_ScRgbColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "egColorTransform"
-})
-public class CTScRgbColor {
-
- @XmlElementRefs({
- @XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class)
- })
- protected Listset
method for the egColorTransform property.
- *
- *
- * getEGColorTransform().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_Scale2D">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="sx" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Ratio"/>
- * <element name="sy" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Ratio"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Scale2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "sx",
- "sy"
-})
-public class CTScale2D {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true)
- protected CTRatio sx;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true)
- protected CTRatio sy;
-
- /**
- * Gets the value of the sx property.
- *
- * @return
- * possible object is
- * {@link CTRatio }
- *
- */
- public CTRatio getSx() {
- return sx;
- }
-
- /**
- * Sets the value of the sx property.
- *
- * @param value
- * allowed object is
- * {@link CTRatio }
- *
- */
- public void setSx(CTRatio value) {
- this.sx = value;
- }
-
- public boolean isSetSx() {
- return (this.sx!= null);
- }
-
- /**
- * Gets the value of the sy property.
- *
- * @return
- * possible object is
- * {@link CTRatio }
- *
- */
- public CTRatio getSy() {
- return sy;
- }
-
- /**
- * Sets the value of the sy property.
- *
- * @param value
- * allowed object is
- * {@link CTRatio }
- *
- */
- public void setSy(CTRatio value) {
- this.sy = value;
- }
-
- public boolean isSetSy() {
- return (this.sy!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTSchemeColor.java b/src/java/org/apache/poi/sl/draw/binding/CTSchemeColor.java
deleted file mode 100644
index fcafd606f..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTSchemeColor.java
+++ /dev/null
@@ -1,183 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElementRef;
-import javax.xml.bind.annotation.XmlElementRefs;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_SchemeColor">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorTransform" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_SchemeColorVal" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_SchemeColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "egColorTransform"
-})
-public class CTSchemeColor {
-
- @XmlElementRefs({
- @XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class)
- })
- protected Listset
method for the egColorTransform property.
- *
- *
- * getEGColorTransform().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_SphereCoords">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="lat" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveFixedAngle" />
- * <attribute name="lon" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveFixedAngle" />
- * <attribute name="rev" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveFixedAngle" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_SphereCoords", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTSphereCoords {
-
- @XmlAttribute(required = true)
- protected int lat;
- @XmlAttribute(required = true)
- protected int lon;
- @XmlAttribute(required = true)
- protected int rev;
-
- /**
- * Gets the value of the lat property.
- *
- */
- public int getLat() {
- return lat;
- }
-
- /**
- * Sets the value of the lat property.
- *
- */
- public void setLat(int value) {
- this.lat = value;
- }
-
- public boolean isSetLat() {
- return true;
- }
-
- /**
- * Gets the value of the lon property.
- *
- */
- public int getLon() {
- return lon;
- }
-
- /**
- * Sets the value of the lon property.
- *
- */
- public void setLon(int value) {
- this.lon = value;
- }
-
- public boolean isSetLon() {
- return true;
- }
-
- /**
- * Gets the value of the rev property.
- *
- */
- public int getRev() {
- return rev;
- }
-
- /**
- * Sets the value of the rev property.
- *
- */
- public void setRev(int value) {
- this.rev = value;
- }
-
- public boolean isSetRev() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTSystemColor.java b/src/java/org/apache/poi/sl/draw/binding/CTSystemColor.java
deleted file mode 100644
index b5657ff21..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTSystemColor.java
+++ /dev/null
@@ -1,219 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElementRef;
-import javax.xml.bind.annotation.XmlElementRefs;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-
-/**
- *
- * <complexType name="CT_SystemColor">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorTransform" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_SystemColorVal" />
- * <attribute name="lastClr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_HexBinary3" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_SystemColor", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "egColorTransform"
-})
-public class CTSystemColor {
-
- @XmlElementRefs({
- @XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
- @XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class)
- })
- protected Listset
method for the egColorTransform property.
- *
- *
- * getEGColorTransform().add(newItem);
- *
- *
- *
- *
- * <complexType name="CT_Transform2D">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="off" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Point2D" minOccurs="0"/>
- * <element name="ext" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_PositiveSize2D" minOccurs="0"/>
- * </sequence>
- * <attribute name="rot" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Angle" default="0" />
- * <attribute name="flipH" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- * <attribute name="flipV" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Transform2D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "off",
- "ext"
-})
-public class CTTransform2D {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTPoint2D off;
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
- protected CTPositiveSize2D ext;
- @XmlAttribute
- protected Integer rot;
- @XmlAttribute
- protected Boolean flipH;
- @XmlAttribute
- protected Boolean flipV;
-
- /**
- * Gets the value of the off property.
- *
- * @return
- * possible object is
- * {@link CTPoint2D }
- *
- */
- public CTPoint2D getOff() {
- return off;
- }
-
- /**
- * Sets the value of the off property.
- *
- * @param value
- * allowed object is
- * {@link CTPoint2D }
- *
- */
- public void setOff(CTPoint2D value) {
- this.off = value;
- }
-
- public boolean isSetOff() {
- return (this.off!= null);
- }
-
- /**
- * Gets the value of the ext property.
- *
- * @return
- * possible object is
- * {@link CTPositiveSize2D }
- *
- */
- public CTPositiveSize2D getExt() {
- return ext;
- }
-
- /**
- * Sets the value of the ext property.
- *
- * @param value
- * allowed object is
- * {@link CTPositiveSize2D }
- *
- */
- public void setExt(CTPositiveSize2D value) {
- this.ext = value;
- }
-
- public boolean isSetExt() {
- return (this.ext!= null);
- }
-
- /**
- * Gets the value of the rot property.
- *
- * @return
- * possible object is
- * {@link Integer }
- *
- */
- public int getRot() {
- if (rot == null) {
- return 0;
- } else {
- return rot;
- }
- }
-
- /**
- * Sets the value of the rot property.
- *
- * @param value
- * allowed object is
- * {@link Integer }
- *
- */
- public void setRot(int value) {
- this.rot = value;
- }
-
- public boolean isSetRot() {
- return (this.rot!= null);
- }
-
- public void unsetRot() {
- this.rot = null;
- }
-
- /**
- * Gets the value of the flipH property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isFlipH() {
- if (flipH == null) {
- return false;
- } else {
- return flipH;
- }
- }
-
- /**
- * Sets the value of the flipH property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setFlipH(boolean value) {
- this.flipH = value;
- }
-
- public boolean isSetFlipH() {
- return (this.flipH!= null);
- }
-
- public void unsetFlipH() {
- this.flipH = null;
- }
-
- /**
- * Gets the value of the flipV property.
- *
- * @return
- * possible object is
- * {@link Boolean }
- *
- */
- public boolean isFlipV() {
- if (flipV == null) {
- return false;
- } else {
- return flipV;
- }
- }
-
- /**
- * Sets the value of the flipV property.
- *
- * @param value
- * allowed object is
- * {@link Boolean }
- *
- */
- public void setFlipV(boolean value) {
- this.flipV = value;
- }
-
- public boolean isSetFlipV() {
- return (this.flipV!= null);
- }
-
- public void unsetFlipV() {
- this.flipV = null;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTVector3D.java b/src/java/org/apache/poi/sl/draw/binding/CTVector3D.java
deleted file mode 100644
index cd97d6bc9..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTVector3D.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- *
- * <complexType name="CT_Vector3D">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="dx" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Coordinate" />
- * <attribute name="dy" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Coordinate" />
- * <attribute name="dz" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Coordinate" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_Vector3D", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")
-public class CTVector3D {
-
- @XmlAttribute(required = true)
- protected long dx;
- @XmlAttribute(required = true)
- protected long dy;
- @XmlAttribute(required = true)
- protected long dz;
-
- /**
- * Gets the value of the dx property.
- *
- */
- public long getDx() {
- return dx;
- }
-
- /**
- * Sets the value of the dx property.
- *
- */
- public void setDx(long value) {
- this.dx = value;
- }
-
- public boolean isSetDx() {
- return true;
- }
-
- /**
- * Gets the value of the dy property.
- *
- */
- public long getDy() {
- return dy;
- }
-
- /**
- * Sets the value of the dy property.
- *
- */
- public void setDy(long value) {
- this.dy = value;
- }
-
- public boolean isSetDy() {
- return true;
- }
-
- /**
- * Gets the value of the dz property.
- *
- */
- public long getDz() {
- return dz;
- }
-
- /**
- * Sets the value of the dz property.
- *
- */
- public void setDz(long value) {
- this.dz = value;
- }
-
- public boolean isSetDz() {
- return true;
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/CTXYAdjustHandle.java b/src/java/org/apache/poi/sl/draw/binding/CTXYAdjustHandle.java
deleted file mode 100644
index 2942bb9ee..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/CTXYAdjustHandle.java
+++ /dev/null
@@ -1,273 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-
-/**
- *
- * <complexType name="CT_XYAdjustHandle">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="pos" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_AdjPoint2D"/>
- * </sequence>
- * <attribute name="gdRefX" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_GeomGuideName" />
- * <attribute name="minX" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * <attribute name="maxX" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * <attribute name="gdRefY" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_GeomGuideName" />
- * <attribute name="minY" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * <attribute name="maxY" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_AdjCoordinate" />
- * </restriction>
- * </complexContent>
- * </complexType>
- *
- *
- *
- */
-@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "CT_XYAdjustHandle", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", propOrder = {
- "pos"
-})
-public class CTXYAdjustHandle {
-
- @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", required = true)
- protected CTAdjPoint2D pos;
- @XmlAttribute
- @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
- protected String gdRefX;
- @XmlAttribute
- protected String minX;
- @XmlAttribute
- protected String maxX;
- @XmlAttribute
- @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
- protected String gdRefY;
- @XmlAttribute
- protected String minY;
- @XmlAttribute
- protected String maxY;
-
- /**
- * Gets the value of the pos property.
- *
- * @return
- * possible object is
- * {@link CTAdjPoint2D }
- *
- */
- public CTAdjPoint2D getPos() {
- return pos;
- }
-
- /**
- * Sets the value of the pos property.
- *
- * @param value
- * allowed object is
- * {@link CTAdjPoint2D }
- *
- */
- public void setPos(CTAdjPoint2D value) {
- this.pos = value;
- }
-
- public boolean isSetPos() {
- return (this.pos!= null);
- }
-
- /**
- * Gets the value of the gdRefX property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getGdRefX() {
- return gdRefX;
- }
-
- /**
- * Sets the value of the gdRefX property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setGdRefX(String value) {
- this.gdRefX = value;
- }
-
- public boolean isSetGdRefX() {
- return (this.gdRefX!= null);
- }
-
- /**
- * Gets the value of the minX property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getMinX() {
- return minX;
- }
-
- /**
- * Sets the value of the minX property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setMinX(String value) {
- this.minX = value;
- }
-
- public boolean isSetMinX() {
- return (this.minX!= null);
- }
-
- /**
- * Gets the value of the maxX property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getMaxX() {
- return maxX;
- }
-
- /**
- * Sets the value of the maxX property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setMaxX(String value) {
- this.maxX = value;
- }
-
- public boolean isSetMaxX() {
- return (this.maxX!= null);
- }
-
- /**
- * Gets the value of the gdRefY property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getGdRefY() {
- return gdRefY;
- }
-
- /**
- * Sets the value of the gdRefY property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setGdRefY(String value) {
- this.gdRefY = value;
- }
-
- public boolean isSetGdRefY() {
- return (this.gdRefY!= null);
- }
-
- /**
- * Gets the value of the minY property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getMinY() {
- return minY;
- }
-
- /**
- * Sets the value of the minY property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setMinY(String value) {
- this.minY = value;
- }
-
- public boolean isSetMinY() {
- return (this.minY!= null);
- }
-
- /**
- * Gets the value of the maxY property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getMaxY() {
- return maxY;
- }
-
- /**
- * Sets the value of the maxY property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setMaxY(String value) {
- this.maxY = value;
- }
-
- public boolean isSetMaxY() {
- return (this.maxY!= null);
- }
-
-}
diff --git a/src/java/org/apache/poi/sl/draw/binding/ObjectFactory.java b/src/java/org/apache/poi/sl/draw/binding/ObjectFactory.java
deleted file mode 100644
index 1a2e14db3..000000000
--- a/src/java/org/apache/poi/sl/draw/binding/ObjectFactory.java
+++ /dev/null
@@ -1,2023 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.sl.draw.binding;
-
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlElementDecl;
-import javax.xml.bind.annotation.XmlRegistry;
-import javax.xml.namespace.QName;
-
-
-/**
- * This object contains factory methods for each
- * Java content interface and Java element interface
- * generated in the org.apache.poi.sl.draw.binding package.
- *