|
Swing 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.text.View | +--javax.swing.text.CompositeView | +--javax.swing.text.BoxView | +--javax.swing.text.TableView.TableCell
View of a cell in a table
Fields inherited from class javax.swing.text.View |
BadBreakWeight,
ExcellentBreakWeight,
ForcedBreakWeight,
GoodBreakWeight,
X_AXIS,
Y_AXIS |
Constructor Summary | |
TableView.TableCell(Element elem)
Constructs a TableCell for the given element. |
Method Summary | |
int |
getColumnCount()
Gets the number of columns this cell spans (e.g. |
int |
getGridColumn()
Gets the column of the grid location |
int |
getGridRow()
Gets the row of the grid location |
float |
getPreferredSpan(int axis)
Determines the preferred span for this view along an axis. |
int |
getRowCount()
Gets the number of rows this cell spans (that is, the grid height). |
void |
setGridLocation(int row,
int col)
Sets the grid location. |
Methods inherited from class javax.swing.text.BoxView |
baselineLayout,
baselineRequirements,
calculateMajorAxisRequirements,
calculateMinorAxisRequirements,
changedUpdate,
childAllocation,
flipEastAndWestAtEnds,
getAlignment,
getHeight,
getMaximumSpan,
getMinimumSpan,
getOffset,
getResizeWeight,
getSpan,
getViewAtPoint,
getWidth,
insertUpdate,
isAfter,
isAllocationValid,
isBefore,
layout,
layoutMajorAxis,
layoutMinorAxis,
modelToView,
paint,
paintChild,
preferenceChanged,
removeUpdate,
replace,
setSize,
viewToModel |
Methods inherited from class javax.swing.text.CompositeView |
append,
getBottomInset,
getChildAllocation,
getInsideAllocation,
getLeftInset,
getNextEastWestVisualPositionFrom,
getNextNorthSouthVisualPositionFrom,
getNextVisualPositionFrom,
getRightInset,
getTopInset,
getView,
getViewAtPosition,
getViewCount,
getViewIndexAtPosition,
insert,
loadChildren,
modelToView,
removeAll,
setInsets,
setParagraphInsets,
setParent |
Methods inherited from class javax.swing.text.View |
breakView,
createFragment,
getAttributes,
getBreakWeight,
getContainer,
getDocument,
getElement,
getEndOffset,
getParent,
getStartOffset,
getViewFactory,
isVisible,
modelToView,
viewToModel |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TableView.TableCell(Element elem)
elem
- the element that this view is responsible forMethod Detail |
public int getColumnCount()
public int getRowCount()
public void setGridLocation(int row, int col)
row
- the row >= 0col
- the column >= 0public int getGridRow()
public int getGridColumn()
public float getPreferredSpan(int axis)
axis
- may be either View.X_AXIS or View.Y_AXIS
|
Swing 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |