public class XUtils
extends java.lang.Object
Constructor and Description |
---|
XUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
defaultColumnWidthToPx(int columnWidth,
int charWidth)
Convert default columns character width to pixel
|
static int |
fileChar256ToPx(int char256,
int charWidth)
convert file 1/256 character width to pixel
|
static boolean |
isTitleIndexMode(Spreadsheet ss)
Returns whether the
Spreadsheet title is in index mode |
static java.lang.String |
nextUpdateId() |
static int |
pointToPx(int point)
convert point to pixel
|
static int |
pointToTwip(int px)
convert point to twip (1/20 point)
|
static int |
pxToFileChar256(int px,
int charWidth)
convert pixel to file 1/256 character width
|
static int |
pxToPoint(int px)
convert pixel to point
|
static double |
pxToScreenChar1(int px,
int charWidth)
Convert pixel to character width (for application)
|
static int |
pxToScreenChar256(int px,
int charWidth)
Convert pixel to 1/256 character width
|
static int |
pxToTwip(int px)
convert pixel to twip (1/20 point)
|
static int |
screenChar1ToPx(double w,
int charWidth)
convert character width to pixel
|
static int |
screenChar256ToPx(int char256,
int charWidth)
convert 1/256 character width to pixel
|
static int |
twipToPoint(int twip)
convert twip (1/20 point) to point
|
static int |
twipToPx(int twip)
convert twip (1/20 point) to pixel
|
public static java.lang.String nextUpdateId()
public static boolean isTitleIndexMode(Spreadsheet ss)
Spreadsheet
title is in index modess
- the Spreadsheet
Spreadsheet
title is in index modepublic static int pxToPoint(int px)
public static int pointToPx(int point)
public static int pxToTwip(int px)
public static int twipToPx(int twip)
public static int pointToTwip(int px)
public static int twipToPoint(int twip)
public static int fileChar256ToPx(int char256, int charWidth)
public static int pxToFileChar256(int px, int charWidth)
public static int screenChar256ToPx(int char256, int charWidth)
public static int pxToScreenChar256(int px, int charWidth)
public static int screenChar1ToPx(double w, int charWidth)
public static double pxToScreenChar1(int px, int charWidth)
public static int defaultColumnWidthToPx(int columnWidth, int charWidth)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.