public class TwoCellAnchor extends Object implements OOXMLElement
| Modifier and Type | Field and Description |
|---|---|
static short |
EMU |
| Constructor and Description |
|---|
TwoCellAnchor(String editAs) |
TwoCellAnchor(String editAs,
io.starter.formats.OOXML.From f,
io.starter.formats.OOXML.To t,
ObjectChoice o) |
TwoCellAnchor(TwoCellAnchor tce) |
| Modifier and Type | Method and Description |
|---|---|
OOXMLElement |
cloneElement() |
static int[] |
convertBoundsFromBIFF8(Boundsheet sheet,
short[] bbounds)
given bounds[8] in BIFF 8 coordinates and convert to OOXML units
mostly this means adjusting ROWOFFSET 0 & 1 (bounds[5] & bounds[7]
and COLOFFSET 0 & 1 (bounds[1] & bounds[5] to EMU units +
adjust according to emperical calc garnered from observation
|
static short[] |
convertBoundsToBIFF8(Boundsheet sheet,
int[] bounds)
convert bounds[8] from OOXML to BIFF8 Units
basically must adjust COLOFFSETs and ROWOFFSETs to BIFF8 units
|
int[] |
getBounds()
return the (to, from) bounds of this object
by concatenating the bounds for the to and the from
bounds represent: COL, COLOFFSET, ROW, ROWOFFST, COL1, COLOFFSET1, ROW1, ROWOFFSET1
|
String |
getChartRId()
return the rid for the chart defined by this twocellanchor
|
String |
getDescr()
get cNvPr descr attribute
|
String |
getEditAs()
return the editAs editMovement attribute
|
String |
getEmbed()
return the id for the embedded picture or shape (i.e.
|
String |
getEmbedFilename()
return the Embedded Object's filename as saved on disk
|
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 completely distinct from BIFF8
|
String |
getURI()
get the URI associated with this graphic Data
|
boolean |
hasChart()
return if this twoCellAnchor element refers to a chart as opposed to a shape or image
|
boolean |
hasImage()
return if this twoCellAnchor element refers to an image rather than a chart or shape
|
boolean |
hasShape()
return if this twoCellAnchor 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 twoCellAnchor as a chart element
used for
|
void |
setAsImage(int rid,
String name,
String descr,
int spid,
SpPr sp)
set this twoCellAnchor as an image
|
void |
setBounds(int[] bounds)
set the (to, from) bounds of this object
bounds represent: COL, COLOFFSET, ROW, ROWOFFST, COL1, COLOFFSET1, ROW1, ROWOFFSET1
NOTE: COL
|
void |
setChartRId(String rId) |
void |
setDescr(String descr)
set cNvPr descr attribute
sometimes associated with shape name
|
void |
setEditAs(String editAs)
set the editAs editMovement attribute
|
void |
setEmbed(String embed)
set the embed for the embedded picture or shape (i.e.
|
void |
setEmbedFilename(String embedFile)
set the Embedded Object's filename as saved on disk
|
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
|
String |
toString() |
public static final short EMU
public TwoCellAnchor(String editAs)
public TwoCellAnchor(String editAs, io.starter.formats.OOXML.From f, io.starter.formats.OOXML.To t, ObjectChoice o)
public TwoCellAnchor(TwoCellAnchor tce)
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 int[] getBounds()
public void setBounds(int[] bounds)
bounds - int[8] from [4] and to [4]public String getName()
public boolean hasImage()
public boolean hasChart()
public boolean hasShape()
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 getChartRId()
public void setChartRId(String rId)
public String getEmbed()
public void setEmbed(String embed)
embed - public String getEmbedFilename()
public void setEmbedFilename(String embedFile)
embed - public String getLink()
public void setLink(String link)
embed - public String getEditAs()
public void setEditAs(String editAs)
public SpPr getSppr()
public void setAsChart(int rid,
String name,
int[] bounds)
rid - name - bounds - public void setAsImage(int rid,
String name,
String descr,
int spid,
SpPr sp)
rid - name - id - public static int[] convertBoundsFromBIFF8(Boundsheet sheet, short[] bbounds)
sheet - bbounds - short[] bounds in BIFF8 unitspublic static short[] convertBoundsToBIFF8(Boundsheet sheet, int[] bounds)
sheet - bounds - int[]Copyright © 2002–2019 Starter Inc.. All rights reserved.