Package org.apache.poi.ooxml.util
Class POIXMLUnits
java.lang.Object
org.apache.poi.ooxml.util.POIXMLUnits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longparseLength(STCoordinate coordUnion) The standard states that ST_Coordinate is read and written as either a length followed by a unit, or EMUs with no unit present.static longparseLength(STCoordinate32 coordUnion) The standard states that ST_Coordinate32 is read and written as either a length followed by a unit, or EMUs with no unit present.static longparseLength(STTextPoint coordUnion) The standard states that ST_TextPoint is read and written as a length followed by a unit or as hundredths of a point with no unit present.static longparseLength(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTwipsMeasure coordUnion) If no unit is specified, a twips-measure is a twentieth of a pointstatic longparseLength(STHpsMeasure coordUnion) If no unit is specified, a hps-measure is a half of a pointstatic longparseLength(STMeasurementOrPercent coordUnion) If no unit is specified, DXA (twentieth of a point) is assumedstatic longparseLength(STSignedHpsMeasure coordUnion) If no unit is specified, a hps-measure is a half of a pointstatic longparseLength(STSignedTwipsMeasure coordUnion) If no unit is specified, a twips-measure is a twentieth of a pointstatic booleanparseOnOff(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STOnOff onOff) static booleanparseOnOff(CTOnOff onOff) static intparsePercent(STDepthPercent pctUnion) static intparsePercent(STGapAmount pctUnion) static intparsePercent(STHoleSize pctUnion) static intparsePercent(STHPercent pctUnion) static intparsePercent(STOverlap pctUnion) static intparsePercent(STPercentage pctUnion) Office will read percentages formatted with a trailing percent sign or formatted as 1000th of a percent without a trailing percent signstatic intparsePercent(STPositiveFixedPercentage pctUnion) Office will read percentages formatted with a trailing percent sign or formatted as 1000th of a percent without a trailing percent signstatic intparsePercent(STPositivePercentage pctUnion) Office will read percentages formatted with a trailing percent sign or formatted as 1000th of a percent without a trailing percent signstatic intparsePercent(STTextBulletSizePercent pctUnion) Specifies the percentage of the text size that this bullet should be.static intOffice will read percentages formatted with a trailing percent sign or formatted as 1000th of a percent without a trailing percent signstatic intOffice will read percentages formatted with a trailing percent sign or formatted as 1000th of a percent without a trailing percent signstatic intparsePercent(STDecimalNumberOrPercent pctUnion) This type seems to be interpreted as percent value when the trailing percent sign is missing.static intparsePercent(STTextScale pctUnion) This type seems to be interpreted as percent value when the trailing percent sign is missing.
-
Constructor Details
-
POIXMLUnits
public POIXMLUnits()
-
-
Method Details
-
parsePercent
Office will read percentages formatted with a trailing percent sign or formatted as 1000th of a percent without a trailing percent sign- Returns:
- the percent scaled by 1000, so 100% = 100000
-
parsePercent
Office will read percentages formatted with a trailing percent sign or formatted as 1000th of a percent without a trailing percent sign- Returns:
- the percent scaled by 1000, so 100% = 100000
-
parsePercent
Office will read percentages formatted with a trailing percent sign or formatted as 1000th of a percent without a trailing percent sign- Returns:
- the percent scaled by 1000, so 100% = 100000
-
parsePercent
Specifies the percentage of the text size that this bullet should be. It is specified here in terms of 100% being equal to 100000 and 1% being specified in increments of 1000. This attribute should not be lower than 25%, or 25000, and not be higher than 400%, or 400000.- Returns:
- the percent scaled by 1000, so 100% = 100000
-
parsePercent
Office will read percentages formatted with a trailing percent sign or formatted as 1000th of a percent without a trailing percent sign- Returns:
- the percent scaled by 1000, so 100% = 100000
-
parsePercent
Office will read percentages formatted with a trailing percent sign or formatted as 1000th of a percent without a trailing percent sign- Returns:
- the percent scaled by 1000, so 100% = 100000
-
parsePercent
This type seems to be interpreted as percent value when the trailing percent sign is missing.sample snippet from settings.xml
<w:zoom w:percent="50" />- Returns:
- the percent scaled by 1000, so 100% = 100000
-
parsePercent
This type seems to be interpreted as percent value when the trailing percent sign is missing.sample snippet from settings.xml
<w:textscale w:w="50" />- Returns:
- the percent scaled by 1000, so 100% = 100000
-
parsePercent
-
parsePercent
-
parsePercent
-
parsePercent
-
parsePercent
-
parseLength
The standard states that ST_Coordinate32 is read and written as either a length followed by a unit, or EMUs with no unit present.- Returns:
- length in EMUs
-
parseLength
The standard states that ST_Coordinate is read and written as either a length followed by a unit, or EMUs with no unit present.- Returns:
- length in EMUs
-
parseLength
The standard states that ST_TextPoint is read and written as a length followed by a unit or as hundredths of a point with no unit present.- Returns:
- length in EMUs
-
parseLength
If no unit is specified, a twips-measure is a twentieth of a point- Returns:
- length in EMUs
-
parseLength
If no unit is specified, a hps-measure is a half of a point- Returns:
- length in EMUs
-
parseLength
If no unit is specified, a hps-measure is a half of a point- Returns:
- length in EMUs
-
parseLength
If no unit is specified, DXA (twentieth of a point) is assumed- Returns:
- length in EMUs
-
parseOnOff
-