public class OneCellAnchor extends Object implements OOXMLElement
| Modifier and Type | Field and Description |
|---|---|
static short |
EMU |
| Constructor and Description |
|---|
OneCellAnchor(io.starter.formats.OOXML.From f,
Ext e,
ObjectChoice o) |
OneCellAnchor(OneCellAnchor oca) |
| Modifier and Type | Method and Description |
|---|---|
OOXMLElement |
cloneElement() |
short[] |
getBounds()
return the bounds of this object
bounds represent: COL, COLOFFSET, ROW, ROWOFFST
|
String |
getDescr()
get cNvPr descr attribute
|
String |
getEmbed()
return the id for the embedded picture, shape or chart (i.e.
|
String |
getLink()
return the id for the linked object (i.e.
|
String |
getMacro()
get macro attribute
|
String |
getName()
get cNvPr name attribute
|
String |
getOOXML() |
SpPr |
getSppr()
utility to return the shape properties element (picture element only)
should be depreciated when OOXML is moved into ImageHandle
|
String |
getURI()
get the URI associated with this graphic Data
|
boolean |
hasChart()
return if this oneCellAnchor element refers to a chart as opposed to a shape or image
|
boolean |
hasImage()
return if this oneCellAnchor element refers to an image rather than a chart or shape
|
boolean |
hasShape()
return if this oneCellAnchor element 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 |
setAsChart(int rid,
String name,
int[] bounds)
set this oneCellAnchor as a chart element
|
void |
setAsImage(String rid,
String name,
String id)
set this oneCellAnchor as an image
|
void |
setBounds(int[] bounds)
set the bounds of this object
bounds represent: COL, COLOFFSET, ROW, ROWOFFST
|
void |
setDescr(String descr)
set cNvPr descr attribute
sometimes associated with shape name
|
void |
setEmbed(String embed)
set the embed or rId attribute for the embedded picture, shape or chart (i.e.
|
void |
setLink(String link)
set the link attribute for this blip (the id for the linked picture)
|
void |
setMacro(String macro)
set Macro attribute
sometimes associated with shape name
|
void |
setName(String name)
set cNvPr name attribute
|
void |
setURI(String uri)
set the URI associated with this graphic data
|
public static final short EMU
public OneCellAnchor(io.starter.formats.OOXML.From f,
Ext e,
ObjectChoice o)
public OneCellAnchor(OneCellAnchor oca)
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 short[] getBounds()
public void setBounds(int[] bounds)
bounds - short[4]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 setLink(String link)
embed - public boolean hasImage()
public SpPr getSppr()
public boolean hasChart()
public boolean hasShape()
public void setAsChart(int rid,
String name,
int[] bounds)
rid - name - bounds - Copyright © 2002–2019 Starter Inc.. All rights reserved.