public class GridUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
DRAG_CELL_SIZE |
static int |
DRAG_CELLSELECTION |
static int |
DRAG_CELLSELECTION_BOTTOMRIGHT_CORNER |
static int |
DRAG_FLOAT |
static int |
DRAG_NONE |
static int |
DRAG_SELECT_UNITS |
限定符和类型 | 方法和说明 |
---|---|
static ElementsTransferable |
caculateElementsTransferable(ElementCasePane reportPane)
peter: 从ReportPane选中的区域产生ElementsCopy
|
static double[] |
caculateFloatElementLocations_withresolution(FloatElement floatElement,
DynamicUnitList columnWidthList,
DynamicUnitList rowHeightList,
int verticalValue,
int horizentalValue,
int resolution) |
static double[] |
caculateFloatElementLocations(FloatElement floatElement,
DynamicUnitList columnWidthList,
DynamicUnitList rowHeightList,
int verticalValue,
int horizentalValue)
Gets float element locations.
|
static boolean |
canMove(ElementCasePane reportPane,
int cellColumn,
int cellRow)
是否可将当前单元格变为可见的格子
|
static void |
doSelectCell(ElementCasePane reportPane,
int cellColumn,
int cellRow)
选择一个Cell, 支持Merge.
|
static java.lang.Object[] |
getAboveFloatElementCursor(ElementCasePane reportPane,
double evtX,
double evtY)
Is above float element.
|
static ColumnRow |
getAdjustEventColumnRow_withresolution(ElementCasePane reportPane,
double evtX,
double evtY,
int resolution) |
static ColumnRow |
getAdjustEventColumnRow(ElementCasePane reportPane,
double evtX,
double evtY)
Gets column and row which located on (evtX, evtY)
peter:这个方法是调整过的Column,Row,不能小于0, 不能大于最大值,这个方法充分考虑了不无限增大的情况.
|
static ColumnRow |
getAdjustLastColumnRowOfReportPane(ElementCasePane reportPane)
james: Gets adjust last columrow of reportpane especially used in whole row/column selected
the area before last columnrow should contain all the cellelement of the reportpane
|
static ColumnRow |
getEventColumnRow_withresolution(ElementCasePane reportPane,
double evtX,
double evtY,
int resolution) |
static ColumnRow |
getEventColumnRow(ElementCasePane reportPane,
double evtX,
double evtY)
Gets column and row which located on (evtX, evtY)
peter:这个方法重复考虑到Frozen的情况,没有任何BUG,这个方法没有考虑那种不无限增大的情况.
|
static int |
getExtentValue(int start,
DynamicUnitList sizeList,
double visibleSize,
int dpi)
计算可见区域的行/列数
|
static void |
shrinkToFit(int reportShrinkMode,
TemplateElementCase tplEC,
TemplateCellElement editCellElement) |
public static final int DRAG_NONE
public static final int DRAG_CELLSELECTION
public static final int DRAG_CELLSELECTION_BOTTOMRIGHT_CORNER
public static final int DRAG_FLOAT
public static final int DRAG_CELL_SIZE
public static final int DRAG_SELECT_UNITS
public static java.lang.Object[] getAboveFloatElementCursor(ElementCasePane reportPane, double evtX, double evtY)
public static double[] caculateFloatElementLocations(FloatElement floatElement, DynamicUnitList columnWidthList, DynamicUnitList rowHeightList, int verticalValue, int horizentalValue)
public static double[] caculateFloatElementLocations_withresolution(FloatElement floatElement, DynamicUnitList columnWidthList, DynamicUnitList rowHeightList, int verticalValue, int horizentalValue, int resolution)
public static ColumnRow getEventColumnRow(ElementCasePane reportPane, double evtX, double evtY)
reportPane
- 当前的ReportPaneevtX
- event xevtY
- event ypublic static ColumnRow getEventColumnRow_withresolution(ElementCasePane reportPane, double evtX, double evtY, int resolution)
public static ColumnRow getAdjustEventColumnRow(ElementCasePane reportPane, double evtX, double evtY)
reportPane
- 当前的ReportPaneevtX
- event xevtY
- event ypublic static ColumnRow getAdjustEventColumnRow_withresolution(ElementCasePane reportPane, double evtX, double evtY, int resolution)
public static boolean canMove(ElementCasePane reportPane, int cellColumn, int cellRow)
public static void doSelectCell(ElementCasePane reportPane, int cellColumn, int cellRow)
public static ElementsTransferable caculateElementsTransferable(ElementCasePane reportPane)
public static ColumnRow getAdjustLastColumnRowOfReportPane(ElementCasePane reportPane)
public static int getExtentValue(int start, DynamicUnitList sizeList, double visibleSize, int dpi)
public static void shrinkToFit(int reportShrinkMode, TemplateElementCase tplEC, TemplateCellElement editCellElement)