public class ObjectChoice extends Object implements OOXMLElement
| Constructor and Description |
|---|
ObjectChoice() |
ObjectChoice(CxnSp c,
GraphicFrame g,
GrpSp grp,
Pic p,
Sp s) |
ObjectChoice(ObjectChoice oc) |
| Modifier and Type | Method and Description |
|---|---|
OOXMLElement |
cloneElement() |
String |
getChartRId()
return the rid of the chart element, if exists
|
String |
getDescr()
get cNvPr descr attribute
|
String |
getEmbed()
return the rid for the embedded object (picture or picture shape) (i.e.
|
int |
getId()
return the cNvPr id for this element
|
String |
getLink()
return the id for the linked picture (i.e.
|
String |
getMacro()
get macro attribute (valid for cnxSp, sp and graphicFrame)
|
String |
getName()
get cNvPr name attribute
|
Object |
getObject()
return the actual object associated with this ObjectChoice
|
String |
getOOXML() |
SpPr |
getSppr()
utility to return the shape properties element for this picture
should be depreciated when OOXML is completely distinct from BIFF8
|
String |
getURI()
get the URI associated with this graphic Data
|
boolean |
hasChart()
return if this Object Choice element refers to a chart as opposed to a shape or image
|
boolean |
hasImage()
return if this Object Choice refers to an image rather than a chart or shape
|
boolean |
hasShape()
return if this Object Choice refers to a shape, as opposed a chart or an image
|
static OOXMLElement |
parseOOXML(org.xmlpull.v1.XmlPullParser xpp,
Stack<String> lastTag,
WorkBookHandle bk) |
void |
setChartRId(String rId)
set the rid for this chart (resides within the file)
|
void |
setDescr(String descr)
set cNvPr description attribute
sometimes associated with shape name
|
void |
setEmbed(String embed)
set the rid for this object (picture or picture shape) (resides within the file)
|
void |
setId(int id)
set the cNvPr id for this element
|
void |
setLink(String link)
set the link attribute for this blip (the id for the linked picture)
|
void |
setMacro(String macro)
set Macro attribute (valid for cnxSp, sp and graphicFrame)
sometimes associated with shape name
|
void |
setName(String name)
set cNvPr name attribute
|
void |
setObject(Object o)
set the object associated with this ObjectChoice
|
void |
setURI(String uri)
set the URI associated with this graphic data
|
public ObjectChoice()
public ObjectChoice(CxnSp c, GraphicFrame g, GrpSp grp, Pic p, Sp s)
public ObjectChoice(ObjectChoice oc)
public static OOXMLElement parseOOXML(org.xmlpull.v1.XmlPullParser xpp, Stack<String> lastTag, WorkBookHandle bk)
public String getOOXML()
getOOXML in interface OOXMLElementOOXMLElement.getOOXML()public OOXMLElement cloneElement()
cloneElement in interface OOXMLElementOOXMLElement.cloneElement()public boolean hasImage()
public boolean hasShape()
public boolean hasChart()
public String getName()
public void setName(String name)
name - public String getDescr()
public void setDescr(String descr)
descr - public String getMacro()
public void setMacro(String macro)
descr - public String getURI()
public void setURI(String uri)
uri - public String getEmbed()
public String getLink()
public void setEmbed(String embed)
embed - public void setChartRId(String rId)
rId - public void setLink(String link)
link - public String getChartRId()
public void setId(int id)
id - public int getId()
public SpPr getSppr()
public Object getObject()
public void setObject(Object o)
o - Copyright © 2002–2019 Starter Inc.. All rights reserved.