public class GridUI
extends javax.swing.plaf.ComponentUI
限定符和类型 | 字段和说明 |
---|---|
protected java.awt.geom.Rectangle2D.Double |
back_or_selection_rect |
protected java.awt.geom.Rectangle2D.Double |
cell_back_rect |
protected DynamicUnitList |
columnWidthList |
protected java.awt.geom.Rectangle2D.Double |
drag_cell_rect |
protected DrawFlowRect |
drawFlowRect |
protected java.awt.Dimension |
gridSize |
protected int |
horizontalEndValue |
protected int |
horizontalValue |
static int |
INVALID_INTEGER |
protected java.awt.geom.Rectangle2D.Double |
left_col_row_rect |
protected java.util.List |
paginateLineList |
protected java.util.List |
paintCellElementList |
protected java.util.List |
paintCellElementRectangleList |
protected CellElementPainter |
painter |
protected double |
paperPaintHeight |
protected double |
paperPaintWidth |
protected int |
resolution |
protected DynamicUnitList |
rowHeightList |
protected java.awt.geom.Rectangle2D.Double |
tmpRectangle |
protected java.awt.geom.Rectangle2D.Double |
top_col_row_rect |
protected int |
verticalEndValue |
protected int |
verticalValue |
protected static Background |
WHITE_Backgorund |
构造器和说明 |
---|
GridUI(int resolution) |
限定符和类型 | 方法和说明 |
---|---|
void |
caculateScrollVisibleBounds(java.awt.geom.Rectangle2D.Double rect,
CellElement cellElement)
计算单元格可见的边框范围
|
void |
caculateScrollVisibleBounds(java.awt.geom.Rectangle2D.Double rect,
int column,
int row,
int columnSpan,
int rowSpan)
计算(int column,int row,int columnSpan,int rowSpan,),在Grid控件上面的位置.
|
void |
caculateScrollVisibleBounds(java.awt.geom.Rectangle2D.Double rect,
java.awt.Rectangle target)
计算矩形可见的边框范围
|
void |
calculateForcedPagingOfCellElement(ElementCasePane reportPane,
CellElement tmpCellElement,
double hideWidth,
double hideHeight)
double frozenHeight从顶部到冻结窗口的格子高度
|
void |
finalize()
最后处理
|
protected ReportSettingsProvider |
getReportSettings(ElementCase elementCase) |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
protected void |
paintBackground(java.awt.Graphics g,
Grid grid,
ElementCase elementCase,
int resolution) |
protected void |
paintFatherLeft(java.awt.Graphics2D g2d,
CellElement selectedCellElement,
TemplateElementCase report) |
protected void |
paintFormulaCellArea(java.awt.Graphics2D g2d,
java.awt.geom.Area formulaCellArea,
int i) |
static boolean |
validate(java.awt.geom.Rectangle2D rect)
是否有效的Rectangle2D
|
public static int INVALID_INTEGER
protected java.awt.Dimension gridSize
protected int verticalValue
protected int horizontalValue
protected double paperPaintWidth
protected double paperPaintHeight
protected DynamicUnitList rowHeightList
protected DynamicUnitList columnWidthList
protected int verticalEndValue
protected int horizontalEndValue
protected DrawFlowRect drawFlowRect
protected java.util.List paintCellElementList
protected java.util.List paintCellElementRectangleList
protected java.util.List paginateLineList
protected static Background WHITE_Backgorund
protected CellElementPainter painter
protected java.awt.geom.Rectangle2D.Double left_col_row_rect
protected java.awt.geom.Rectangle2D.Double top_col_row_rect
protected java.awt.geom.Rectangle2D.Double back_or_selection_rect
protected java.awt.geom.Rectangle2D.Double drag_cell_rect
protected java.awt.geom.Rectangle2D.Double cell_back_rect
protected java.awt.geom.Rectangle2D.Double tmpRectangle
protected int resolution
protected ReportSettingsProvider getReportSettings(ElementCase elementCase)
protected void paintBackground(java.awt.Graphics g, Grid grid, ElementCase elementCase, int resolution)
public void finalize()
finalize
在类中 java.lang.Object
protected void paintFatherLeft(java.awt.Graphics2D g2d, CellElement selectedCellElement, TemplateElementCase report)
protected void paintFormulaCellArea(java.awt.Graphics2D g2d, java.awt.geom.Area formulaCellArea, int i)
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
在类中 javax.swing.plaf.ComponentUI
public void caculateScrollVisibleBounds(java.awt.geom.Rectangle2D.Double rect, CellElement cellElement)
rect
- 用于计算的rectcellElement
- 单元格public void caculateScrollVisibleBounds(java.awt.geom.Rectangle2D.Double rect, java.awt.Rectangle target)
rect
- 用于计算的recttarget
- 目标矩形public void caculateScrollVisibleBounds(java.awt.geom.Rectangle2D.Double rect, int column, int row, int columnSpan, int rowSpan)
rect
- rect是一个长度为8的Rectangle2D数组, 绘画的区域不可见 paintRectangle.x =INVALID_INTEGERcolumn
- 列row
- 行columnSpan
- 列数rowSpan
- 行数public static boolean validate(java.awt.geom.Rectangle2D rect)
rect
- 目标rectpublic void calculateForcedPagingOfCellElement(ElementCasePane reportPane, CellElement tmpCellElement, double hideWidth, double hideHeight)
reportPane
- 用于计算的单元格面板tmpCellElement
- 用于计算的elementhideWidth
- 由于冻结窗口或滚动条滚动隐藏了的总宽度 doublehideHeight
- 由于冻结窗口或滚动条滚动隐藏了的总高度 double frozenWidth;//从左侧到冻结窗口的格子宽度