Package org.apache.poi.xdgf.usermodel
Class XDGFCell
java.lang.Object
org.apache.poi.xdgf.usermodel.XDGFCell
There are a lot of different cell types. Cell is really just an attribute of
the thing that it's attached to. Will probably refactor this once I figure
out a better way to use them
The various attributes of a Cell are constrained, and are better defined in
the XSD 1.1 visio schema
Values of a cell are often the result of a formula computation. Luckily for
you, Visio seems to always write the result to the document file, so unless
the values change we don't need to recompute the values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()
Represents the element's formula.getName()
Represents the name of the ShapeSheet cell.getValue()
Represents the value of the cell.protected com.microsoft.schemas.office.visio.x2012.main.CellType
static Boolean
maybeGetBoolean
(Map<String, XDGFCell> cells, String name) static Double
maybeGetDouble
(Map<String, XDGFCell> cells, String name) static Integer
maybeGetInteger
(Map<String, XDGFCell> cells, String name) static String
maybeGetString
(Map<String, XDGFCell> cells, String name) static Double
parseDoubleValue
(com.microsoft.schemas.office.visio.x2012.main.CellType cell) static Integer
parseIntegerValue
(com.microsoft.schemas.office.visio.x2012.main.CellType cell) static Double
parseVLength
(com.microsoft.schemas.office.visio.x2012.main.CellType cell)
-
Constructor Details
-
XDGFCell
public XDGFCell(com.microsoft.schemas.office.visio.x2012.main.CellType cell)
-
-
Method Details
-
maybeGetBoolean
-
maybeGetDouble
-
maybeGetInteger
-
maybeGetString
-
parseDoubleValue
-
parseIntegerValue
public static Integer parseIntegerValue(com.microsoft.schemas.office.visio.x2012.main.CellType cell) -
parseVLength
- Parameters:
cell
- The type of the cell- Returns:
- A value converted to inches
-
getXmlObject
-
getName
Represents the name of the ShapeSheet cell. -
getValue
Represents the value of the cell. -
getFormula
Represents the element's formula. This attribute can contain one of the following strings: - '(some formula)' if the formula exists locally - No Formula if the formula is locally deleted or blocked - Inh if the formula is inherited. -
getError
-