public class SpPr extends Object implements OOXMLElement
| Constructor and Description |
|---|
SpPr(SpPr clone) |
SpPr(String ns) |
SpPr(String ns,
String solidfill,
int w,
String lnClr)
create a default shape property with a solid fill and a line
|
SpPr(io.starter.formats.OOXML.Xfrm x,
GeomGroup geom,
FillGroup fill,
Ln l,
EffectPropsGroup effect,
String bwMode,
String ns) |
| Modifier and Type | Method and Description |
|---|---|
OOXMLElement |
cloneElement() |
int |
getColor()
return the fill color
|
String |
getEmbed()
return the id for the embedded picture (i.e.
|
FillGroup |
getFill()
returns the fill of this shape property set, if any
|
int |
getLineColor()
returns the color of the line of this shape property, or -1 if no line is present
|
int |
getLineStyle()
returns the line style of the line of this shape property, or -1 if no line is present
|
int |
getLineWidth()
returns the width of the line of this shape proeprty,
or -1 if no line is present
|
String |
getLink()
return the id for the linked picture (i.e.
|
Ln |
getLn()
returns the ln element of this shape property set, if any
|
String |
getOOXML() |
boolean |
hasLine()
return true if this shape properties contains a line
|
static OOXMLElement |
parseOOXML(org.xmlpull.v1.XmlPullParser xpp,
Stack<String> lastTag,
WorkBookHandle bk)
parse shape OOXML element spPr
|
void |
removeLine()
remove the line, if any, for this shape property
|
void |
setEmbed(String embed)
set the embed attribute for this blip (the id for the embedded picture)
|
void |
setLine(int w,
String clr)
add a line for this shape property
|
void |
setLink(String link)
set the link attribute for this blip (the id for the linked picture)
|
void |
setNS(String ns)
set the namespace for spPr element
|
public SpPr(String ns)
public SpPr(io.starter.formats.OOXML.Xfrm x,
GeomGroup geom,
FillGroup fill,
Ln l,
EffectPropsGroup effect,
String bwMode,
String ns)
public SpPr(SpPr clone)
public void setNS(String ns)
ns - public static OOXMLElement parseOOXML(org.xmlpull.v1.XmlPullParser xpp, Stack<String> lastTag, WorkBookHandle bk)
xpp - XmlPullParserlastTag - element stackpublic String getOOXML()
getOOXML in interface OOXMLElementOOXMLElement.getOOXML()public OOXMLElement cloneElement()
cloneElement in interface OOXMLElementOOXMLElement.cloneElement()public String getEmbed()
public String getLink()
public void setEmbed(String embed)
embed - public void setLink(String link)
embed - public Ln getLn()
public void setLine(int w,
String clr)
w - line widthclr - html color stringpublic int getLineWidth()
public int getLineColor()
public int getLineStyle()
public int getColor()
public FillGroup getFill()
public void removeLine()
public boolean hasLine()
Copyright © 2002–2019 Starter Inc.. All rights reserved.