| Modifier and Type | Field and Description |
|---|---|
| public static final float | DEFAULT_CHARACTER_WIDTH
Width of one "standard character" of the default font in pixels. |
| public static final int | |
| public static final int | EMU_PER_CHARACTER
Column widths are in fractional characters, this is the EMU equivalent. |
| public static final int | EMU_PER_DXA
EMU_PER_POINT/20 |
| public static final int | EMU_PER_INCH
72 points per inch (dpi) |
| public static final int | EMU_PER_PIXEL
In Escher absolute distances are specified in English Metric Units (EMUs), occasionally referred to as A units; there are 360000 EMUs per centimeter, 914400 EMUs per inch, 12700 EMUs per point. |
| public static final int | |
| public static final int | MASTER_DPI
Master DPI (576 pixels per inch). |
| public static final int | PIXEL_DPI
Pixels DPI (96 pixels per inch) |
| public static final int | POINT_DPI
Points DPI (72 pixels per inch) |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static int | Returns: equivalent EMUsspecified in 256ths of a standard character columnWidth)
|
| public static int | Returns: fixedPoint value in fixed points notationvalue in floating point notation floatPoint)Converts a value of type floating point to a FixedPoint |
| public static double | Returns: floating point (double)value in fixed point notation fixedPoint)Converts a value of type FixedPoint to a floating point |
| public static double | |
| public static int | |
| public static double | |
| public static Dimension2D | |
| public static Rectangle2D | |
| public static int | |
| public static int | |
| public static Dimension2D | |
| public static Rectangle2D | |
| public static double | |
| public static int | |
| public static double |
| DEFAULT_CHARACTER_WIDTH | back to summary |
|---|---|
| public static final float DEFAULT_CHARACTER_WIDTH Width of one "standard character" of the default font in pixels. Same for Calibri and Arial. "Standard character" defined as the widest digit character in the given font. Copied from XSSFWorkbook, since that isn't available here. Note this is only valid for workbooks using the default Excel font. Would be nice to eventually support arbitrary document default fonts. | |
| EMU_PER_CENTIMETER | back to summary |
|---|---|
| public static final int EMU_PER_CENTIMETER | |
| EMU_PER_CHARACTER | back to summary |
|---|---|
| public static final int EMU_PER_CHARACTER Column widths are in fractional characters, this is the EMU equivalent. One character is defined as the widest value for the integers 0-9 in the default font. | |
| EMU_PER_DXA | back to summary |
|---|---|
| public static final int EMU_PER_DXA EMU_PER_POINT/20 | |
| EMU_PER_INCH | back to summary |
|---|---|
| public static final int EMU_PER_INCH 72 points per inch (dpi) | |
| EMU_PER_PIXEL | back to summary |
|---|---|
| public static final int EMU_PER_PIXEL In Escher absolute distances are specified in English Metric Units (EMUs), occasionally referred to as A units; there are 360000 EMUs per centimeter, 914400 EMUs per inch, 12700 EMUs per point. | |
| EMU_PER_POINT | back to summary |
|---|---|
| public static final int EMU_PER_POINT | |
| MASTER_DPI | back to summary |
|---|---|
| public static final int MASTER_DPI Master DPI (576 pixels per inch). Used by the reference coordinate system in PowerPoint (HSLF) | |
| PIXEL_DPI | back to summary |
|---|---|
| public static final int PIXEL_DPI Pixels DPI (96 pixels per inch) | |
| POINT_DPI | back to summary |
|---|---|
| public static final int POINT_DPI Points DPI (72 pixels per inch) | |
| Units | back to summary |
|---|---|
| public Units() | |
| charactersToEMU | back to summary |
|---|---|
| public static int charactersToEMU(double characters) | |
| columnWidthToEMU | back to summary |
|---|---|
public static int columnWidthToEMU(int columnWidth)
| |
| doubleToFixedPoint | back to summary |
|---|---|
| public static int doubleToFixedPoint(double floatPoint) Converts a value of type floating point to a FixedPoint
| |
| fixedPointToDouble | back to summary |
|---|---|
| public static double fixedPointToDouble(int fixedPoint) Converts a value of type FixedPoint to a floating point
| |
| masterToPoints | back to summary |
|---|---|
| public static double masterToPoints(int masterDPI) | |
| pixelToEMU | back to summary |
|---|---|
| public static int pixelToEMU(int pixels) Converts pixels to EMUs
| |
| pixelToPoints | back to summary |
|---|---|
| public static double pixelToPoints(double pixel) | |
| pixelToPoints | back to summary |
|---|---|
| public static Dimension2D pixelToPoints(Dimension2D pointsDim) | |
| pixelToPoints | back to summary |
|---|---|
| public static Rectangle2D pixelToPoints(Rectangle2D pointsDim) | |
| pointsToMaster | back to summary |
|---|---|
| public static int pointsToMaster(double points) | |
| pointsToPixel | back to summary |
|---|---|
| public static int pointsToPixel(double points) | |
| pointsToPixel | back to summary |
|---|---|
| public static Dimension2D pointsToPixel(Dimension2D pointsDim) | |
| pointsToPixel | back to summary |
|---|---|
| public static Rectangle2D pointsToPixel(Rectangle2D pointsDim) | |
| toDXA | back to summary |
|---|---|
| public static double toDXA(long emu) | |
| toEMU | back to summary |
|---|---|
| public static int toEMU(double points) Converts points to EMUs
| |
| toPoints | back to summary |
|---|---|
| public static double toPoints(long emu) Converts EMUs to points
| |