aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2015-10-31 23:10:43 +0000
committerAndreas Beeker <kiwiwings@apache.org>2015-10-31 23:10:43 +0000
commit785b37342e59e830aa70340045179c10573b61db (patch)
treef534a63d61c8ca9373fed94b61bef486a49130cc /src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java
parentf91f9120c222867574050ac59fe3f737951d026f (diff)
downloadpoi-785b37342e59e830aa70340045179c10573b61db.tar.gz
poi-785b37342e59e830aa70340045179c10573b61db.zip
Add method for setting bullet styles
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711707 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java')
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java
index cc12a63426..31df98787a 100644
--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java
+++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java
@@ -985,4 +985,26 @@ public class XSLFTextParagraph implements TextParagraph<XSLFShape,XSLFTextParagr
};
}
+
+ @Override
+ public void setBulletStyle(Object... styles) {
+ if (styles.length == 0) {
+ setBullet(false);
+ } else {
+ setBullet(true);
+ for (Object ostyle : styles) {
+ if (ostyle instanceof Number) {
+ setBulletFontSize(((Number)ostyle).doubleValue());
+ } else if (ostyle instanceof Color) {
+ setBulletFontColor((Color)ostyle);
+ } else if (ostyle instanceof Character) {
+ setBulletCharacter(ostyle.toString());
+ } else if (ostyle instanceof String) {
+ setBulletFont((String)ostyle);
+ } else if (ostyle instanceof AutoNumberingScheme) {
+ setBulletAutoNumber((AutoNumberingScheme)ostyle, 0);
+ }
+ }
+ }
+ }
}