java.lang.Object
javax.swing.text.View
javax.swing.text.CompositeView
javax.swing.text.BoxView
javax.swing.text.TableView.TableCell
- 所有实现的接口:
-
SwingConstants
- 封装类:
-
TableView
Deprecated.
A table cell can now be any View implementation.
-
Field Summary
Fields declared in class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
Fields declared in interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
已弃用.获取此单元格跨越的列数(例如,网格宽度)。int
已弃用.获取网格位置的列int
已弃用.获取网格位置的行int
已弃用.获取此单元格跨越的行数(即,网格高度)。void
setGridLocation
(int row, int col) 已弃用.设置网格位置。Methods declared in class javax.swing.text.BoxView
baselineLayout, baselineRequirements, calculateMajorAxisRequirements, calculateMinorAxisRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAlignment, getAxis, getChildAllocation, getHeight, getMaximumSpan, getMinimumSpan, getOffset, getPreferredSpan, getResizeWeight, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, layoutMajorAxis, layoutMinorAxis, modelToView, paint, paintChild, preferenceChanged, replace, setAxis, setSize, viewToModel
Methods declared in class javax.swing.text.CompositeView
getBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, loadChildren, modelToView, setInsets, setParagraphInsets, setParent
Methods declared in class javax.swing.text.View
append, breakView, changedUpdate, createFragment, forwardUpdateToView, getAttributes, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, insertUpdate, isVisible, modelToView, remove, removeAll, removeUpdate, updateChildren, updateLayout, viewToModel
-
Constructor Details
-
TableCell
Deprecated.构造给定元素的TableCell。- 参数:
-
elem
- 负责此视图的元素 - 自1.4版本起:
- 1.4
-
-
Method Details
-
getColumnCount
public int getColumnCount()Deprecated.获取此单元格跨越的列数(例如,网格宽度)。- 返回:
- 列数
-
getRowCount
public int getRowCount()Deprecated.获取此单元格跨越的行数(即,网格高度)。- 返回:
- 行数
-
setGridLocation
public void setGridLocation(int row, int col) Deprecated.设置网格位置。- 参数:
-
row
- 行 >= 0 -
col
- 列 >= 0
-
getGridRow
public int getGridRow()Deprecated.获取网格位置的行 -
getGridColumn
public int getGridColumn()Deprecated.获取网格位置的列
-